flask-server/kinolist/templates/_choicelist.html

39 lines
730 B
HTML
Raw Permalink Normal View History

2024-10-08 13:20:00 -04:00
<div class="choice-list">
<table class="styled-table">
<thead>
<tr>
<th>Choose</th>
<th>Title</th>
<th>Year</th>
<th>Poster</th>
</tr>
</thead>
<tbody>
{% for movie in movies %}
<tr id={{ movie["imdbID"] }}>
<td>
<input type="radio" name="choice">
</td>
<td>
{% autoescape false %}
{{ movie["Title"]|replace("\n","<br>")}}
{% endautoescape %}
</td>
<td>
{{ movie["Year"] }}
</td>
<td>
{% if movie["Poster"] != "N/A" %}
<img src="{{ movie["Poster"] }}" width={{ w }}>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div>
<button onclick="makeChoice()">OK</button>
<button onclick="cancelChoice()">Cancel</button>
</div>