From 4a1286cfb34508b38eab1156a0e0a4cd6806e722 Mon Sep 17 00:00:00 2001 From: Emilie Date: Wed, 15 Feb 2017 17:49:08 +0100 Subject: [PATCH] [Event] : create event_base template to invert block text and persons list --- app/templates/agenda/event_base.html | 160 +++++++++++++++++++++++++ app/templates/agenda/event_detail.html | 2 +- 2 files changed, 161 insertions(+), 1 deletion(-) create mode 100644 app/templates/agenda/event_base.html diff --git a/app/templates/agenda/event_base.html b/app/templates/agenda/event_base.html new file mode 100644 index 00000000..a089ef53 --- /dev/null +++ b/app/templates/agenda/event_base.html @@ -0,0 +1,160 @@ +{% extends "pages/page.html" %} +{% load i18n mezzanine_tags keyword_tags organization_tags pages_tags %} + +{% block main %} + + {% block hero %} + {% endblock %} + +
+
+ +
+ +
+ {% block page_title %} + {{ page.title }} + {% endblock %} +
+ +
+ +
+ +
+ +
+ {% block page_sidebar %} + {% endblock %} +
+ +
+ +
+ {% block page_content %} + {{ page.content }} + {% endblock %} + {% block page_link %} + {% with object.links.all as links %} + {% if links %} + {% include 'core/inc/link.html' %} + {% endif %} + {% endwith %} + {% endblock %} + {% block page_file %} + {% with object.files.all as files %} + {% if files %} + {% include 'core/inc/files.html' %} + {% endif %} + {% endwith %} + {% endblock %} + {% block page_audio %} + {% for related in object.playlists.all %} + {% with related.playlist as playlist %} + {% if playlist.type == 'audio' %} + {% include 'media/inc/playlist_audio_detail.html' %} + {% endif %} + {% endwith %} + {% endfor %} + {% endblock %} +
+ +
+ +
+ + {% block page_slider %} + {% with object.images.all|get_type:'page_slider' as slider_images %} + {% if slider_images %} + {% include 'core/inc/slider.html' %} + {% endif %} + {% endwith %} + {% endblock %} + + {% block page_video %} + {% for related in object.playlists.all %} + {% with related.playlist as playlist %} + {% if playlist.type == 'video' %} + {% include 'media/inc/playlist_video_slider.html' %} + {% endif %} + {% endwith %} + {% endfor %} + {% endblock %} + +
+ + {% block page_sub_content %} + {% with object.blocks.all as blocks %} + {% include "core/inc/block.html" %} + {% endwith %} + {% endblock %} + + {% block page_person_list %} + {% endblock %} + + {% block page_demo %} + {% endblock %} + + {% block page_blog %} + {% endblock %} + + {% block related_project %} + {% endblock %} + + {% block products %} + {% if page.product_lists.all|length > 0 %} + {% for page_product_list in page.product_lists.all %} + {% with page_product_list.list as list %} + {% with "shop/includes/product_list_"|add:list.style|add:"_style.html" as template %} + {% include template %} + {% endwith %} + {% endwith %} + {% endfor %} + {% endif %} + {% endblock %} + + {% block page_sub_content_2 %} + {% endblock %} + + {% block page_person_list_team %} + {% endblock %} + + {% block page_sub_content_3 %} + {% endblock %} + + {% block logo %} + {% with page.images.all|get_type:'logo' as images %} + {% if images %} +
+
+
+
+
+
    + {% include 'core/inc/logo.html' %} +
+
+
+
+
+
+ {% endif %} + {% endwith %} + {% endblock %} + +
+ +
+ +
+ + {% block page_related_content %} + {% with dynamic_content=page.dynamic_content_pages.all object=page %} + {% include "core/inc/related_content.html" %} + {% endwith %} + {% endblock %} + +
+ + +{% endblock %} diff --git a/app/templates/agenda/event_detail.html b/app/templates/agenda/event_detail.html index ca456681..49895a0d 100644 --- a/app/templates/agenda/event_detail.html +++ b/app/templates/agenda/event_detail.html @@ -1,4 +1,4 @@ -{% extends "pages/page.html" %} +{% extends "agenda/event_base.html" %} {% load mezzanine_tags comment_tags keyword_tags rating_tags i18n future disqus_tags event_tags organization_tags pages_tags %} {% block meta_title %}{{ event.meta_title }}{% endblock %} -- 2.39.5