From 86c614d56d577e0b80cb611dfdcfd769b0f579ea Mon Sep 17 00:00:00 2001 From: Molkobain Date: Fri, 19 Mar 2021 23:32:33 +0100 Subject: [PATCH] Add HTML meta data to TWIG templates --- .../base/components/panel/layout.html.twig | 21 ++++++++++--------- .../object/object-details/layout.html.twig | 8 +++---- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/templates/base/components/panel/layout.html.twig b/templates/base/components/panel/layout.html.twig index 90a0330de..078f94e44 100644 --- a/templates/base/components/panel/layout.html.twig +++ b/templates/base/components/panel/layout.html.twig @@ -3,10 +3,11 @@ {% apply spaceless %}
-
+ {% block iboPanelMetaData %}{% endblock %} + data-role="ibo-panel"> +
{% block iboPanelHeader %} -
+
{% if oUIBlock.isCollapsible() %}
@@ -15,27 +16,27 @@ {% endif %} {% block iboPanelHeaderLeft %} {% if oUIBlock.HasIcon() %} -
+
{% block iboPanelIcon %} -
+
{% endblock %}
{% endif %} {% if oUIBlock.HasTitle() or oUIBlock.HasSubTitle() %} -
+
{% block iboPanelTitles %} {% if oUIBlock.HasTitle() %} -
{% block iboPanelTitle %}{{ render_block(oUIBlock.GetTitleBlock()) }}{% endblock %}
+
{% block iboPanelTitle %}{{ render_block(oUIBlock.GetTitleBlock()) }}{% endblock %}
{% endif %} {% if oUIBlock.HasSubTitle() %} -
{% block iboPanelSubTitle %}{{ render_block(oUIBlock.GetSubTitleBlock()) }}{% endblock %}
+
{% block iboPanelSubTitle %}{{ render_block(oUIBlock.GetSubTitleBlock()) }}{% endblock %}
{% endif %} {% endblock %}
{% endif %} {% endblock %}
-
+
{% block iboPanelHeaderRight %}
{% block iboPanelToolbar %} @@ -48,7 +49,7 @@
{% endblock %}
-
+
{% block iboPanelBody %} {% for oMainBlock in oUIBlock.GetMainBlocks() %} {{ render_block(oMainBlock, {aPage: aPage}) }} diff --git a/templates/base/layouts/object/object-details/layout.html.twig b/templates/base/layouts/object/object-details/layout.html.twig index 55ffd9462..fdc677a1b 100644 --- a/templates/base/layouts/object/object-details/layout.html.twig +++ b/templates/base/layouts/object/object-details/layout.html.twig @@ -11,11 +11,11 @@ {% block iboPanelSubTitle %} {% if oUIBlock.GetStatusLabel() is not empty %} - - - {{ oUIBlock.GetStatusLabel() }} + + + {{ oUIBlock.GetStatusLabel() }} {% endif %} - {{ oUIBlock.GetClassLabel() }} + {{ oUIBlock.GetClassLabel() }} {{ parent() }} {% endblock %} \ No newline at end of file