myprecious/templates/upload.html (view raw)
1{% extends "base.html" %}
2{% block title %}upload{% endblock %}
3{% block content %}
4<form action="/upload" method="POST" enctype="multipart/form-data">
5 <input type="text" name="game_id" value="{{ game.game_id }}" required />
6 <input type="text" name="platform_id" value="{{ game.platform_id }}" required />
7 <table>
8 <tr onClick="window.location.href = '/search';">
9 <td>
10 <img src="{{ game.cover }}" style="height: 100px;">
11 </td>
12 <td>
13 <i>{{ game.title }}</i>
14 {% if game.platform %}
15 on <i>{{ game.platform }}</i>
16 {% endif %}
17 </td>
18 </tr>
19 </table>
20 {% if game.platform %}
21 Now pick your save:
22 <input type="file" name="file" required />
23 {% endif %}
24 <input type="submit" value="submit save" {% if not game.platform %}disabled{% endif %}/>
25</form>
26{% endblock %}