39 lines
730 B
HTML
39 lines
730 B
HTML
|
<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>
|