aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2020-08-23 15:03:13 +0200
committerHarald Eilertsen <haraldei@anduin.net>2020-08-23 15:03:13 +0200
commit0a2d6fc06fc1988f860ab81fe53d1e6dae470407 (patch)
tree031cca26771c25a06c291a3c12551b8517451b72 /templates
parent129e8d34906584b5e6c3eeeb18958fc5e2c39c33 (diff)
downloadramaskrik-social-0a2d6fc06fc1988f860ab81fe53d1e6dae470407.tar.gz
ramaskrik-social-0a2d6fc06fc1988f860ab81fe53d1e6dae470407.tar.bz2
ramaskrik-social-0a2d6fc06fc1988f860ab81fe53d1e6dae470407.zip
Implement deleting screenings from web ui.
Diffstat (limited to 'templates')
-rw-r--r--templates/screening/list.tera18
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>