Skip to content
Snippets Groups Projects
Commit 2aa04319 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-6944: add label to block title if flag is set

parent 8115e2ce
No related branches found
No related tags found
1 merge request!131ISTWCMS-6944: add label to block title if flag is set
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
{% if in_layout_builder %} {% if in_layout_builder %}
{{ attach_library('uw_theme_admin/uw_layout_builder') }} {{ attach_library('uw_theme_admin/uw_layout_builder') }}
{% endif %} {% endif %}
{{ dd() }}
{% if content %} {% if content %}
<div{{ attributes.addClass(classes) }}> <div{{ attributes.addClass(classes) }}>
...@@ -44,11 +45,17 @@ ...@@ -44,11 +45,17 @@
{% endif %} {% endif %}
{{ title_prefix }} {{ title_prefix }}
{% if label %} {% if label %}
{% if add_label_flag %}
<label for="{{ label_for }}">
{% endif %}
{% if heading_level %} {% if heading_level %}
<{{ heading_level }}{{ title_attributes }} class="block-title">{{ label }}</{{ heading_level }}> <{{ heading_level }}{{ title_attributes }} class="block-title">{{ label }}</{{ heading_level }}>
{% else %} {% else %}
<h2{{ title_attributes }}>{{ label }}</h2> <h2{{ title_attributes }}>{{ label }}</h2>
{% endif %} {% endif %}
{% if add_label_flag %}
</label>
{% endif %}
{% endif %} {% endif %}
{{ title_suffix }} {{ title_suffix }}
{% block content %} {% block content %}
......
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