Anet
5 years ago
13 changed files with 296 additions and 159 deletions
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 2.0 KiB |
@ -0,0 +1,19 @@ |
|||
# Generated by Django 2.2.12 on 2020-05-06 17:51 |
|||
|
|||
from django.db import migrations, models |
|||
import seminar.models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('seminar', '0081_auto_20200408_2221'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='cislo', |
|||
name='titulka_nahled', |
|||
field=models.ImageField(blank=True, help_text='Obrázek titulní strany, generuje se automaticky', null=True, upload_to=seminar.models.cislo_png_filename, verbose_name='Obrázek titulní strany'), |
|||
), |
|||
] |
@ -0,0 +1,19 @@ |
|||
# Generated by Django 2.2.12 on 2020-05-06 17:52 |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('seminar', '0082_auto_20200506_1951'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AlterField( |
|||
model_name='treenode', |
|||
name='first_child', |
|||
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='father_of_first', to='seminar.TreeNode', verbose_name='první potomek'), |
|||
), |
|||
] |
@ -1,4 +1,23 @@ |
|||
<label class="field-label{% if field.field.required %} field-required{% endif %}" for="{{ field.id_for_label }}">{{ field.label }}:</label> |
|||
{{field}} |
|||
{% if field.help_text %}<span class="field-helptext">{{ field.help_text|safe }}</span>{% endif %} |
|||
{% if field.errors %}<span class="field-error">{{ field.errors }}</span>{% endif %} |
|||
|
|||
<tr id="{{ id }}" > |
|||
<td> |
|||
<label class="field-label{% if field.field.required %} field-required{% endif %}" for="{{ field.id_for_label }}"> |
|||
{{ field.label }}: |
|||
</label> |
|||
</td> |
|||
<td> |
|||
{{ field }} |
|||
</td> |
|||
</tr> |
|||
|
|||
{% if field.help_text %} |
|||
<tr> |
|||
<td colspan="2"><span class="field-helptext">{{ field.help_text|safe }}</span></td> |
|||
</tr> |
|||
{% endif %} |
|||
|
|||
{% if field.errors %} |
|||
<tr> |
|||
<td colspan="2"><span class="field-error">{{ field.errors }}</span></td> |
|||
</tr> |
|||
{% endif %} |
|||
|
Loading…
Reference in new issue