diff --git a/forms-flow-ai/epd-forms/Site Information Request Application.json b/forms-flow-ai/epd-forms/Site Information Request Application.json index 3374a3a2..388403db 100644 --- a/forms-flow-ai/epd-forms/Site Information Request Application.json +++ b/forms-flow-ai/epd-forms/Site Information Request Application.json @@ -678,7 +678,7 @@ "templates": { "header": "{% console.log(\"row-key header\",'commentFor',row['commentFor']) %}\n{% const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))%}\n{% const groups = UserDetails[\"groups\"]; %}\n\n{% if(groups.includes(\"/formsflow/formsflow-reviewer/formsflow-client-reviewer\") || groups.includes(\"/formsflow/formsflow-client\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor-society\")){ %}\n\n
\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component) && component.key !== 'commentFor' ) { %}\n {% if(component.label === 'Notes') { %}\n
{{ t(component.label) }}
\n {% } else if(component.key !== 'comments') { %}\n
{{ t(component.label) }}
\n {% } %}\n {% } %}\n {% }) %}\n
\n\n{% } else { %}\n\n
\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n {% if(component.key == 'comments') { %}\n
{{ t(component.label)}}
\n{% } else { %}\n
{{ t(component.label)}}
\n{% } %} \n {% } %}\n {% }) %}\n
\n\n{% } %}\n", "tableHeader": "\n \n {% util.eachComponent(components, function(component) { %}\n {% if (!component.hasOwnProperty('tableView') || component.tableView) { %}\n {{ component.label }}\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n Actions\n {% } %}\n \n ", - "row": "{% console.log(\"row-key main\",'commentFor',row['commentFor']) %}\r\n{% const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))%}\r\n{% const groups = UserDetails[\"groups\"]; %}\r\n{% console.log('rendering edit grid body')%}\r\n{% if((groups.includes(\"/formsflow/formsflow-client\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor-society\")) && row['commentFor']==='external'){ %}\r\n\r\n\r\n\r\n
\r\n\r\n {% util.eachComponent(components, function(component) { %}\r\n {% if (displayValue(component) && component.key !== 'commentFor' ) { %}\r\n {% console.log(\"row-key\",component.key,row[component.key]) %}\r\n {% const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))%}\r\n{% const groups = UserDetails[\"groups\"]; %}\r\n{% if((groups.includes(\"/formsflow/formsflow-client\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor-society\")) && row['commentFor']==='external'){ %}\r\n{% if(component.key == 'comments') { %}\r\n
\r\n {{ getView(component, row[component.key])}}\r\n
\r\n{% } else { %}\r\n
\r\n {{ getView(component, row[component.key])}}\r\n
\r\n{%}%}\r\n \r\n\r\n {% } %}\r\n {% } %}\r\n {% }) %}\r\n {% if (!instance.options.readOnly && !instance.disabled) { %}\r\n {% const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))%}\r\n{% const groups = UserDetails[\"groups\"]; %}\r\n{% if((groups.includes(\"/formsflow/formsflow-client\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor-society\")) && row['commentFor']==='external'){ %}\r\n
\r\n
\r\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\r\n \r\n {% } %}\r\n
\r\n
\r\n \r\n {% } %}\r\n {% } %}\r\n
\r\n {% } else if (groups.includes(\"/formsflow/formsflow-reviewer/site-risk-classification-officer\") || groups.includes(\"/formsflow/formsflow-reviewer/cssa-team\") || groups.includes(\"/formsflow/formsflow-reviewer/caseworker\") || groups.includes(\"/formsflow/formsflow-reviewer/sdm\")) { %}\r\n
\r\n {% util.eachComponent(components, function(component) { %}\r\n {% console.log('for sia') %}\r\n {% if (displayValue(component)) { %}\r\n {% if(component.key == 'comments') { %}\r\n
{{ getView(component, row[component.key])}}
\r\n{% } else { %}\r\n
{{ getView(component, row[component.key])}}
\r\n{% } %} \r\n \r\n {% } %}\r\n {% }) %}\r\n {% if (!instance.options.readOnly && !instance.disabled) { %}\r\n
\r\n
\r\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\r\n \r\n {% } %}\r\n
\r\n
\r\n {% } %}\r\n
\r\n {% } %}\r\n \r\n \r\n \r\n{% const emptyElements = []; %}\r\n{% const elements = document.getElementsByClassName(\"list-group-item\"); %}\r\n{% for (let i = 0; i < elements.length; i++) { %}\r\n{% const element = elements[i]; %}\r\n{% if(element.querySelectorAll('div.row').length===0){(element).remove() }} %}", + "row": "{% console.log(\"row-key main\",'commentFor',row['commentFor']) %}\n{% const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))%}\n{% const groups = UserDetails[\"groups\"]; %}\n{% console.log('rendering edit grid body')%}\n{% if((groups.includes(\"/formsflow/formsflow-client\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor-society\")) && row['commentFor']==='external'){ %}\n\n\n\n
\n\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component) && component.key !== 'commentFor' ) { %}\n {% console.log(\"row-key\",component.key,row[component.key]) %}\n {% const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))%}\n{% const groups = UserDetails[\"groups\"]; %}\n{% if((groups.includes(\"/formsflow/formsflow-client\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor-society\")) && row['commentFor']==='external'){ %}\n{% if(component.key == 'comments') { %}\n
\n {{ getView(component, row[component.key])}}\n
\n{% } else { %}\n
\n {{ getView(component, row[component.key])}}\n
\n{%}%}\n \n\n {% } %}\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n {% const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"))%}\n{% const groups = UserDetails[\"groups\"]; %}\n{% if((groups.includes(\"/formsflow/formsflow-client\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor\") || groups.includes(\"/formsflow/formsflow-reviewer/site-information-advisor-society\")) && row['commentFor']==='external'){ %}\n
\n
\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n \n {% } %}\n
\n
\n \n {% } %}\n {% } %}\n
\n {% } else if (groups.includes(\"/formsflow/formsflow-reviewer/site-risk-classification-officer\") || groups.includes(\"/formsflow/formsflow-reviewer/cssa-team\") || groups.includes(\"/formsflow/formsflow-reviewer/caseworker\") || groups.includes(\"/formsflow/formsflow-reviewer/sdm\")) { %}\n
\n {% util.eachComponent(components, function(component) { %}\n {% console.log('for sia') %}\n {% if (displayValue(component)) { %}\n {% if(component.key == 'comments') { %}\n
{{ getView(component, row[component.key])}}
\n {% } else if(component.key == 'commentFor' || component.key == 'role' || component.key == 'createdBy') { %}\n
{{ getView(component, row[component.key])}}
\n{% } else { %}\n
{{ getView(component, row[component.key])}}
\n{% } %} \n \n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n
\n
\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n \n {% } %}\n
\n
\n {% } %}\n
\n {% } %}\n \n \n \n{% const emptyElements = []; %}\n{% const elements = document.getElementsByClassName(\"list-group-item\"); %}\n{% for (let i = 0; i < elements.length; i++) { %}\n{% const element = elements[i]; %}\n{% if(element.querySelectorAll('div.row').length===0){(element).remove() }} %}", "tableRow": "\n {% util.eachComponent(components, function(component) { %}\n {% if (!component.hasOwnProperty('tableView') || component.tableView) { %}\n \n {{ getView(component, row[component.key]) }}\n \n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n \n
\n \n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n \n {% } %}\n
\n \n {% } %}\n ", "footer": "{% const emptyElements = []; %}\r\n{% const elements = document.getElementsByClassName(\"list-group-item\"); %}\r\n{% for (let i = 0; i < elements.length; i++) { %}\r\n{% const element = elements[i]; %}\r\n{% console.log('in validation remove'); %}\r\n{%if(element.querySelectorAll('div.row').length===0){(element).remove() }} %}\r\n" }, @@ -823,7 +823,7 @@ "wysiwyg": false, "editor": "", "fixedSize": true, - "id": "ew00x87" + "id": "en9kcop" } ], "width": 4, @@ -915,15 +915,15 @@ "addons": [], "inputType": "radio", "fieldSet": false, - "id": "eb9gmf" + "id": "ewnmm4l" } ], - "width": 1, "offset": 0, "push": 0, "pull": 0, "size": "md", - "currentWidth": 1 + "currentWidth": 2, + "width": 2 }, { "components": [ @@ -1002,7 +1002,7 @@ "displayMask": "", "spellcheck": true, "truncateMultipleSpaces": false, - "id": "ehrzbwa" + "id": "eab89il" } ], "size": "md", @@ -1089,7 +1089,7 @@ "displayMask": "", "spellcheck": true, "truncateMultipleSpaces": false, - "id": "ekz9qmp" + "id": "e6yzaav" } ], "size": "md", @@ -1176,7 +1176,7 @@ "displayMask": "", "spellcheck": true, "truncateMultipleSpaces": false, - "id": "ek7hk2f" + "id": "ewnph7" } ], "size": "md", @@ -1256,7 +1256,7 @@ "addons": [], "tree": false, "lazyLoad": false, - "id": "edd2bqh" + "id": "eajrmtj" } ], "placeholder": "", @@ -1275,7 +1275,7 @@ "tree": true, "lazyLoad": false, "defaultOpen": false, - "id": "er8w6ss" + "id": "ef4mwz" }, { "id": "et4x1z", @@ -5900,7 +5900,7 @@ "attributes": {}, "components": [ { - "id": "ecmzjdn0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "id": "ecmzjdn0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "key": "panel", "tree": false, "type": "panel",