<form id="gis_data_editor_form" action="{{ url('/gis-data-editor') }}" method="post">
<input type="hidden" id="themeImagePath" value="{{ image() }}">
<div id="gis_data_editor">
<h3>{{ 'Value for the column "%s"'|trans|format(field) }}</h3>
<input type="hidden" name="field" value="{{ field }}">
{# The input field to which the final result should be added and corresponding null checkbox #}
{% if input_name is not null %}
<input type="hidden" name="input_name" value="{{ input_name }}">
{{ get_hidden_inputs() }}
{# Visualization section #}
<div id="placeholder"{{ srid != 0 ? ' class="hide"' }}>
<div id="openlayersmap" style="width: {{width}}px; height: {{height}}px;"{{ srid == 0 ? ' class="hide"' }}></div>
<div class="choice float-end">
<input type="checkbox" id="choice" value="useBaseLayer"{{ srid != 0 ? ' checked="checked"' }}>
<label for="choice">{% trans "Use OpenStreetMaps as Base Layer" %}</label>
<script type="text/javascript">{{ open_layers|raw }}</script>
{# End of visualization section #}
{# Header section - Inclueds GIS type selector and input field for SRID #}
<div id="gis_data_header">
<select name="gis_data[gis_type]" class="gis_type">
{% for gis_type in gis_types %}
<option value="{{ gis_type }}"{{ geom_type == gis_type ? ' selected="selected"' }}>
<label for="srid">{% trans %}SRID:{% context %}Spatial Reference System Identifier{% endtrans %}</label>
<input name="gis_data[srid]" type="text" value="{{ srid }}">
{# End of header section #}