diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/screening/list.tera | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/templates/screening/list.tera b/templates/screening/list.tera index 7c92303..263d3ea 100644 --- a/templates/screening/list.tera +++ b/templates/screening/list.tera @@ -12,11 +12,23 @@ {% if screenings | length <= 0%} No screenings defined. {% else %} -<ul> +<table> {% for s in screenings -%} -<li>{{ s.date }} {{ s.start_time }} - {{ s.end_time }}: {{ s.film.title }} ({{ s.room.name }})</li> + <tr> + <td>{{ s.date }}</td> + <td>{{ s.start_time }} - {{ s.end_time }}:</td> + <td>{{ s.film.title }}</td> + <td>({{ s.room.name }})</td> + <td> + <form class="delete-item" id="delete-screening-{{ s.id }}" action="/screenings" method="POST"> + <input name="_method" value="DELETE" type="hidden"> + <input name="screening_id" value="{{ s.id }}" type="hidden"> + <input type="submit" value="X"> + </form> + </td> + </tr> {% endfor -%} -</ul> +</table> {% endif %} </body> </html> |