|
@ -15,18 +15,41 @@ |
|
|
<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 }} |
|
|
{{ form }} |
|
|
|
|
|
|
|
|
|
|
|
<hr> |
|
|
|
|
|
|
|
|
{{ prilohy.management_form }} |
|
|
{{ prilohy.management_form }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h4>Přilohy s řešením</h4> |
|
|
<h4>Soubory s řešením</h4> |
|
|
|
|
|
|
|
|
<div id="form_set"> |
|
|
<div id="form_set"> |
|
|
{% for form in prilohy.forms %} |
|
|
{% for form in prilohy.forms %} |
|
|
<div class="attachment"> |
|
|
<div class="attachment"> |
|
|
{{ form.non_field_errors }} |
|
|
{{ form.non_field_errors }} |
|
|
{{ form.errors }} |
|
|
{# {{ form.errors }} FIXME: možná tohle chceme zobrazovat? #} |
|
|
<table class='no_error'> |
|
|
<table class='form' id=''> |
|
|
{{ form }} |
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
{% for field in 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> |
|
|
|
|
|
|
|
|
|
|
|
{# TODO #} |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
</tr> |
|
|
|
|
|
|
|
|
</table> |
|
|
</table> |
|
|
<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"> |
|
|
</div> |
|
|
</div> |
|
@ -45,7 +68,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<hr> |
|
|
<hr> |
|
|
<h4>Odevzdat má řešení</h4> |
|
|
<h4>Odevzdat řešení</h4> |
|
|
<input type="submit" value="Odevzdat"> |
|
|
<input type="submit" value="Odevzdat"> |
|
|
</form> |
|
|
</form> |
|
|
|
|
|
|
|
|