dnmgmt/templates/whoisdb/handle_panel.html

19 lines
761 B
HTML

{% 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>
<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>
</div>
<div class="panel-body">
{% include "whoisdb/handle_table.html" with object=object %}
</div>
</div>
{% endwith %}
{% endwith %}