{% extends 'generic/object.html' %} {% load helpers %} {% load humanize %} {% load plugins %} {% block title %} {{ object.license_key }} {% endblock %} {% block breadcrumbs %} {{ block.super }} {% if object.license_type %}
- {{ object.license_type }}
{% endif %} {% endblock %} {% block content %}

##### License Details

License Type | {{ object.license_type|linkify }}
Product Code | {{ object.license_type.product_code|linkify|placeholder }}
License Manufacturer | {{ object.license_type.manufacturer|linkify|placeholder }}
License Key | {{ object }}
Serial Number | {{ object.serial_number|placeholder }}
Volume Type | {{ object.license_type.get_volume_type_display }}
Volume Limit | {% if object.volume_type == 'UNLIMITED' %} Unlimited {% else %} {{ object.volume_limit }} {% endif %}
Current Usage | {{ object.usage_display }}
{% if object.parent_license %}
Parent License | {{ object.parent_license|linkify }}
{% endif %} {% if object.purchase_date %}
Purchase Date | {{ object.purchase_date|date:"Y-m-d" }}
{% endif %} {% if object.expiry_date %}
Expiry Date | {{ object.expiry_date|date:"Y-m-d" }}
{% endif %}
Expiry Status | {% include "netbox_license/inc/license_progressbar.html" with record=object %}
Description | {{ object.description|placeholder }}

{% include 'inc/panels/custom_fields.html' %}

## Assigned Devices ({{ object.usage_display }})
Add Assignment

Device | Device Manufacturer | Assigned On | Volume
--- | --- | --- | ---
{% for assignment in object.assignments.all %}
{{ assignment.device|linkify|placeholder }} | {{ assignment.device.device_type.manufacturer|linkify|placeholder }} | {{ assignment.assigned_on|date:"Y-m-d" }} | {{ assignment.volume }}
{% empty %}
No assignments found.
{% endfor %}

{% if object.license_type.license_model != 'expansion' %}

## Child Licenses
Add Child License

License Key | License Type | Volume | Expiry Date
--- | --- | --- | ---
{% for child in object.sub_licenses.all %}
{{ child|linkify }} | {{ child.license_type|linkify|placeholder }} | {% if child.license_type.volume_type == 'unlimited' %} Unlimited {% else %} {{ child.volume_limit|placeholder }} {% endif %} | {{ child.expiry_date|date:"Y-m-d"|placeholder }}
{% empty %}
No child licenses found.
{% endfor %}

{% endif %} {% include 'inc/panels/tags.html' %} {% include 'inc/panels/comments.html' %}
{% plugin_full_width_page object %}
{% endblock %}