From 7ff5ee409a421bb9246adfaa1feae1eeaf86e035 Mon Sep 17 00:00:00 2001 From: Ioannis Rousochatzakis Date: Mon, 23 Jan 2023 02:56:18 +0100 Subject: [PATCH 01/30] Added the ability to open an existing notice for editing (not fully functioning yet) --- .../resources/static/css/custom/editor.css | 19 ++ src/main/resources/static/index.html | 9 +- .../resources/static/js/custom/context.js | 226 ++++++++++++------ .../static/js/custom/dynamic-property.js | 2 +- src/main/resources/static/js/custom/editor.js | 33 +-- src/main/resources/static/js/custom/global.js | 53 +--- src/main/resources/static/js/custom/i18n.js | 42 ++++ .../resources/static/js/custom/notice-form.js | 33 ++- .../static/js/custom/notice-reader.js | 98 ++++++++ .../js/custom/notice-type-definition.js | 36 ++- 10 files changed, 400 insertions(+), 151 deletions(-) create mode 100644 src/main/resources/static/js/custom/i18n.js create mode 100644 src/main/resources/static/js/custom/notice-reader.js diff --git a/src/main/resources/static/css/custom/editor.css b/src/main/resources/static/css/custom/editor.css index cb403fa..835f1f9 100644 --- a/src/main/resources/static/css/custom/editor.css +++ b/src/main/resources/static/css/custom/editor.css @@ -120,6 +120,24 @@ body { column-gap: 1em; } + +#notice-selector-button { + cursor: pointer; + border: 1px solid var(--eui-primary-100); + color: var(--eui-primary-100); + background-color: var(--eui-white); + padding: .2em 1em .3em 1em !important; + border-radius: .25em; + vertical-align: middle; +} + +#notice-selector { + width: 0px; + height: 0px; + margin: 0px; + padding: 0px; +} + /* Toolbar comboboxes are slightly padded to match the style of other controls in the page */ #toolbar select { padding: 3px 3px; @@ -131,6 +149,7 @@ body { #toolbar label { padding: 0em; margin-right: .25em; + vertical-align: middle; } #loading-indicator { diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index 12bd86a..45dbb36 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -14,6 +14,7 @@ + @@ -24,9 +25,13 @@

eForms Notice Editor