Skip to content
Snippets Groups Projects
Commit 1b4bd9bb authored by jarmil's avatar jarmil
Browse files

Customizace vyhledavaciho formulare: editovatelny nadpis a perex

parent b5c39d4a
No related branches found
No related tags found
No related merge requests found
# Generated by Django 3.0.8 on 2020-08-05 05:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('program2021', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='program2021homepage',
name='headline',
field=models.CharField(blank=True, help_text='Hlavní titulek domovské stránky', max_length=100, null=True, verbose_name='název programu'),
),
migrations.AddField(
model_name='program2021homepage',
name='perex',
field=models.TextField(blank=True, help_text='Text pod titulkem', max_length=512, null=True, verbose_name='perex'),
),
]
......@@ -21,9 +21,33 @@ from wagtailmetadata.models import MetadataPageMixin
class Program2021HomePage(Page):
### FIELDS
headline = models.CharField(
"název programu",
max_length=100,
blank=True,
null=True,
help_text="Hlavní titulek domovské stránky",
)
perex = models.TextField(
"perex",
max_length=512,
blank=True,
null=True,
help_text="Text pod titulkem",
)
### PANELS
content_panels = Page.content_panels + [
MultiFieldPanel(
[
FieldPanel("headline"),
FieldPanel("perex"),
],
heading="Vyhledávací formulář",
),
]
settings_panels = []
### RELATIONS
......
......@@ -4,8 +4,8 @@
<section class="jumbotron text-center">
<div class="container">
<h1>Povězte nám kdo jste?</h1>
<p class="lead text-muted">Zkuste nám říci, kdo jste a my vám nabídneme to nejzajímavější z našeho programu pro vás!</p>
<h1>{{ page.headline }}</h1>
<p class="lead text-muted">{{ page.perex }}</p>
<form class="text-left mt-5">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment