From f3655095a7b7cab0fad84d3365b964f63386a836 Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Sun, 3 May 2020 16:41:47 +0200 Subject: [PATCH] Reformat templates --- .../chronos/partials/datepicker.html | 22 +++++++++---------- .../chronos/partials/week_select.html | 6 +++-- .../templates/chronos/substitutions.html | 2 +- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/aleksis/apps/chronos/templates/chronos/partials/datepicker.html b/aleksis/apps/chronos/templates/chronos/partials/datepicker.html index ede1fb06..3897461b 100644 --- a/aleksis/apps/chronos/templates/chronos/partials/datepicker.html +++ b/aleksis/apps/chronos/templates/chronos/partials/datepicker.html @@ -7,24 +7,24 @@ {% endif %} <div class="col s2 no-padding"> - <a class="waves-effect waves-teal btn-flat btn-flat-medium left" href="{{ url_prev }}"> - <i class="material-icons center">navigate_before</i> - </a> + <a class="waves-effect waves-teal btn-flat btn-flat-medium left" href="{{ url_prev }}"> + <i class="material-icons center">navigate_before</i> + </a> </div> {% if display_date_only %} - <div class="col s8"> + <div class="col s8"> <span class="card-title center-block" id="date"> {{ day|date:"l" }}, {{ day }} </span> - </div> + </div> {% else %} - <div class="col s8 no-padding"> - <input type="text" class="datepicker center-align" id="date"> - </div> + <div class="col s8 no-padding"> + <input type="text" class="datepicker center-align" id="date"> + </div> {% endif %} <div class="col s2 no-padding"> - <a class="waves-effect waves-teal btn-flat btn-flat-medium right" href="{{ url_next }}"> - <i class="material-icons center">navigate_next</i> - </a> + <a class="waves-effect waves-teal btn-flat btn-flat-medium right" href="{{ url_next }}"> + <i class="material-icons center">navigate_next</i> + </a> </div> diff --git a/aleksis/apps/chronos/templates/chronos/partials/week_select.html b/aleksis/apps/chronos/templates/chronos/partials/week_select.html index 6739290f..f2c8f31c 100644 --- a/aleksis/apps/chronos/templates/chronos/partials/week_select.html +++ b/aleksis/apps/chronos/templates/chronos/partials/week_select.html @@ -11,7 +11,8 @@ <select id="calendar-week-1"> {% for week in weeks %} <option value="{{ week.week }}" {% if week == wanted_week %} - selected {% endif %}>{% trans "CW" %} {{ week.week }} ({{ week.0|date:"SHORT_DATE_FORMAT" }}–{{ week.6|date:"SHORT_DATE_FORMAT" }}) + selected {% endif %}>{% trans "CW" %} {{ week.week }} + ({{ week.0|date:"SHORT_DATE_FORMAT" }}–{{ week.6|date:"SHORT_DATE_FORMAT" }}) </option> {% endfor %} </select> @@ -21,7 +22,8 @@ <select id="calendar-week-2"> {% for week in weeks %} <option value="{{ week.week }}" {% if week == wanted_week %} - selected {% endif %}>{% trans "CW" %} {{ week.week }} ({{ week.0|date:"j.n." }}–{{ week.6|date:"SHORT_DATE_FORMAT" }}) + selected {% endif %}>{% trans "CW" %} {{ week.week }} + ({{ week.0|date:"j.n." }}–{{ week.6|date:"SHORT_DATE_FORMAT" }}) </option> {% endfor %} </select> diff --git a/aleksis/apps/chronos/templates/chronos/substitutions.html b/aleksis/apps/chronos/templates/chronos/substitutions.html index 3f5d70b3..b5f8551d 100644 --- a/aleksis/apps/chronos/templates/chronos/substitutions.html +++ b/aleksis/apps/chronos/templates/chronos/substitutions.html @@ -64,7 +64,7 @@ {% include "chronos/partials/subs/groups.html" with type=item.type el=item.el %} </td> <td> - {% include "chronos/partials/subs/period.html" with type=item.type el=item.el %} + {% include "chronos/partials/subs/period.html" with type=item.type el=item.el %} </td> <td> {% include "chronos/partials/subs/teachers.html" with type=item.type el=item.el %} -- GitLab