From 146a95baec9b8904c5313e1f85cd1700fecf5687 Mon Sep 17 00:00:00 2001 From: acognet Date: Tue, 27 Jul 2021 14:38:44 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03592=20-=20Migrate=20module=20to=20new?= =?UTF-8?q?=20UIBlock=20system=20:=20Customized=20request=20forms=20-=20re?= =?UTF-8?q?move=20space=20in=20edit=20screen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/cmdbabstract.class.inc.php | 1 + css/backoffice/components/_field.scss | 4 ++++ js/form_field.js | 5 ++--- templates/base/components/field/layout.html.twig | 4 +--- templates/base/components/input/layout.html.twig | 3 +-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index 8b8b78b16..df92a9901 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -2402,6 +2402,7 @@ HTML; case 'CustomFields': $sHTMLValue .= '
'; $sHTMLValue .= '
'; + $sHTMLValue .= '
'; $sHTMLValue .= '
'.$sReloadSpan.'
'; // No validation span for this one: it does handle its own validation! $sHTMLValue .= "\n"; diff --git a/css/backoffice/components/_field.scss b/css/backoffice/components/_field.scss index 8f043c169..72aab705c 100644 --- a/css/backoffice/components/_field.scss +++ b/css/backoffice/components/_field.scss @@ -205,3 +205,7 @@ $ibo-field--value-decoration--spacing-x: 0.5rem !default; .multi_values { background-color: #c33; } + + .form_field ~ .form_field { + margin-top: $ibo-field--sibling-spacing; + } \ No newline at end of file diff --git a/js/form_field.js b/js/form_field.js index aca562252..712b775db 100644 --- a/js/form_field.js +++ b/js/form_field.js @@ -21,9 +21,8 @@ $(function() { var me = this; - this.element - .addClass('form_field'); - + this.element.addClass('form_field'); + this.element .bind('set_validators', function(oEvent, oData){ oEvent.stopPropagation(); diff --git a/templates/base/components/field/layout.html.twig b/templates/base/components/field/layout.html.twig index 5d32a6f2d..38480ca39 100644 --- a/templates/base/components/field/layout.html.twig +++ b/templates/base/components/field/layout.html.twig @@ -25,9 +25,7 @@ >
{{ oUIBlock.GetLabel()|raw }}
- {% for oSubBlock in oUIBlock.GetSubBlocks() %} - {{ render_block(oSubBlock, {aPage: aPage}) }} - {% endfor %} + {% for oSubBlock in oUIBlock.GetSubBlocks() %}{{ render_block(oSubBlock, {aPage: aPage}) }} {% endfor %}
{% if oUIBlock.GetComments() %}
{{ oUIBlock.GetComments()|raw }}
diff --git a/templates/base/components/input/layout.html.twig b/templates/base/components/input/layout.html.twig index dc0eeb774..1361a6abb 100644 --- a/templates/base/components/input/layout.html.twig +++ b/templates/base/components/input/layout.html.twig @@ -12,5 +12,4 @@ {% endfor %} {% endif %} {% if oUIBlock.GetPlaceHolder() %} placeholder="{{ oUIBlock.GetPlaceHolder() }}" {% endif %} - > -{% endblock %} \ No newline at end of file + >{% endblock %} \ No newline at end of file