mirror of
https://github.com/arcan1s/ffxivbis.git
synced 2025-07-15 22:59:58 +00:00
add loot interfaces
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
<form action="/bis" method="post">
|
||||
<select name="player" id="player" title="player">
|
||||
{% for player in players %}
|
||||
<option>{{ player.player|e }}</option>
|
||||
<option>{{ player|e }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<select name="piece" id="piece" title="piece">
|
||||
@ -29,7 +29,7 @@
|
||||
<form action="/bis" method="post">
|
||||
<select name="player" id="player" title="player">
|
||||
{% for player in players %}
|
||||
<option>{{ player.player|e }}</option>
|
||||
<option>{{ player|e }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input name="bis" id="bis" placeholder="player bis link" title="bis" type="text"/>
|
||||
@ -45,11 +45,11 @@
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
{% for player in players %}
|
||||
{% for item in items %}
|
||||
<tr>
|
||||
<td class="include_search">{{ player.player|e }}</td>
|
||||
<td class="include_search">{{ player.piece|e }}</td>
|
||||
<td>{{ player.is_tome|e }}</td>
|
||||
<td class="include_search">{{ item.player|e }}</td>
|
||||
<td class="include_search">{{ item.piece|e }}</td>
|
||||
<td>{{ item.is_tome|e }}</td>
|
||||
<td>
|
||||
<form action="/bis" method="post">
|
||||
<input name="action" id="action" type="hidden" value="remove"/>
|
||||
|
@ -8,6 +8,7 @@
|
||||
<a href="/party" title="party"><h2>party</h2></a>
|
||||
<a href="/bis" title="bis management"><h2>bis</h2></a>
|
||||
<a href="/loot" title="loot management"><h2>loot</h2></a>
|
||||
<a href="/suggest" title="suggest loot"><h2>suggest</h2></a>
|
||||
</center>
|
||||
</body>
|
||||
</html>
|
||||
|
56
templates/loot.jinja2
Normal file
56
templates/loot.jinja2
Normal file
@ -0,0 +1,56 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Loot</title>
|
||||
|
||||
{% include "style.jinja2" %}
|
||||
</head>
|
||||
<body>
|
||||
<h2>Loot</h2>
|
||||
|
||||
{% include "error.jinja2" %}
|
||||
{% include "search_line.jinja2" %}
|
||||
|
||||
<form action="/loot" method="post">
|
||||
<select name="player" id="player" title="player">
|
||||
{% for player in players %}
|
||||
<option>{{ player|e }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<select name="piece" id="piece" title="piece">
|
||||
{% for piece in pieces %}
|
||||
<option>{{ piece|e }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input name="is_tome" id="is_tome" title="is tome" type="checkbox"/>
|
||||
<input name="action" id="action" type="hidden" value="add"/>
|
||||
<button>add</button>
|
||||
</form>
|
||||
|
||||
<table id="result">
|
||||
<tr>
|
||||
<th>player</th>
|
||||
<th>piece</th>
|
||||
<th>is_tome</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
{% for item in items %}
|
||||
<tr>
|
||||
<td class="include_search">{{ item.player|e }}</td>
|
||||
<td class="include_search">{{ item.piece|e }}</td>
|
||||
<td>{{ item.is_tome|e }}</td>
|
||||
<td>
|
||||
<form action="/loot" method="post">
|
||||
<input name="action" id="action" type="hidden" value="remove"/>
|
||||
<button>remove</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% include "export_to_csv.jinja2" %}
|
||||
{% include "root.jinja2" %}
|
||||
{% include "search.jinja2" %}
|
||||
</body>
|
||||
</html>
|
48
templates/loot_suggest.jinja2
Normal file
48
templates/loot_suggest.jinja2
Normal file
@ -0,0 +1,48 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Suggest loot</title>
|
||||
|
||||
{% include "style.jinja2" %}
|
||||
</head>
|
||||
<body>
|
||||
<h2>suggest loot</h2>
|
||||
|
||||
{% include "error.jinja2" %}
|
||||
{% include "search_line.jinja2" %}
|
||||
|
||||
<form action="/suggest" method="post">
|
||||
<select name="player" id="player" title="player">
|
||||
{% for player in players %}
|
||||
<option>{{ player|e }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<select name="piece" id="piece" title="piece">
|
||||
{% for piece in pieces %}
|
||||
<option>{{ piece|e }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<input name="is_tome" id="is_tome" title="is tome" type="checkbox"/>
|
||||
<button>suggest</button>
|
||||
</form>
|
||||
|
||||
<table id="result">
|
||||
<tr>
|
||||
<th>player</th>
|
||||
<th>bis pieces looted</th>
|
||||
<th>total pieces looted</th>
|
||||
</tr>
|
||||
|
||||
{% for player in suggest %}
|
||||
<tr>
|
||||
<td class="include_search">{{ player.player|e }}</td>
|
||||
<td>{{ player.loot_count_bis|e }}</td>
|
||||
<td>{{ player.loot_count|e }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% include "export_to_csv.jinja2" %}
|
||||
{% include "root.jinja2" %}
|
||||
{% include "search.jinja2" %}
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user