dnmgmt/templates/whoisdb/handle_table_row.html

18 lines
881 B
HTML

{% load handletags %}
{% with "whoisdb:"|add:prefix|add:"-detail" as detailView %}
{% with "whoisdb:"|add:prefix|add:"-delete" as deleteView %}
{% with "whoisdb:"|add:prefix|add:"-edit" as editView %}
<tr>
<td>{{ obj|linkObject }}</td>
<td>{{ objType }}</td>
<td>{{ obj.name }}{% if obj.name and obj.description %} / {% endif %}{{ obj.description }}</td>
<td>{{ obj.getResource|default:"-" }}</td>
<td>{{ obj.mnt_by.all|linkObjects|default:"-" }}{% if obj.mnt_lower.all %} / lower: {{ obj.mnt_lower.all|linkObjects }}{% endif %}</td>
<td>{{ obj.admin_c.all|linkObjects }}</td>
<td><a href="{% url editView obj.handle %}"><span title="Edit" class="glyphicon glyphicon-pencil"></span></a> <a href="{% url deleteView obj.handle %}"><span title="Delete" class="glyphicon glyphicon-trash"></span></a></td>
</tr>
{% endwith %}
{% endwith %}
{% endwith %}