Commit b1011b5d authored by Marko Kuder's avatar Marko Kuder
Browse files

fixed other spaces in dropdowns

parent 0f56b7a2
......@@ -187,7 +187,7 @@ Passed in:
{% set jezik_zbirke = data.get('jezik_zbirke', '') if 'jezik_zbirke' in data else "Slovenščina" %}
<select class="form-control" id="jezik_zbirke" name="jezik_zbirke">
{% for jezik_zbirke_option in h.jezik_choices(data) %}
<option value="{{jezik_zbirke_option}}" {% if jezik_zbirke == jezik_zbirke_option %} selected="selected" {% endif %} > {{jezik_zbirke_option}} </option>
<option value="{{jezik_zbirke_option}}" {% if jezik_zbirke == jezik_zbirke_option %} selected="selected" {% endif %} >{{jezik_zbirke_option}}</option>
{% endfor %}
</select>
</div>
......@@ -288,9 +288,7 @@ Passed in:
</label>
<select style="width: 200px;" class="form-control" id="update_frequency" name="update_frequency">
{% for freq_name, freq_desc in h.get_dgu_dataset_form_options('update_frequency') %}
<option value="{{freq_name}}" {% if data.get('update_frequency', '') == freq_name %}selected="selected"{% endif %} >
{{freq_desc}}
</option>
<option value="{{freq_name}}" {% if data.get('update_frequency', '') == freq_name %}selected="selected"{% endif %} >{{freq_desc}}</option>
{% endfor %}
</select>
<label style="margin-left: 20px;" class="" for="update_frequency-other">Ostalo:</label>
......@@ -741,7 +739,7 @@ Passed in:
<select class="form-control" id="dostopnost_zbirke" name="dostopnost_zbirke">
<option value=" " {% if not dostopnost_zbirke %}selected="selected"{% endif %} >Izberite dostopnost zbirke podatkov...</option>
{% for id_option, dostopnost_zbirke_option in h.dostopnost_choices(data) %}
<option value="{{dostopnost_zbirke_option}}" {% if dostopnost_zbirke == dostopnost_zbirke_option %} selected="selected" {% endif %} > {{dostopnost_zbirke_option}} </option>
<option value="{{dostopnost_zbirke_option}}" {% if dostopnost_zbirke == dostopnost_zbirke_option %} selected="selected" {% endif %} >{{dostopnost_zbirke_option}}</option>
{% endfor %}
</select>
</div>
......@@ -776,9 +774,7 @@ Passed in:
<select class="form-control" id="owner_org" name="owner_org">
<option value=" " {% if not owner_org %}selected="selected"{% endif %} >Izberite izdajatelja...</option> {# NB Value is " " to ensure that validation fails if this is selected, due to it checking 'name' is not_empty. In addition, in logic/auth/create.py this particular value is authorized, so when you submit the form with this value, rather that say 'not authorized', it carries on to validation where it fails and shows the user a better error. #}
{% for publisher_name, publisher in h.sorted_list(c.publishers.items()) %}
<option value="{{publisher.id}}" {% if owner_org == publisher.id %}selected="selected"{% endif %} >
{{publisher['title']}}
</option>
<option value="{{publisher.id}}" {% if owner_org == publisher.id %}selected="selected"{% endif %} >{{publisher['title']}}</option>
{% endfor %}
</select>
</div>
......@@ -1204,9 +1200,7 @@ Passed in:
<select id="temporal_granularity" name="temporal_granularity">
{% for temporal_name, temporal_desc in h.get_dgu_dataset_form_options('temporal_granularity') %}
<option value="{{temporal_name}}" {% if data.get('temporal_granularity', '') == temporal_name %} selected="selected" {% endif %} >
{{temporal_name}}
</option>
<option value="{{temporal_name}}" {% if data.get('temporal_granularity', '') == temporal_name %} selected="selected" {% endif %} >{{temporal_name}}</option>
{% endfor %}
</select>
<label class="inline" for="temporal_granularity-other">Ostalo:</label>
......@@ -1226,9 +1220,7 @@ Passed in:
<div class="form-inline">
<select id="geographic_granularity" name="geographic_granularity">
{% for geog_name, geog_desc in h.get_dgu_dataset_form_options('geographic_granularity') %}
<option value="{{geog_name}}" {% if data.get('geographic_granularity', '') == geog_name %}selected="selected"{% endif %}>
{{geog_desc}}
</option>
<option value="{{geog_name}}" {% if data.get('geographic_granularity', '') == geog_name %}selected="selected"{% endif %}>{{geog_desc}}</option>
{% endfor %}
</select>
<label class="inline" for="geographic_granularity-other">Other:</label>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment