|
@ -14,13 +14,26 @@ |
|
|
</h1> |
|
|
</h1> |
|
|
<form enctype="multipart/form-data" action="{% url 'seminar_nahraj_reseni' %}" method="post"> |
|
|
<form enctype="multipart/form-data" action="{% url 'seminar_nahraj_reseni' %}" method="post"> |
|
|
{% csrf_token %} |
|
|
{% csrf_token %} |
|
|
{{ form }} |
|
|
<table class='form' id="reseni"> |
|
|
|
|
|
<tr> |
|
|
|
|
|
{% for field in form %} |
|
|
|
|
|
<td> |
|
|
|
|
|
<label class="field-label{% if field.field.required %} field-required{% endif %}" for="{{ field.id_for_label }}"> |
|
|
|
|
|
{{ field.label }}: |
|
|
|
|
|
</label> |
|
|
|
|
|
</td> |
|
|
|
|
|
<td> |
|
|
|
|
|
{{ field }} |
|
|
|
|
|
</td> |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
</tr> |
|
|
|
|
|
</table> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<hr> |
|
|
<hr> |
|
|
|
|
|
|
|
|
{{ prilohy.management_form }} |
|
|
{{ prilohy.management_form }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h4>Soubory s řešením</h4> |
|
|
<h4>Soubory s řešením</h4> |
|
|
|
|
|
|
|
|
<div id="form_set"> |
|
|
<div id="form_set"> |
|
@ -28,8 +41,7 @@ |
|
|
<div class="attachment"> |
|
|
<div class="attachment"> |
|
|
{{ form.non_field_errors }} |
|
|
{{ form.non_field_errors }} |
|
|
{# {{ form.errors }} FIXME: možná tohle chceme zobrazovat? #} |
|
|
{# {{ form.errors }} FIXME: možná tohle chceme zobrazovat? #} |
|
|
<table class='form' id=''> |
|
|
<table class='form' id="reseni"> |
|
|
|
|
|
|
|
|
<tr> |
|
|
<tr> |
|
|
{% for field in form.visible_fields %} |
|
|
{% for field in form.visible_fields %} |
|
|
|
|
|
|
|
@ -46,12 +58,13 @@ |
|
|
|
|
|
|
|
|
<td><span class="field-error">{{ field.errors }}</span></td> |
|
|
<td><span class="field-error">{{ field.errors }}</span></td> |
|
|
|
|
|
|
|
|
{# TODO #} |
|
|
|
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
</tr> |
|
|
|
|
|
|
|
|
|
|
|
</table> |
|
|
<td> |
|
|
<input type="button" value="Odebrat přílohu" class="remove_attachment" id="{{form.prefix}}-jsremove"> |
|
|
<input type="button" value="Odebrat přílohu" class="remove_attachment" id="{{form.prefix}}-jsremove"> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
</table> |
|
|
</div> |
|
|
</div> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
</div> |
|
|
</div> |
|
@ -60,10 +73,33 @@ |
|
|
|
|
|
|
|
|
<div id="empty_form" style="display:none"> |
|
|
<div id="empty_form" style="display:none"> |
|
|
<div class="attachment"> |
|
|
<div class="attachment"> |
|
|
<table class='no_error'> |
|
|
|
|
|
{{ prilohy.empty_form }} |
|
|
<table class='form' id="reseni" class='no_error'> |
|
|
</table> |
|
|
<tr> |
|
|
|
|
|
{% for field in prilohy.empty_form.visible_fields %} |
|
|
|
|
|
|
|
|
|
|
|
<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 }} |
|
|
|
|
|
</td> |
|
|
|
|
|
|
|
|
|
|
|
<td><span class="field-error">{{ field.errors }}</span></td> |
|
|
|
|
|
|
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
|
|
|
<td> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<input type="button" value="Odebrat přílohu" class="remove_attachment" id="id_prilohy-__prefix__-jsremove"> |
|
|
<input type="button" value="Odebrat přílohu" class="remove_attachment" id="id_prilohy-__prefix__-jsremove"> |
|
|
|
|
|
</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
</table> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|