diff options
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks/sheet_geo_items.html')
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/sheet_geo_items.html | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html b/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html index 451453d59..9b485de15 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html @@ -6,8 +6,12 @@ <label for="display-geo-items">{% trans "Display associated features: " %}</label> <select name="display-geo-items" id="display-geo-items"> <option value="" selected="selected">{% trans "None" %}</option> + {% if geo_item.SLUG == "operation" %} <option id="disp-context-records" value="contextrecords">{% trans "Context records" %}</option> + <option value="basefinds">{% trans "Everything" %}</option> + {% else %} <option value="basefinds">{% trans "Base finds" %}</option> + {% endif %} </select> </dd> <dd> @@ -19,14 +23,6 @@ </dd> </dl> <script> -var hide_context_records = function() { - if ("{{geo_item.SLUG}}" === "contextrecord") { - const disp_cr = $("#disp-context-records")[0]; - disp_cr.hidden = true; - } -} -hide_context_records(); - var hide_get_polygons = function() { const disp = $("#display-geo-items")[0]; const get_poly = $("#get-polygons")[0]; |