From 07518c5ee3bb2537f47d74b0f7d7402d92aac4d7 Mon Sep 17 00:00:00 2001 From: Amy Chen Date: Wed, 12 Jun 2024 15:03:29 -0700 Subject: [PATCH] Revert "TN-3298 add delayed response option due to holiday checkbox to post tx" This reverts commit 95cdb5380b968cf72519150866ae014a718fe3db. --- portal/config/eproms/Questionnaire.json | 13 -------- portal/static/js/src/profile.js | 6 +--- portal/static/less/eproms.less | 31 -------------------- portal/templates/profile/profile_macros.html | 25 ++++++---------- 4 files changed, 10 insertions(+), 65 deletions(-) diff --git a/portal/config/eproms/Questionnaire.json b/portal/config/eproms/Questionnaire.json index 6548748e1..2ace521d2 100644 --- a/portal/config/eproms/Questionnaire.json +++ b/portal/config/eproms/Questionnaire.json @@ -8332,19 +8332,6 @@ "linkId": "ironman_ss_post_tx.2", "text": "Date action taken" }, - { - "type": "open-choice", - "linkId": "ironman_ss_post_tx.2.1", - "option": [ - { - "valueCoding": { - "code": "ironman_ss_post_tx.2.1", - "display": "Delayed due to local public holiday" - } - } - ], - "required": false - }, { "type": "choice", "linkId": "ironman_ss_post_tx.3", diff --git a/portal/static/js/src/profile.js b/portal/static/js/src/profile.js index 7f0dcb39a..6c39a12af 100644 --- a/portal/static/js/src/profile.js +++ b/portal/static/js/src/profile.js @@ -1607,10 +1607,6 @@ export default (function() { if (this.getPostTxActionStatus() === EMPRO_TRIGGER_WITHDRAWN_STATE) return true; // subject withdrawn return this.getPostTxActionStatus() === "completed" || this.subStudyTriggers.data.resolution; }, - getDataRequiredAttribute:function(element) { - if (!element) return null; - return element.hasOwnProperty("required") ? String(element.required) : "true"; - }, onResponseChangeFieldEvent: function(event) { let targetElement = $(event.target); let containerIdentifier = "#postTxQuestionnaireContainer"; @@ -1639,7 +1635,7 @@ export default (function() { } let answeredNum = 0; $(`${containerIdentifier} .question`).each(function() { - if ($(this).find("[answered]").length || $(this).find("[dataRequired='false']").length) { + if ($(this).find("[answered]").length) { answeredNum++; } }); diff --git a/portal/static/less/eproms.less b/portal/static/less/eproms.less index f6791eeb3..250bb89df 100644 --- a/portal/static/less/eproms.less +++ b/portal/static/less/eproms.less @@ -3993,12 +3993,6 @@ section.header { } .question { margin-bottom: 24px; - display: flex; - align-items: flex-start; - &:has(.title:empty) { - margin-top: -24px; - margin-bottom: 0; - } .title { display: inline-block; margin-right: 8px; @@ -4009,11 +4003,6 @@ section.header { color: @baseColor; } } - .flex { - input { - margin: 0; - } - } } .choices { margin-top: 8px; @@ -4027,11 +4016,6 @@ section.header { } } } - .question:first-of-type { - .choices { - margin-top: 0; - } - } select, .data-datepicker { display: inline-block; @@ -5505,21 +5489,6 @@ body.vis-on-callback { /* allow page-specific presentation of content after load max-width: 100%; } } -.flex-align-center { - align-items: center; -} -.flex-row-gap-1x { - row-gap: 8px -} -.flex-column-gap-1x { - column-gap: 8px -} -.flex-column { - display: flex; - flex-direction: column; - align-items: flex-start; - row-gap: 8px; -} .flex-in-between { display: flex; justify-content: space-between; diff --git a/portal/templates/profile/profile_macros.html b/portal/templates/profile/profile_macros.html index 3f78351e8..73c51c47b 100644 --- a/portal/templates/profile/profile_macros.html +++ b/portal/templates/profile/profile_macros.html @@ -559,7 +559,7 @@

{{ _("Communica
- {{saveLoaderDiv("clinics")}} + {{saveLoaderDiv("clinics")}} {% endcall %}
@@ -937,24 +937,20 @@

{{_("Actions Required (for C -
- -
+ + v-if="item.type == 'boolean'">
@@ -966,7 +962,6 @@
{{_("Actions Required (for C :dataType="item.type" :linkId="item.linkId" :value="option.valueCoding.display" - :dataRequired="getDataRequiredAttribute(item)" @change="onResponseChangeFieldEvent" > @@ -976,7 +971,6 @@
{{_("Actions Required (for C dataType="string" :code="option.valueCoding.code" :linkId="item.linkId" - :dataRequired="getDataRequiredAttribute(item)" @change="onResponseChangeFieldEvent" v-if="/other/gi.test(option.valueCoding.display)" > @@ -986,7 +980,6 @@
{{_("Actions Required (for C