|
|
@ -13,6 +13,10 @@ Do: {{ filtr.reseni_do }} |
|
|
|
<input type=submit value="→"> |
|
|
|
</form> |
|
|
|
|
|
|
|
<form onsubmit="javascript:jiny_rocnik_redir(); return false;"> |
|
|
|
<input type=number max="{{ aktualni_rocnik.rocnik }}" min=1 id=jiny_rocnik placeholder="Jiný ročník"> |
|
|
|
<input type=submit value="Přejdi"> |
|
|
|
</form> |
|
|
|
<table class="dosla_reseni"> |
|
|
|
<tr> |
|
|
|
<td></td> {# Prázdná buňka v levém horním rohu #} |
|
|
@ -43,3 +47,18 @@ Do: {{ filtr.reseni_do }} |
|
|
|
</table> |
|
|
|
|
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
{% block script %} |
|
|
|
<script type=text/javascript> |
|
|
|
// Nemůže se to jmenovat jen "jiny_rocnik", protože se to přepíše: https://trackjs.com/blog/when-form-submit-is-not-a-function/ |
|
|
|
function jiny_rocnik_redir() { |
|
|
|
let rocnik = document.getElementById("jiny_rocnik").value; |
|
|
|
var redirect = undefined; |
|
|
|
if (rocnik == '') |
|
|
|
redirect = '/org/reseni/'; |
|
|
|
else |
|
|
|
redirect = '/org/reseni/rocnik/'+rocnik+'/'; |
|
|
|
location.assign(redirect); |
|
|
|
} |
|
|
|
</script> |
|
|
|
{% endblock %} |
|
|
|