dnmgmt/templates/whoisdb/handle_panel.html

23 lines
845 B
HTML

{% load handletags %}
{% with object.getAppName|add:":"|add:object.getClassName|lower|add:"-edit" as editView %}
{% with object.getAppName|add:":"|add:object.getClassName|lower|add:"-delete" as deleteView %}
<div class="panel panel-default">
<div class="panel-heading">
{{ object }} <small>({{ object.getClassName }})</small>
{% if object|userCanEdit:request.user %}
<span class="pull-right">
<a href="{% url editView object.getPK %}"><span class="glyphicon glyphicon-pencil"></span></a>
<a href="{% url deleteView object.getPK %}"><span class="glyphicon glyphicon-trash"></span></a>
</span>
{% endif %}
</div>
<div class="panel-body">
{% include "whoisdb/handle_table.html" with object=object %}
</div>
</div>
{% endwith %}
{% endwith %}