dnmgmt/templates/whoisdb/handle_table_row.html

18 lines
881 B
HTML
Raw Permalink Normal View History

2017-03-20 00:16:33 +01:00
{% load handletags %}
2017-02-28 19:44:15 +01:00
{% 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>
2017-03-20 00:16:33 +01:00
<td>{{ obj|linkObject }}</td>
2017-02-28 19:44:15 +01:00
<td>{{ objType }}</td>
2017-03-27 00:33:29 +02:00
<td>{{ obj.name }}{% if obj.name and obj.description %} / {% endif %}{{ obj.description }}</td>
2017-03-20 00:16:33 +01:00
<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>
2017-05-02 03:42:20 +02:00
<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>
2017-02-28 19:44:15 +01:00
</tr>
{% endwith %}
{% endwith %}
{% endwith %}