Skip to content

Commit

Permalink
Merge pull request #640 from bcgov/SRS-246-NEW
Browse files Browse the repository at this point in the history
fixed lower resolution issue for SIR form
  • Loading branch information
nikhila-aot authored Mar 7, 2024
2 parents 3b329c4 + a6e56ac commit 05cc9f7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions forms-flow-ai/epd-forms/Site Information Request Application.json
Original file line number Diff line number Diff line change
Expand Up @@ -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<div class=\"row card-header bg-default\">\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component) && component.key !== 'commentFor' ) { %}\n {% if(component.label === 'Notes') { %}\n <div class=\"col-sm-4\">{{ t(component.label) }}</div>\n {% } else if(component.key !== 'comments') { %}\n <div class=\"col-sm-2\">{{ t(component.label) }}</div>\n {% } %}\n {% } %}\n {% }) %}\n </div>\n\n{% } else { %}\n\n<div class=\"row card-header bg-default\">\n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n {% if(component.key == 'comments') { %}\n <div class=\"col-sm-6\"> {{ t(component.label)}} </div>\n{% } else { %}\n <div class=\"col-sm-1\"> {{ t(component.label)}} </div>\n{% } %} \n {% } %}\n {% }) %}\n </div>\n\n{% } %}\n",
"tableHeader": "\n <tr>\n {% util.eachComponent(components, function(component) { %}\n {% if (!component.hasOwnProperty('tableView') || component.tableView) { %}\n <td class=\"editgrid-table-column\">{{ component.label }}</td>\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n <td class=\"editgrid-table-column\">Actions</td>\n {% } %}\n </tr>\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<div class=\"row\">\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 <div class=\"col-sm-4\">\r\n {{ getView(component, row[component.key])}}\r\n </div>\r\n{% } else { %}\r\n <div class=\"col-sm-2\">\r\n {{ getView(component, row[component.key])}}\r\n </div>\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 <div class=\"col-sm-2\">\r\n <div class=\"btn-group pull-right\">\r\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\r\n <button class=\"btn btn-danger btn-sm removeRow\"><i class=\"{{ iconClass('trash') }}\"></i></button>\r\n {% } %}\r\n </div>\r\n </div>\r\n \r\n {% } %}\r\n {% } %}\r\n </div>\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 <div class=\"row\">\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 <div class=\"col-sm-6\"> {{ getView(component, row[component.key])}} </div>\r\n{% } else { %}\r\n <div class=\"col-sm-1\"> {{ getView(component, row[component.key])}} </div>\r\n{% } %} \r\n \r\n {% } %}\r\n {% }) %}\r\n {% if (!instance.options.readOnly && !instance.disabled) { %}\r\n <div class=\"col-sm-2\">\r\n <div class=\"btn-group pull-right\">\r\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\r\n <button class=\"btn btn-danger btn-sm removeRow\"><i class=\"{{ iconClass('trash') }}\"></i></button>\r\n {% } %}\r\n </div>\r\n </div>\r\n {% } %}\r\n </div>\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<div class=\"row\">\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 <div class=\"col-sm-4 text-break\">\n {{ getView(component, row[component.key])}}\n </div>\n{% } else { %}\n <div class=\"col-sm-2 text-break\">\n {{ getView(component, row[component.key])}}\n </div>\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 <div class=\"col-sm-2\">\n <div class=\"btn-group pull-right\">\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n <button class=\"btn btn-danger btn-sm removeRow\"><i class=\"{{ iconClass('trash') }}\"></i></button>\n {% } %}\n </div>\n </div>\n \n {% } %}\n {% } %}\n </div>\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 <div class=\"row\">\n {% util.eachComponent(components, function(component) { %}\n {% console.log('for sia') %}\n {% if (displayValue(component)) { %}\n {% if(component.key == 'comments') { %}\n <div class=\"col-sm-4 text-break\"> {{ getView(component, row[component.key])}} </div>\n {% } else if(component.key == 'commentFor' || component.key == 'role' || component.key == 'createdBy') { %}\n <div class=\"col-sm-2 text-break\"> {{ getView(component, row[component.key])}} </div>\n{% } else { %}\n <div class=\"col-sm-1\"> {{ getView(component, row[component.key])}} </div>\n{% } %} \n \n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n <div class=\"col-sm-1\">\n <div class=\"btn-group pull-right\">\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n <button class=\"btn btn-danger btn-sm removeRow\"><i class=\"{{ iconClass('trash') }}\"></i></button>\n {% } %}\n </div>\n </div>\n {% } %}\n </div>\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 <td class=\"editgrid-table-column\">\n {{ getView(component, row[component.key]) }}\n </td>\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n <td class=\"editgrid-table-column\">\n <div class=\"btn-group\">\n <button class=\"btn btn-default btn-light btn-sm editRow\" aria-label=\"{{ t('Edit row') }}\"><i class=\"{{ iconClass('edit') }}\"></i></button>\n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n <button class=\"btn btn-danger btn-sm removeRow\" aria-label=\"{{ t('Remove row') }}\"><i class=\"{{ iconClass('trash') }}\"></i></button>\n {% } %}\n </div>\n </td>\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"
},
Expand Down Expand Up @@ -823,7 +823,7 @@
"wysiwyg": false,
"editor": "",
"fixedSize": true,
"id": "ew00x87"
"id": "en9kcop"
}
],
"width": 4,
Expand Down Expand Up @@ -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": [
Expand Down Expand Up @@ -1002,7 +1002,7 @@
"displayMask": "",
"spellcheck": true,
"truncateMultipleSpaces": false,
"id": "ehrzbwa"
"id": "eab89il"
}
],
"size": "md",
Expand Down Expand Up @@ -1089,7 +1089,7 @@
"displayMask": "",
"spellcheck": true,
"truncateMultipleSpaces": false,
"id": "ekz9qmp"
"id": "e6yzaav"
}
],
"size": "md",
Expand Down Expand Up @@ -1176,7 +1176,7 @@
"displayMask": "",
"spellcheck": true,
"truncateMultipleSpaces": false,
"id": "ek7hk2f"
"id": "ewnph7"
}
],
"size": "md",
Expand Down Expand Up @@ -1256,7 +1256,7 @@
"addons": [],
"tree": false,
"lazyLoad": false,
"id": "edd2bqh"
"id": "eajrmtj"
}
],
"placeholder": "",
Expand All @@ -1275,7 +1275,7 @@
"tree": true,
"lazyLoad": false,
"defaultOpen": false,
"id": "er8w6ss"
"id": "ef4mwz"
},
{
"id": "et4x1z",
Expand Down Expand Up @@ -5900,7 +5900,7 @@
"attributes": {},
"components": [
{
"id": "ecmzjdn0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"id": "ecmzjdn0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"key": "panel",
"tree": false,
"type": "panel",
Expand Down

0 comments on commit 05cc9f7

Please sign in to comment.