From 0068a7d225403191c42e8f0317e3c8fc0d27f5a8 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 20 May 2021 12:47:12 +0300 Subject: [PATCH] [DE] Add "required' option for all forms except picture --- .../main/app/template/FormSettings.template | 10 +++++----- apps/documenteditor/main/app/view/FormSettings.js | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/documenteditor/main/app/template/FormSettings.template b/apps/documenteditor/main/app/template/FormSettings.template index 7e50265c4..04fc0b218 100644 --- a/apps/documenteditor/main/app/template/FormSettings.template +++ b/apps/documenteditor/main/app/template/FormSettings.template @@ -62,11 +62,6 @@
- - -
- -
@@ -99,6 +94,11 @@ + + +
+
+
diff --git a/apps/documenteditor/main/app/view/FormSettings.js b/apps/documenteditor/main/app/view/FormSettings.js index b25566056..ef079b14e 100644 --- a/apps/documenteditor/main/app/view/FormSettings.js +++ b/apps/documenteditor/main/app/view/FormSettings.js @@ -98,6 +98,7 @@ define([ this.ListOnlySettings = el.find('.form-list'); this.ImageOnlySettings = el.find('.form-image'); this.ConnectedSettings = el.find('.form-connected'); + this.RequiredSettings = el.find('.required'); }, createDelayedElements: function() { @@ -916,6 +917,7 @@ define([ var value = (checkboxOnly || radioboxOnly); this.PlaceholderSettings.toggleClass('hidden', value); this.CheckOnlySettings.toggleClass('hidden', !value); + this.RequiredSettings.toggleClass('hidden', imageOnly); }, onSelectItem: function(listView, itemView, record) {