diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-05-05 18:45:33 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:21:00 +0100 |
| commit | 0f5d1297503a97e865ce211b2a0c801b21cfd613 (patch) | |
| tree | bc849de6718bea64126c2d25fc36973a0599fb1c /ishtar_common/templates | |
| parent | 810d6074789e3e6b11854f676314972a6952b486 (diff) | |
| download | Ishtar-0f5d1297503a97e865ce211b2a0c801b21cfd613.tar.bz2 Ishtar-0f5d1297503a97e865ce211b2a0c801b21cfd613.zip | |
Geodata: display geodata list on sheet
Diffstat (limited to 'ishtar_common/templates')
| -rw-r--r-- | ishtar_common/templates/ishtar/blocks/sheet_geographic.html | 27 |
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> </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 %}–{% 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> |
