dnmgmt/templates/whoisdb/handle_table_row.html

18 lines
768 B
HTML
Raw 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-02-28 19:44:15 +01:00
<td><a href="{% url editView obj.handle %}">Edit</a> <a href="{% url deleteView obj.handle %}">Delete</a></td>
</tr>
{% endwith %}
{% endwith %}
{% endwith %}