summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/blocks/sheet_geographic.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks/sheet_geographic.html')
-rw-r--r--ishtar_common/templates/ishtar/blocks/sheet_geographic.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_geographic.html b/ishtar_common/templates/ishtar/blocks/sheet_geographic.html
index 12846ef78..6212c9573 100644
--- a/ishtar_common/templates/ishtar/blocks/sheet_geographic.html
+++ b/ishtar_common/templates/ishtar/blocks/sheet_geographic.html
@@ -2,7 +2,6 @@
{% with search_url=item.get_search_url %}
<table id='{{window_id}}-geographic-data' class="table table-striped">
<tr>
- {% if not IS_HISTORY and permission_change_geo %}<th>&nbsp;</th>{% endif %}
<th>{% trans "Main" %}</th>
<th>{% trans "Data type" %}</th>
<th>{% trans "Source" %}</th>
@@ -13,14 +12,10 @@
<th>{% trans "Acquisition date" %}</th>
<th>{% trans "Comment" %}</th>
{% if not IS_HISTORY and permission_change_geo %}<th>&nbsp;</th>{% endif %}
+ {% if not IS_HISTORY and permission_change_geo %}<th>&nbsp;</th>{% endif %}
</tr>
{% for geo in geo_item.geodata.all %}
<tr>
- {% if not IS_HISTORY and permission_change_geo %}<td>
- {% autoescape off %}
- <a title="{% trans 'Edit' %}" href="{% url 'edit-geo' geo.pk %}{% if search_url or find_id %}?{% endif %}{% if find_id %}find_id={{find_id|unlocalize}}&{% endif %}{% if search_url %}back_url={{search_url}}%3Fopen_item={{geo_item.pk|unlocalize}}{% endif %}">{% if geo|can_edit_item:request %}<i class="fa fa-pencil"></i></a>{% else %}&ndash;{% endif %}
- {% endautoescape %}
- </td>{% endif %}
<td>{% if geo.id == geo_item.main_geodata_id %}<i class="fa fa-check-circle text-success" aria-hidden="true"></i>{% else %}&ndash;{% endif %}</td>
<td>{% if geo.data_type %}{{ geo.data_type }}{% else %}-{% endif %}</td>
<td>{{ geo.source_label }}</td>
@@ -30,11 +25,16 @@
<td>{% if geo.provider %}{{ geo.provider }}{% else %}-{% endif %}</td>
<td>{% if geo.acquisition_date %}{{ geo.acquisition_date|date:"DATE_FORMAT"|default:"-" }}{% else %}-{% endif %}</td>
<td>{% if geo.comment %}{{ geo.comment }}{% else %}-{% endif %}</td>
+ {% if not IS_HISTORY and permission_change_geo %}<td>
+ {% autoescape off %}
+ {% if geo|can_edit_item:request %}<a class="btn btn-success btn-sm" title="{% trans 'Edit' %}" href="{% url 'edit-geo' geo.pk %}{% if search_url or find_id %}?{% endif %}{% if find_id %}find_id={{find_id|unlocalize}}&{% endif %}{% if search_url %}back_url={{search_url}}%3Fopen_item={{geo_item.pk|unlocalize}}{% endif %}"><i class="fa fa-pencil"></i></a>{% else %}&ndash;{% endif %}
+ {% endautoescape %}
+ </td>{% endif %}
{% if not IS_HISTORY and permission_change_geo and output != "ODT" and output != "PDF" %}<td>
{% autoescape off %}
- <a title="{% trans 'Delete' %}"
+ {% if geo|can_edit_item:request %}<a class="btn btn-danger btn-sm" title="{% trans 'Delete' %}"
href="{% url 'delete-geo' geo.pk %}{% if search_url or find_id %}?{% endif %}{% if find_id %}find_id={{find_id|unlocalize}}&{% endif %}{% if search_url %}back_url={{search_url}}%3Fopen_item={{geo_item.pk|unlocalize}}{% endif %}">
- {% if geo|can_edit_item:request %}<i class="fa fa-trash text-danger"></i></a>{% else %}&ndash;{% endif %}
+ <i class="fa fa-trash"></i></a>{% else %}&ndash;{% endif %}
{% endautoescape %}
</td>{% endif %}
</tr>