blob: 39268fef84fe350784f7f62b53654070d1a7c895 (
plain) (
tree)
|
|
<!DOCTYPE html>
<html>
<head>
<title>Edit screening</title>
</head>
<body>
<h1>Edit screening</h1>
<form name="edit_screening_form" action="/screenings" method="POST">
<input name="_method" value="PATCH" type="hidden">
<input name="id" value="{{ screening.id }}" type="hidden">
<label for="film_id">Film: </label>
<select name="film_id">
{% for film in films %}
<option value="{{ film.id }}"{% if film.id == screening.film_id %} selected{% endif %}>{{ film.title }}</option>
{% endfor %}
</select>
<label for="room_id">Room: </label>
<select name="room_id">
{% for room in rooms %}
<option value="{{ room.id }}"{% if room.id == screening.room_id %} selected{% endif %}>{{ room.name }}</option>
{% endfor %}
<label for="date">Date: </label>
<input name="date" type="date" value="{{ screening.start_time | date }}">
<label for="start_time">Start time: </label>
<input name="start_time" type="time" value="{{ screening.start_time | date(format="%H:%M") }}">
<label for="end_time">End time: </label>
<input name="end_time" type="time" value="{{ screening.end_time | date(format="%H:%M") }}">
</select>
<input type="submit" value="Save">
</form>
</body>
</html>
|