From 3c97366a60755f94aa4f9267efb6b61b6682f299 Mon Sep 17 00:00:00 2001
From: Ondrej Rehounek <ondra.rehounek@seznam.cz>
Date: Thu, 11 Aug 2022 11:10:57 +0200
Subject: [PATCH] main: program page skeleton

---
 main/blocks.py                             |  2 +-
 main/templates/main/main_program_page.html | 33 ++++++++++++++++++++++
 2 files changed, 34 insertions(+), 1 deletion(-)
 create mode 100644 main/templates/main/main_program_page.html

diff --git a/main/blocks.py b/main/blocks.py
index e9619430..0aa01be3 100644
--- a/main/blocks.py
+++ b/main/blocks.py
@@ -46,7 +46,7 @@ class ProgramBlock(StructBlock):
 
 class ProgramGroupBlock(StructBlock):
     title = CharBlock()
-    person_list = ListBlock(ProgramBlock())
+    point_list = ListBlock(ProgramBlock())
 
 
 class TweetsBlock(StructBlock):
diff --git a/main/templates/main/main_program_page.html b/main/templates/main/main_program_page.html
new file mode 100644
index 00000000..0e996702
--- /dev/null
+++ b/main/templates/main/main_program_page.html
@@ -0,0 +1,33 @@
+{% extends "main/base.html" %}
+{% load wagtailcore_tags wagtailimages_tags shared_filters %}
+
+{% block content %}
+  <header>
+    <h1 itemprop="headline" class="">
+      {{ page.title }}
+    </h1>
+  </header>
+  <div class="">
+    <section>
+      <p>
+        {{ page.perex }}
+      </p>
+    </section>
+    <section>
+      {% for program_group in page.program %}
+        <div>{# tab navigage #}
+          {{ program_group.title }}
+        </div>
+      {% endfor %}
+      {% for program_group in page.program %}
+        {% for program_point in program_group.point_list %}
+          <div>{# body tabu #}
+            {{ program_group.icon }}
+            {{ program_group.title }}
+            {{ program_group.text }}
+          </div>
+          {% endfor %}
+      {% endfor %}
+    </section>
+  </div>
+{% endblock %}
-- 
GitLab