commit | author | age
|
a4186a
|
1 |
{% extends "admin/html-skeleton.twig" %} |
FÁ |
2 |
{% block body %} |
|
3 |
<form action="/generator/match-history.php" method="post"> |
|
4 |
<select name="currentMap" id="currentMap" onchange="updateSites()"> |
|
5 |
{% for map in history.getMapNames %} |
|
6 |
<option value="{{ map }}" {{ history.getCurrentMap == map ? "selected" }}>{{ map }}</option> |
|
7 |
{% endfor %} |
|
8 |
</select> |
|
9 |
<div class="form-group"> |
|
10 |
<pre> |
|
11 |
{% for round in history %} |
|
12 |
{% include "admin/history-round.twig" %} |
|
13 |
{% endfor %} |
|
14 |
</pre> |
|
15 |
</div> |
|
16 |
</form> |
|
17 |
{% endblock %} |
|
18 |
|
|
19 |
{% block lazyload %} |
|
20 |
{{ parent() }} |
|
21 |
<script type="text/javascript"> |
|
22 |
var maps = {{ history.getMaps|json_encode|raw }} |
|
23 |
function updateSites() { |
|
24 |
var currentMap = document.getElementById('currentMap').value; |
|
25 |
console.log(maps[currentMap]); |
|
26 |
} |
|
27 |
</script> |
|
28 |
{% endblock %} |