summaryrefslogtreecommitdiff
path: root/ishtar_common/templates
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r--ishtar_common/templates/ishtar/blocks/sheet_geographic.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_geographic.html b/ishtar_common/templates/ishtar/blocks/sheet_geographic.html
new file mode 100644
index 000000000..c5a413cc6
--- /dev/null
+++ b/ishtar_common/templates/ishtar/blocks/sheet_geographic.html
@@ -0,0 +1,27 @@
+{% load i18n window_field %}
+<table id='{{window_id}}-geographic-data' class="table table-striped">
+ <tr>
+ {% if permission_change_geo %}<th>&nbsp;</th>{% endif %}
+ <th>{% trans "Main" %}</th>
+ <th>{% trans "Data type" %}</th>
+ <th>{% trans "Source" %}</th>
+ <th>{% trans "Geometry" %}</th>
+ <th>{% trans "Name" %}</th>
+ <th>{% trans "Origin" %}</th>
+ <th>{% trans "Provider" %}</th>
+ <th>{% trans "Comment" %}</th>
+ </tr>
+{% for geo in geo_item.geodata.all %}
+ <tr>
+ {% if permission_change_geo %}<td><a href="#"><i class="fa fa-pencil"></i></a></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>
+ <td>{{ geo.geometry_type_label }}</td>
+ <td>{{ geo.name }}</td>
+ <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>
+ </tr>
+{% endfor %}
+</table>