From 45fe2be7c268c60a963410963275528d9de91ad8 Mon Sep 17 00:00:00 2001 From: Annalise Irby <122470559+annaliseirby090@users.noreply.github.com> Date: Tue, 16 Jul 2024 14:45:16 -0400 Subject: [PATCH] Configure Client Profiles for JM, TH, MT (#2411) * Configure Client Profiles for JM, TH, MT * Remove flags without durations --- .../jm/v1/profileForms/FlagDurations.json | 7 +++++++ .../jm/v1/profileForms/Sections.json | 11 +++++++++++ .../mt/v1/profileForms/FlagDurations.json | 12 ++++++++++++ .../mt/v1/profileForms/Sections.json | 11 +++++++++++ .../th/v1/profileForms/FlagDurations.json | 7 +++++++ .../th/v1/profileForms/Sections.json | 11 +++++++++++ plugin-hrm-form/src/permissions/jm.json | 12 ++++++------ plugin-hrm-form/src/permissions/mt.json | 12 ++++++------ plugin-hrm-form/src/permissions/th.json | 12 ++++++------ plugin-hrm-form/src/translations/en-JM/flexUI.json | 3 +++ 10 files changed, 80 insertions(+), 18 deletions(-) create mode 100644 hrm-form-definitions/form-definitions/jm/v1/profileForms/FlagDurations.json create mode 100644 hrm-form-definitions/form-definitions/jm/v1/profileForms/Sections.json create mode 100644 hrm-form-definitions/form-definitions/mt/v1/profileForms/FlagDurations.json create mode 100644 hrm-form-definitions/form-definitions/mt/v1/profileForms/Sections.json create mode 100644 hrm-form-definitions/form-definitions/th/v1/profileForms/FlagDurations.json create mode 100644 hrm-form-definitions/form-definitions/th/v1/profileForms/Sections.json create mode 100644 plugin-hrm-form/src/translations/en-JM/flexUI.json diff --git a/hrm-form-definitions/form-definitions/jm/v1/profileForms/FlagDurations.json b/hrm-form-definitions/form-definitions/jm/v1/profileForms/FlagDurations.json new file mode 100644 index 0000000000..07d0c504a6 --- /dev/null +++ b/hrm-form-definitions/form-definitions/jm/v1/profileForms/FlagDurations.json @@ -0,0 +1,7 @@ +[ + { + "flag": "blocked", + "label": "Short Term Block (24 Hours)", + "durationInHours": "24" + } +] \ No newline at end of file diff --git a/hrm-form-definitions/form-definitions/jm/v1/profileForms/Sections.json b/hrm-form-definitions/form-definitions/jm/v1/profileForms/Sections.json new file mode 100644 index 0000000000..bc98875ae8 --- /dev/null +++ b/hrm-form-definitions/form-definitions/jm/v1/profileForms/Sections.json @@ -0,0 +1,11 @@ +[ + { + "name": "summary", + "label": "Summary", + "editLabel": "Edit Summary", + "type": "textarea", + "rows": 20, + "width": 500, + "placeholder": "General Assessment of Case and Plan" + } +] diff --git a/hrm-form-definitions/form-definitions/mt/v1/profileForms/FlagDurations.json b/hrm-form-definitions/form-definitions/mt/v1/profileForms/FlagDurations.json new file mode 100644 index 0000000000..2b60152b45 --- /dev/null +++ b/hrm-form-definitions/form-definitions/mt/v1/profileForms/FlagDurations.json @@ -0,0 +1,12 @@ +[ + { + "flag": "blocked", + "label": "Short Term Block (24 Hours)", + "durationInHours": "24" + }, + { + "flag": "blocked", + "label": "Long Term Block (5 Years)", + "durationInHours": "43848" + } +] \ No newline at end of file diff --git a/hrm-form-definitions/form-definitions/mt/v1/profileForms/Sections.json b/hrm-form-definitions/form-definitions/mt/v1/profileForms/Sections.json new file mode 100644 index 0000000000..5b783a7066 --- /dev/null +++ b/hrm-form-definitions/form-definitions/mt/v1/profileForms/Sections.json @@ -0,0 +1,11 @@ +[ + { + "name": "summary", + "label": "Summary", + "editLabel": "Edit Summary", + "type": "textarea", + "rows": 20, + "width": 500, + "placeholder": "Enter a summary of the client" + } +] diff --git a/hrm-form-definitions/form-definitions/th/v1/profileForms/FlagDurations.json b/hrm-form-definitions/form-definitions/th/v1/profileForms/FlagDurations.json new file mode 100644 index 0000000000..777210efbc --- /dev/null +++ b/hrm-form-definitions/form-definitions/th/v1/profileForms/FlagDurations.json @@ -0,0 +1,7 @@ +[ + { + "flag": "blocked", + "label": "Long Term Block (100 Years)", + "durationInHours": "876600" + } +] \ No newline at end of file diff --git a/hrm-form-definitions/form-definitions/th/v1/profileForms/Sections.json b/hrm-form-definitions/form-definitions/th/v1/profileForms/Sections.json new file mode 100644 index 0000000000..5b783a7066 --- /dev/null +++ b/hrm-form-definitions/form-definitions/th/v1/profileForms/Sections.json @@ -0,0 +1,11 @@ +[ + { + "name": "summary", + "label": "Summary", + "editLabel": "Edit Summary", + "type": "textarea", + "rows": 20, + "width": 500, + "placeholder": "Enter a summary of the client" + } +] diff --git a/plugin-hrm-form/src/permissions/jm.json b/plugin-hrm-form/src/permissions/jm.json index 4402240ba4..842ae5851b 100644 --- a/plugin-hrm-form/src/permissions/jm.json +++ b/plugin-hrm-form/src/permissions/jm.json @@ -25,12 +25,12 @@ "addContactToCase": [["isSupervisor"], ["isOwner"]], "removeContactFromCase": [["isSupervisor"], ["isOwner"]], - "viewProfile": [], - "flagProfile": [], - "unflagProfile": [], - "createProfileSection": [], - "viewProfileSection": [], - "editProfileSection": [], + "viewProfile": [["everyone"]], + "flagProfile": [["isSupervisor"]], + "unflagProfile": [["isSupervisor"]], + "createProfileSection": [["everyone"]], + "viewProfileSection": [["everyone"]], + "editProfileSection": [["everyone"]], "viewPostSurvey": [["isSupervisor"]], diff --git a/plugin-hrm-form/src/permissions/mt.json b/plugin-hrm-form/src/permissions/mt.json index 845e2e7667..59c07d7fc4 100644 --- a/plugin-hrm-form/src/permissions/mt.json +++ b/plugin-hrm-form/src/permissions/mt.json @@ -25,12 +25,12 @@ "addContactToCase": [["isSupervisor"], ["isOwner"]], "removeContactFromCase": [["isSupervisor"], ["isOwner"]], - "viewProfile": [], - "flagProfile": [], - "unflagProfile": [], - "createProfileSection": [], - "viewProfileSection": [], - "editProfileSection": [], + "viewProfile": [["everyone"]], + "flagProfile": [["isSupervisor"]], + "unflagProfile": [["isSupervisor"]], + "createProfileSection": [["everyone"]], + "viewProfileSection": [["everyone"]], + "editProfileSection": [["everyone"]], "viewPostSurvey": [["isSupervisor"]], diff --git a/plugin-hrm-form/src/permissions/th.json b/plugin-hrm-form/src/permissions/th.json index c03ce1fea0..0d3791ed31 100644 --- a/plugin-hrm-form/src/permissions/th.json +++ b/plugin-hrm-form/src/permissions/th.json @@ -25,12 +25,12 @@ "addContactToCase": [["isSupervisor"], ["isOwner"]], "removeContactFromCase": [["isSupervisor"], ["isOwner"]], - "viewProfile": [], - "flagProfile": [], - "unflagProfile": [], - "createProfileSection": [], - "viewProfileSection": [], - "editProfileSection": [], + "viewProfile": [["everyone"]], + "flagProfile": [["everyone"]], + "unflagProfile": [["everyone"]], + "createProfileSection": [["everyone"]], + "viewProfileSection": [["everyone"]], + "editProfileSection": [["everyone"]], "viewPostSurvey": [["isSupervisor"]], diff --git a/plugin-hrm-form/src/translations/en-JM/flexUI.json b/plugin-hrm-form/src/translations/en-JM/flexUI.json new file mode 100644 index 0000000000..45f6940525 --- /dev/null +++ b/plugin-hrm-form/src/translations/en-JM/flexUI.json @@ -0,0 +1,3 @@ +{ + "abusive": "Abusive - Indecent Exposure" +} \ No newline at end of file