Added image attachments to sites and devices

This commit is contained in:
Jeremy Stretch
2017-03-31 15:19:44 -04:00
parent b643939cc4
commit 50d7fd776f
6 changed files with 70 additions and 37 deletions

View File

@@ -326,6 +326,20 @@
{% endif %}
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<strong>Images</strong>
</div>
{% include 'inc/image_attachments.html' with images=device.images.all %}
{% if perms.extras.add_imageattachment %}
<div class="panel-footer text-right">
<a href="{% url 'dcim:device_add_image' object_id=device.pk %}" class="btn btn-primary btn-xs">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
Attach an image
</a>
</div>
{% endif %}
</div>
<div class="panel panel-default">
<div class="panel-heading">
<strong>Related Devices</strong>