Add W-indicator to Week-Calendar Dropdown

This commit is contained in:
Martin Gross
2020-06-10 12:59:21 +02:00
parent 057fd95706
commit bae0e45d00
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@
<div class="col-sm-4 col-xs-12 text-center">
<select name="week" class="form-control">
{% for w in weeks %}
<option value="{{ w }}" {% if w == date.isocalendar.1 %}selected{% endif %}>{{ w }}</option>
<option value="{{ w }}" {% if w == date.isocalendar.1 %}selected{% endif %}>{% trans "W" %} {{ w }}</option>
{% endfor %}
</select>
<select name="year" class="form-control">

View File

@@ -45,7 +45,7 @@
<div class="col-sm-4 col-xs-12 text-center">
<select name="week" class="form-control">
{% for w in weeks %}
<option value="{{ w }}" {% if w == date.isocalendar.1 %}selected{% endif %}>{{ w }}</option>
<option value="{{ w }}" {% if w == date.isocalendar.1 %}selected{% endif %}>{% trans "W" %} {{ w }}</option>
{% endfor %}
</select>
<select name="year" class="form-control">