|
@@ -41,12 +41,18 @@ DEVICE_LINK = """
|
|
|
"""
|
|
"""
|
|
|
|
|
|
|
|
REGION_ACTIONS = """
|
|
REGION_ACTIONS = """
|
|
|
|
|
+<a href="{% url 'dcim:region_changelog' pk=record.pk %}" class="btn btn-default btn-xs" title="Changelog">
|
|
|
|
|
+ <i class="fa fa-history"></i>
|
|
|
|
|
+</a>
|
|
|
{% if perms.dcim.change_region %}
|
|
{% if perms.dcim.change_region %}
|
|
|
<a href="{% url 'dcim:region_edit' pk=record.pk %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
<a href="{% url 'dcim:region_edit' pk=record.pk %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
"""
|
|
"""
|
|
|
|
|
|
|
|
RACKGROUP_ACTIONS = """
|
|
RACKGROUP_ACTIONS = """
|
|
|
|
|
+<a href="{% url 'dcim:rackgroup_changelog' pk=record.pk %}" class="btn btn-default btn-xs" title="Changelog">
|
|
|
|
|
+ <i class="fa fa-history"></i>
|
|
|
|
|
+</a>
|
|
|
<a href="{% url 'dcim:rack_elevation_list' %}?site={{ record.site.slug }}&group_id={{ record.pk }}" class="btn btn-xs btn-primary" title="View elevations">
|
|
<a href="{% url 'dcim:rack_elevation_list' %}?site={{ record.site.slug }}&group_id={{ record.pk }}" class="btn btn-xs btn-primary" title="View elevations">
|
|
|
<i class="fa fa-eye"></i>
|
|
<i class="fa fa-eye"></i>
|
|
|
</a>
|
|
</a>
|
|
@@ -58,6 +64,9 @@ RACKGROUP_ACTIONS = """
|
|
|
"""
|
|
"""
|
|
|
|
|
|
|
|
RACKROLE_ACTIONS = """
|
|
RACKROLE_ACTIONS = """
|
|
|
|
|
+<a href="{% url 'dcim:rackrole_changelog' pk=record.pk %}" class="btn btn-default btn-xs" title="Changelog">
|
|
|
|
|
+ <i class="fa fa-history"></i>
|
|
|
|
|
+</a>
|
|
|
{% if perms.dcim.change_rackrole %}
|
|
{% if perms.dcim.change_rackrole %}
|
|
|
<a href="{% url 'dcim:rackrole_edit' pk=record.pk %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
<a href="{% url 'dcim:rackrole_edit' pk=record.pk %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
{% endif %}
|
|
{% endif %}
|
|
@@ -76,23 +85,32 @@ RACK_DEVICE_COUNT = """
|
|
|
"""
|
|
"""
|
|
|
|
|
|
|
|
RACKRESERVATION_ACTIONS = """
|
|
RACKRESERVATION_ACTIONS = """
|
|
|
|
|
+<a href="{% url 'dcim:rackreservation_changelog' pk=record.pk %}" class="btn btn-default btn-xs" title="Changelog">
|
|
|
|
|
+ <i class="fa fa-history"></i>
|
|
|
|
|
+</a>
|
|
|
{% if perms.dcim.change_rackreservation %}
|
|
{% if perms.dcim.change_rackreservation %}
|
|
|
<a href="{% url 'dcim:rackreservation_edit' pk=record.pk %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
<a href="{% url 'dcim:rackreservation_edit' pk=record.pk %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
"""
|
|
"""
|
|
|
|
|
|
|
|
-DEVICEROLE_ACTIONS = """
|
|
|
|
|
-{% if perms.dcim.change_devicerole %}
|
|
|
|
|
- <a href="{% url 'dcim:devicerole_edit' slug=record.slug %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
|
|
-{% endif %}
|
|
|
|
|
-"""
|
|
|
|
|
-
|
|
|
|
|
MANUFACTURER_ACTIONS = """
|
|
MANUFACTURER_ACTIONS = """
|
|
|
|
|
+<a href="{% url 'dcim:manufacturer_changelog' slug=record.slug %}" class="btn btn-default btn-xs" title="Changelog">
|
|
|
|
|
+ <i class="fa fa-history"></i>
|
|
|
|
|
+</a>
|
|
|
{% if perms.dcim.change_manufacturer %}
|
|
{% if perms.dcim.change_manufacturer %}
|
|
|
<a href="{% url 'dcim:manufacturer_edit' slug=record.slug %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
<a href="{% url 'dcim:manufacturer_edit' slug=record.slug %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
{% endif %}
|
|
{% endif %}
|
|
|
"""
|
|
"""
|
|
|
|
|
|
|
|
|
|
+DEVICEROLE_ACTIONS = """
|
|
|
|
|
+<a href="{% url 'dcim:devicerole_changelog' slug=record.slug %}" class="btn btn-default btn-xs" title="Changelog">
|
|
|
|
|
+ <i class="fa fa-history"></i>
|
|
|
|
|
+</a>
|
|
|
|
|
+{% if perms.dcim.change_devicerole %}
|
|
|
|
|
+ <a href="{% url 'dcim:devicerole_edit' slug=record.slug %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
|
|
+{% endif %}
|
|
|
|
|
+"""
|
|
|
|
|
+
|
|
|
DEVICEROLE_DEVICE_COUNT = """
|
|
DEVICEROLE_DEVICE_COUNT = """
|
|
|
<a href="{% url 'dcim:device_list' %}?role={{ record.slug }}">{{ value }}</a>
|
|
<a href="{% url 'dcim:device_list' %}?role={{ record.slug }}">{{ value }}</a>
|
|
|
"""
|
|
"""
|
|
@@ -110,6 +128,9 @@ PLATFORM_VM_COUNT = """
|
|
|
"""
|
|
"""
|
|
|
|
|
|
|
|
PLATFORM_ACTIONS = """
|
|
PLATFORM_ACTIONS = """
|
|
|
|
|
+<a href="{% url 'dcim:platform_changelog' slug=record.slug %}" class="btn btn-default btn-xs" title="Changelog">
|
|
|
|
|
+ <i class="fa fa-history"></i>
|
|
|
|
|
+</a>
|
|
|
{% if perms.dcim.change_platform %}
|
|
{% if perms.dcim.change_platform %}
|
|
|
<a href="{% url 'dcim:platform_edit' slug=record.slug %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
<a href="{% url 'dcim:platform_edit' slug=record.slug %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
{% endif %}
|
|
{% endif %}
|
|
@@ -143,6 +164,9 @@ UTILIZATION_GRAPH = """
|
|
|
"""
|
|
"""
|
|
|
|
|
|
|
|
VIRTUALCHASSIS_ACTIONS = """
|
|
VIRTUALCHASSIS_ACTIONS = """
|
|
|
|
|
+<a href="{% url 'dcim:virtualchassis_changelog' pk=record.pk %}" class="btn btn-default btn-xs" title="Changelog">
|
|
|
|
|
+ <i class="fa fa-history"></i>
|
|
|
|
|
+</a>
|
|
|
{% if perms.dcim.change_virtualchassis %}
|
|
{% if perms.dcim.change_virtualchassis %}
|
|
|
<a href="{% url 'dcim:virtualchassis_edit' pk=record.pk %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
<a href="{% url 'dcim:virtualchassis_edit' pk=record.pk %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
|
|
|
{% endif %}
|
|
{% endif %}
|