2020-06-25 11:00:25 -04:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% load helpers %}
|
|
|
|
{% load perms %}
|
2020-06-25 13:27:01 -04:00
|
|
|
{% load plugins %}
|
2020-06-25 11:00:25 -04:00
|
|
|
|
|
|
|
{% block header %}
|
|
|
|
<div class="row noprint">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="{% url 'dcim:device_list' %}">Devices</a></li>
|
|
|
|
<li><a href="{{ instance.device.get_absolute_url }}">{{ instance.device }}</a></li>
|
2020-06-25 16:50:35 -04:00
|
|
|
<li><a href="{% url instance|viewname:"list" %}?device_id={{ instance.device.pk }}">{{ instance|meta:"verbose_name_plural"|bettertitle }}</a></li>
|
2020-06-25 11:00:25 -04:00
|
|
|
<li>{{ instance }}</li>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="pull-right noprint">
|
2020-06-25 13:27:01 -04:00
|
|
|
{% plugin_buttons instance %}
|
2020-06-25 11:00:25 -04:00
|
|
|
{% if request.user|can_change:instance %}
|
2020-06-25 16:50:35 -04:00
|
|
|
<a href="{% url instance|viewname:"edit" pk=instance.pk %}" class="btn btn-warning">
|
2020-11-06 14:33:20 -05:00
|
|
|
<span class="mdi mdi-pencil" aria-hidden="true"></span> Edit
|
2020-06-25 11:00:25 -04:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if request.user|can_delete:instance %}
|
2020-06-25 16:50:35 -04:00
|
|
|
<a href="{% url instance|viewname:"delete" pk=instance.pk %}" class="btn btn-danger">
|
2020-11-06 14:33:20 -05:00
|
|
|
<span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Delete
|
2020-06-25 11:00:25 -04:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<h1>{% block title %}{{ instance.device }} / {{ instance }}{% endblock %}</h1>
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li role="presentation"{% if not active_tab %} class="active"{% endif %}>
|
|
|
|
<a href="{{ instance.get_absolute_url }}">{{ instance|meta:"verbose_name"|bettertitle }}</a>
|
|
|
|
</li>
|
|
|
|
{% if perms.extras.view_objectchange %}
|
|
|
|
<li role="presentation"{% if active_tab == 'changelog' %} class="active"{% endif %}>
|
2020-06-25 16:50:35 -04:00
|
|
|
<a href="{% url instance|viewname:"changelog" pk=instance.pk %}">Change Log</a>
|
2020-06-25 11:00:25 -04:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
{% endblock %}
|