Project

General

Profile

0001-Filter-the-formatted-date-with-lower-to-avoid-upperc.patch

Frédéric Péters, 12 May 2014 08:48 PM

Download (1.51 KB)

View differences:

Subject: [PATCH] Filter the formatted date with |lower to avoid uppercase in
 months (#4805)

 calebasse/templates/calebasse/datesel.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
calebasse/templates/calebasse/datesel.html
1 1
 <div id="datesel">
2 2
   <a id="arrow" href="{% url url_name date=previous_month service=service %}" class="prev-month" title=""></a>
3 3
   <a id="arrow" href="{% url url_name date=previous_day service=service %}" class="prev-day"></a>
4
   <input data-url="{% url url_name date=date service=service %}" id="date-selector" value="{{ date|date:"DATE_FORMAT"|title}} ({{date|date:"W"}})" readonly="readonly" />
4
   <input data-url="{% url url_name date=date service=service %}" id="date-selector" value="{{ date|date:"DATE_FORMAT"|lower}} ({{date|date:"W"}})" readonly="readonly" />
5 5
   <a id="arrow" href="{% url url_name date=next_day service=service %}" class="next-day"></a>
6 6
   <a id="arrow" href="{% url url_name date=next_month service=service %}" class="next-month"></a>
7 7
   {% if date != today %}<a id="datesel-today-link" href="{% url url_name service=service date=today %}">Aujourd'hui</a>{% endif %}
8
-