diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2020-08-23 17:06:24 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2020-08-23 17:06:24 +0200 |
commit | d3a6a99e9c1751ec08bed526d4ce7237425cdf73 (patch) | |
tree | 1a045f2d0059610a5bc60d200f6becf309a211a8 /templates/screening | |
parent | 0a2d6fc06fc1988f860ab81fe53d1e6dae470407 (diff) | |
download | ramaskrik-social-d3a6a99e9c1751ec08bed526d4ce7237425cdf73.tar.gz ramaskrik-social-d3a6a99e9c1751ec08bed526d4ce7237425cdf73.tar.bz2 ramaskrik-social-d3a6a99e9c1751ec08bed526d4ce7237425cdf73.zip |
Change start/end times to complete timestamps.
The way we had this until now with a date and separate start and end
times does not really work. There are cases when a screening starts on
one day, but ends on the next. By keeping a complete timestamp for both
the start and end times, we don't fall into this problem.
Diffstat (limited to 'templates/screening')
-rw-r--r-- | templates/screening/list.tera | 4 | ||||
-rw-r--r-- | templates/screening/new.tera | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/templates/screening/list.tera b/templates/screening/list.tera index 263d3ea..55ac971 100644 --- a/templates/screening/list.tera +++ b/templates/screening/list.tera @@ -15,8 +15,8 @@ No screenings defined. <table> {% for s in screenings -%} <tr> - <td>{{ s.date }}</td> - <td>{{ s.start_time }} - {{ s.end_time }}:</td> + <td>{{ s.start_time | date }}</td> + <td>{{ s.start_time | date(format="%H:%M") }} - {{ s.end_time | date(format="%H:%M") }}:</td> <td>{{ s.film.title }}</td> <td>({{ s.room.name }})</td> <td> diff --git a/templates/screening/new.tera b/templates/screening/new.tera index 0c3eb73..fd6be2f 100644 --- a/templates/screening/new.tera +++ b/templates/screening/new.tera @@ -20,14 +20,11 @@ <option value="{{ room.id }}">{{ room.name }}</option> {% endfor %} - <label for="date">Date: </label> - <input name="date" type="date"> - <label for="start_time">Start time: </label> - <input name="start_time" type="time"> + <input name="start_time" type="datetime"> <label for="end_time">End time: </label> - <input name="end_time" type="time"> + <input name="end_time" type="datetime"> </select> <input type="submit" value="Save"> |