{% extends "admin/html-skeleton.twig" %}
|
{% block body %}
|
<form action="/generator/match-history.php" method="post">
|
<select name="currentMap" id="currentMap" onchange="updateSites()">
|
{% for map in history.getMapNames %}
|
<option value="{{ map }}" {{ history.getCurrentMap == map ? "selected" }}>{{ map }}</option>
|
{% endfor %}
|
</select>
|
<div class="form-group">
|
<pre>
|
{% for round in history %}
|
{% include "admin/history-round.twig" %}
|
{% endfor %}
|
</pre>
|
</div>
|
</form>
|
{% endblock %}
|
|
{% block lazyload %}
|
{{ parent() }}
|
<script type="text/javascript">
|
var maps = {{ history.getMaps|json_encode|raw }}
|
function updateSites() {
|
var currentMap = document.getElementById('currentMap').value;
|
console.log(maps[currentMap]);
|
}
|
</script>
|
{% endblock %}
|