Skip to content
Snippets Groups Projects
Commit 26bdd321 authored by jan.bednarik's avatar jan.bednarik
Browse files

elections2021: Programm app textxs update

parent 7c28df5d
Branches
No related tags found
2 merge requests!252elections2021: Programm app textxs update,!251elections2021: Programm app textxs update
Pipeline #3691 passed
# Generated by Django 3.2.2 on 2021-05-17 15:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("elections2021", "0024_elections2021programpage_head_title"),
]
operations = [
migrations.AddField(
model_name="elections2021programapppage",
name="info_title",
field=models.CharField(
blank=True,
max_length=255,
null=True,
verbose_name="titulek k informacím",
),
),
]
......@@ -1719,13 +1719,19 @@ class Elections2021QuestionsPage(SubpageMixin, MetadataPageMixin, Page):
class Elections2021ProgramAppPage(SubpageMixin, MetadataPageMixin, Page):
### FIELDS
info_title = models.CharField(
"titulek k informacím", blank=True, null=True, max_length=255
)
info_text = RichTextField(
"základní informace", blank=True, null=True, features=RESTRICTED_FEATURES
)
### PANELS
content_panels = Page.content_panels + [FieldPanel("info_text")]
content_panels = Page.content_panels + [
FieldPanel("info_title"),
FieldPanel("info_text"),
]
promote_panels = [
MultiFieldPanel(
......
......@@ -64,7 +64,6 @@
</div>
</div>
</a>
<p class="mt-5 text-white">Aplikace vám vyselektuje programové <br>body vám na míru</p>
</div>
</div>
</div>
......
......@@ -13,13 +13,13 @@
<form method="post">
{% csrf_token %}
{% if page.info_text %}
<div class="grid grid-cols-4 mb-20 md:mb-40">
{% if page.info_title %}
<div class="grid grid-cols-4 mb-20">
<div class="col-span-4 md:col-span-1">
<p class="head-xs font-bold">Základní informace</p>
<p class="head-xs font-bold">{{ page.info_title }}</p>
</div>
<div class="col-span-4 md:col-span-3 md:pl-16 mt-5 md:mt-0">
<p class="para">{{ page.info_text|richtext }}</p>
<div class="content-block col-span-4 md:col-span-3 md:pl-16 mt-5 md:mt-0">
{{ page.info_text|richtext }}
</div>
</div>
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment