diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-09-29 18:05:08 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:23:18 +0100 |
| commit | 4ab3725af5ba8f12d69cbc1702baa13e9773880e (patch) | |
| tree | c47ea21f2c4be849406d1d1ae40b34b560424504 /ishtar_common/templates/ishtar/blocks/sheet_geographic.html | |
| parent | 4f73df01dc3891266fe999e3ab2652f712f6680a (diff) | |
| download | Ishtar-4ab3725af5ba8f12d69cbc1702baa13e9773880e.tar.bz2 Ishtar-4ab3725af5ba8f12d69cbc1702baa13e9773880e.zip | |
Geodata: delete action
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks/sheet_geographic.html')
| -rw-r--r-- | ishtar_common/templates/ishtar/blocks/sheet_geographic.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_geographic.html b/ishtar_common/templates/ishtar/blocks/sheet_geographic.html index 295c7ef46..8b6255f26 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_geographic.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_geographic.html @@ -11,12 +11,13 @@ <th>{% trans "Origin" %}</th> <th>{% trans "Provider" %}</th> <th>{% trans "Comment" %}</th> + {% if permission_change_geo %}<th> </th>{% endif %} </tr> {% for geo in geo_item.geodata.all %} <tr> - {% if permission_change_geo %} - <td><a href="{% url 'edit-geo' geo.pk %}{% if search_url %}?back_url={{search_url}}%3Fopen_item={{geo_item.pk}}{% endif %}">{% if geo|can_edit_item:request %}<i class="fa fa-pencil"></i></a>{% else %}–{% endif %}</td> - {% endif %} + {% if permission_change_geo %}<td> + <a title="{% trans 'Edit' %}" href="{% url 'edit-geo' geo.pk %}{% if search_url %}?back_url={{search_url}}%3Fopen_item={{geo_item.pk}}{% endif %}">{% if geo|can_edit_item:request %}<i class="fa fa-pencil"></i></a>{% else %}–{% endif %} + </td>{% endif %} <td>{% if geo.id == geo_item.main_geodata_id %}<i class="fa fa-check-circle text-success" aria-hidden="true"></i>{% else %}–{% endif %}</td> <td>{% if geo.data_type %}{{ geo.data_type }}{% else %}-{% endif %}</td> <td>{{ geo.source_label }}</td> @@ -25,6 +26,11 @@ <td>{% if geo.origin %}{{ geo.origin }}{% else %}-{% endif %}</td> <td>{% if geo.provider %}{{ geo.provider }}{% else %}-{% endif %}</td> <td>{% if geo.comment %}{{ geo.comment }}{% else %}-{% endif %}</td> + {% if permission_change_geo %}<td> + <a title="{% trans 'Delete' %}" + href="{% url 'delete-geo' geo.pk %}{% if search_url %}?back_url={{search_url}}%3Fopen_item={{geo_item.pk}}{% endif %}"> + {% if geo|can_edit_item:request %}<i class="fa fa-trash text-danger"></i></a>{% else %}–{% endif %} + </td>{% endif %} </tr> {% endfor %} </table> |
