Jonas Havelka
8 months ago
5 changed files with 82 additions and 3 deletions
@ -0,0 +1,54 @@ |
|||
{% extends "base.html" %} |
|||
|
|||
{% block content %} |
|||
|
|||
<br> |
|||
|
|||
<h1>{% block nadpis1a %}M&Mí šifrovačka{% endblock nadpis1a %}</h1> |
|||
|
|||
<br> |
|||
|
|||
<h2>Přeskočit šifru:</h2> |
|||
|
|||
<form action="{% url 'sifrovacka_preskoceni' %}" method="post"> |
|||
<table class="form"> |
|||
{{form.non_field_errors}} |
|||
{% for field in form %} |
|||
{% if field.id_for_label != "id_odpoved" %} |
|||
<tr> |
|||
<td> |
|||
<label class="field-label{% if field.field.required %} field-required{% endif %}" for="{{ field.id_for_label }}"> |
|||
{{ field.label }} |
|||
</label> |
|||
|
|||
</td> |
|||
|
|||
<td {% if field.help_text %} class="field-with-comment"{% endif %}> |
|||
{{ field }} |
|||
<span class="field-comment">{{ field.help_text|safe }}</span> |
|||
</td> |
|||
|
|||
</tr> |
|||
|
|||
|
|||
{% if field.errors %} |
|||
<tr> |
|||
<td colspan="2"><span class="field-error">{{ field.errors }}</span></td> |
|||
</tr> |
|||
{% endif %} |
|||
{% else %} |
|||
{{ field.as_hidden }} |
|||
{% endif %} |
|||
{% endfor %} |
|||
</table> |
|||
|
|||
{% csrf_token %} |
|||
|
|||
<input type="submit" value="Chceme další stanoviště bez vyřešení šifry"> |
|||
</form> |
|||
|
|||
<p><a href="{% url 'sifrovacka' %}">Nechceme přeskočit, známe řešení!</a></p> |
|||
|
|||
<p><a href="{% url 'sifrovacka_napoveda' %}">Nechceme přeskakovat, ale nápověda by se šikla.</a></p> |
|||
|
|||
{% endblock content %} |
Loading…
Reference in new issue