Skip to content
Snippets Groups Projects
Commit 3af38b45 authored by Martin Burchell's avatar Martin Burchell
Browse files

Remove capitalisation from table and filters

For data entered as text for now. For the constants, we should really be displaying
the internationalised display text but leave that for another time
parent daa5d0ec
No related branches found
No related tags found
1 merge request!107Dont capitalise things
Pipeline #3072 passed
{% if request %}
{% if record.body %}
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.body | title }}</a>
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.body }}</a>
{% else %}
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'><p class="missing-body"> Missing Text </p></a>
{% endif %}
......
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.enumerator | title }}</a>
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.enumerator }}</a>
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.location | title }}</a>
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.location }}</a>
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.source | title }}</a>
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.source }}</a>
......@@ -5,7 +5,7 @@
<select id="enumerator-selector" name="enumerator" class="form-control">
<option value="All Enumerators" selected="selected">All Enumerators</option>
{% for enumerator in enumerator.items %}
<option value="{{ enumerator }}"{% if enumerator == request.GET.enumerator %} selected="selected"{% endif %}>{{ enumerator | title }}</option>
<option value="{{ enumerator }}"{% if enumerator == request.GET.enumerator %} selected="selected"{% endif %}>{{ enumerator }}</option>
{% endfor %}
</select>
</div>
......
......@@ -5,7 +5,7 @@
<select id="location-selector" name="location" class="form-control">
<option value="All Locations" selected="selected">All Locations</option>
{% for location in locations.items %}
<option value="{{ location }}"{% if location == request.GET.location %} selected="selected"{% endif %}>{{ location | title }}</option>
<option value="{{ location }}"{% if location == request.GET.location %} selected="selected"{% endif %}>{{ location }}</option>
{% endfor %}
</select>
</div>
......
......@@ -5,7 +5,7 @@
<select id="source-selector" name="source" class="form-control">
<option value="All Sources" selected="selected">All Sources</option>
{% for source in source_filters.items %}
<option value="{{ source }}">{{ source | title }}</option>
<option value="{{ source }}">{{ source }}</option>
{% endfor %}
</select>
</div>
......
{% if request %}
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.translation | title }}</a>
<a href='{% url "edit-item" item_id=record.id %}?next={{ request.path }}'>{{ record.translation }}</a>
{% else %}
{{ record.translation | title }}
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment