improve tempalte

This commit is contained in:
2019-09-10 01:32:32 +03:00
parent 5ce870714c
commit 59051dee7a
15 changed files with 368 additions and 36 deletions

View File

@ -1,8 +1,9 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Suggest loot</title>
{% include "style.jinja2" %}
<link href="{{ static('styles.css') }}" rel="stylesheet" type="text/css">
</head>
<body>
<h2>suggest loot</h2>
@ -17,7 +18,7 @@
{% endfor %}
</select>
<input name="is_tome" id="is_tome" title="is tome" type="checkbox"/>
<button>suggest</button>
<input name="suggest" id="suggest" type="button" value="suggest"/>
</form>
<table id="result">
@ -25,6 +26,7 @@
<th>player</th>
<th>bis pieces looted</th>
<th>total pieces looted</th>
<th></th>
</tr>
{% for player in suggest %}
@ -32,6 +34,14 @@
<td class="include_search">{{ player.player|e }}</td>
<td>{{ player.loot_count_bis|e }}</td>
<td>{{ player.loot_count|e }}</td>
<td>
<form action="/loot" method="post">
<input name="player" id="player" type="hidden" value="{{ player.player|e }}"/>
<input name="piece" id="piece" type="hidden" value="{{ item.piece|e }}"/>
<input name="is_tome" id="is_tome" type="hidden" value="{{ item.is_tome|e }}"/>
<input name="action" id="action" type="hidden" value="remove"/>
</form>
</td>
</tr>
{% endfor %}
</table>