From 2806730058bb319d097ea226b15132e0225f4ad9 Mon Sep 17 00:00:00 2001 From: Dariusz Szut Date: Fri, 6 Oct 2023 12:55:05 +0200 Subject: [PATCH] IBX-3240: Added notice message in edit section --- .../Resources/public/scss/_content-type-edit.scss | 13 +++++++++++++ .../admin/content_type/edit_section.html.twig | 8 ++++++++ 2 files changed, 21 insertions(+) diff --git a/src/bundle/Resources/public/scss/_content-type-edit.scss b/src/bundle/Resources/public/scss/_content-type-edit.scss index 404db94316..e702bc826e 100644 --- a/src/bundle/Resources/public/scss/_content-type-edit.scss +++ b/src/bundle/Resources/public/scss/_content-type-edit.scss @@ -316,6 +316,19 @@ &__field-settings-field + &__field-settings-field { margin-left: calculateRem(35px); } + + &__notice { + color: $ibexa-color-dark-400; + font-weight: normal; + font-family: $ibexa-font-family; + font-size: $ibexa-text-font-size-small; + line-height: calculateRem(32px); + } + + &__notice-icon { + fill: $ibexa-color-dark-400; + margin-right: calculateRem(8px); + } } .ibexa-field-definitions-placeholder { diff --git a/src/bundle/Resources/views/themes/admin/content_type/edit_section.html.twig b/src/bundle/Resources/views/themes/admin/content_type/edit_section.html.twig index 1b5f396cd0..ab5431fe1a 100644 --- a/src/bundle/Resources/views/themes/admin/content_type/edit_section.html.twig +++ b/src/bundle/Resources/views/themes/admin/content_type/edit_section.html.twig @@ -6,6 +6,14 @@ {% block content %}

{% block title %}{% endblock %}

+ {% if notice_message is defined %} +
+ + + + {{ notice_message }} +
+ {% endif %}
{% block left_column %}{% endblock %}