From 3ac25b250a0deadb1142f22d5cf843b483310a2b Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 9 Nov 2021 10:51:27 -0500 Subject: [PATCH] LP#1855780: add grid config settings Signed-off-by: Galen Charlton Signed-off-by: Jane Sandberg --- .../local/triggers/trigger-edit.component.html | 3 ++- .../admin/local/triggers/triggers.component.html | 2 +- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 24 ++++++++++++++++++ .../upgrade/XXXX.data.trigger_ui_grid_settings.sql | 29 ++++++++++++++++++++++ 4 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.data.trigger_ui_grid_settings.sql diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/trigger-edit.component.html b/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/trigger-edit.component.html index 6aaa890871..92fddbb5ea 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/trigger-edit.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/trigger-edit.component.html @@ -30,7 +30,7 @@

Trigger Event Environment

@@ -48,6 +48,7 @@

Trigger Event Parameters

diff --git a/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/triggers.component.html b/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/triggers.component.html index cb6a70198a..830f8aa367 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/triggers.component.html +++ b/Open-ILS/src/eg2/src/app/staff/admin/local/triggers/triggers.component.html @@ -25,7 +25,7 @@

Trigger Event Definitions

diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 6033ace5cd..58f4a18fcc 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -22025,3 +22025,27 @@ INSERT INTO config.org_unit_setting_type ( ), 'bool' ); + +INSERT INTO config.workstation_setting_type (name, grp, datatype, label) +VALUES ( + 'eg.grid.admin.local.triggers.atevdef', 'gui', 'object', + oils_i18n_gettext( + 'eg.grid.admin.local.triggers.atevdef', + 'Grid Config: eg.grid.admin.local.triggers.atevdef', + 'cwst', 'label' + ) +), ( + 'eg.grid.admin.local.triggers.atenv', 'gui', 'object', + oils_i18n_gettext( + 'eg.grid.admin.local.triggers.atenv', + 'Grid Config: eg.grid.admin.local.triggers.atenv', + 'cwst', 'label' + ) +), ( + 'eg.grid.admin.local.triggers.atevparam', 'gui', 'object', + oils_i18n_gettext( + 'eg.grid.admin.local.triggers.atevparam', + 'Grid Config: eg.grid.admin.local.triggers.atevparam', + 'cwst', 'label' + ) +); diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.trigger_ui_grid_settings.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.trigger_ui_grid_settings.sql new file mode 100644 index 0000000000..757fd14511 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.trigger_ui_grid_settings.sql @@ -0,0 +1,29 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); + +INSERT INTO config.workstation_setting_type (name, grp, datatype, label) +VALUES ( + 'eg.grid.admin.local.triggers.atevdef', 'gui', 'object', + oils_i18n_gettext( + 'eg.grid.admin.local.triggers.atevdef', + 'Grid Config: eg.grid.admin.local.triggers.atevdef', + 'cwst', 'label' + ) +), ( + 'eg.grid.admin.local.triggers.atenv', 'gui', 'object', + oils_i18n_gettext( + 'eg.grid.admin.local.triggers.atenv', + 'Grid Config: eg.grid.admin.local.triggers.atenv', + 'cwst', 'label' + ) +), ( + 'eg.grid.admin.local.triggers.atevparam', 'gui', 'object', + oils_i18n_gettext( + 'eg.grid.admin.local.triggers.atevparam', + 'Grid Config: eg.grid.admin.local.triggers.atevparam', + 'cwst', 'label' + ) +); + +COMMIT; -- 2.11.0