84 lines
		
	
	
	
		
			3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			84 lines
		
	
	
	
		
			3 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{ prilohy.management_form }}
 | |
| 
 | |
| <h4>Soubory s řešením</h4>
 | |
| 
 | |
| <p style="text-align: justify">Pokud je to možné a dává to smysl (tj. není to třeba kód nebo doprovodný obrázek), pošli nám prosím své řešení ve formátu <strong>PDF</strong>, ostatní formáty nemusíme umět otevřít.</p>
 | |
| <p style="text-align: justify">Pokud svůj soubor <strong>rozumně pojmenuješ</strong>, urychlíš opravování a předejdeš tomu, že si nějakého tvého řešení nevšimneme. Například z <code>img_250921_101205.pdf</code> nepoznáme, kterou úlohu jsi odevzdal, zato <code>uloha_3.pdf</code> nebo <code>tema_1.pdf</code>, to už je něco jiného. Případně můžeš využít i poznámku řešitele.</p>
 | |
| <p style="text-align: justify">Maximální součet velikostí příloh je cca <strong>49 MB</strong>.</p>
 | |
| 
 | |
| <div id="form_set">
 | |
| {% for form in prilohy.forms %}
 | |
| 	<div class="attachment">
 | |
| 	{{ form.non_field_errors }}
 | |
| 	{# {{ form.errors }} FIXME: možná tohle chceme zobrazovat? #}
 | |
|         <table class='form' id="reseni">
 | |
|           <tr>
 | |
|           {% for field in form.visible_fields %}
 | |
| 
 | |
|               <td>
 | |
| 		      <label class="field-label{% if field.field.required %} field-required{% endif %}{% if field.errors%} field-error{% 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>
 | |
| 
 | |
| 
 | |
|           {% endfor %}
 | |
| 
 | |
|         <td>
 | |
|           <input type="button" value="Odebrat přílohu" class="remove_attachment" id="{{form.prefix}}-jsremove">
 | |
|         </td>
 | |
| 	</tr>
 | |
| 	<tr>
 | |
|           {% for field in form.visible_fields %}
 | |
| 	  <td rowspan="2"><span class="field-error">{% for error in field.errors %}{{error}} {% endfor %}</span></td>
 | |
|           {% endfor %}
 | |
| 	</tr>
 | |
|   </table>
 | |
| 	</div>
 | |
| {% endfor %}
 | |
| </div>
 | |
| 
 | |
| <input type="button" value="Přidat přílohu" id="add_attachment">
 | |
| 
 | |
| <div id="empty_form" style="display:none">
 | |
| 	<div class="attachment">
 | |
| 
 | |
|         <table class='form no_error' id="reseni">
 | |
|           <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 }}</span>
 | |
|               </td>
 | |
| 
 | |
|           {% endfor %}
 | |
| 
 | |
|         <td>
 | |
| 
 | |
| 
 | |
| 	<input type="button" value="Odebrat přílohu" class="remove_attachment" id="id_prilohy-__prefix__-jsremove">
 | |
|   </td>
 | |
| </tr>
 | |
| <tr>
 | |
|           {% for field in prilohy.empty_form.visible_fields %}
 | |
| 
 | |
|             <td rowspan="2"><span class="field-error">{{ field.errors }}</span></td>
 | |
| 
 | |
|           {% endfor %}
 | |
| 
 | |
| </tr>
 | |
| </table>
 | |
| 	</div>
 | |
| </div>
 |