From b2c506586148f3e682210b75cc7654b135889952 Mon Sep 17 00:00:00 2001 From: Jeremy Rudman Date: Mon, 8 Feb 2021 13:57:23 -0500 Subject: [PATCH 1/3] fix(questionnaire): fixed whitespace and readded agreements to edit page --- app/views/manage/questionnaires/_form.html.haml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/views/manage/questionnaires/_form.html.haml b/app/views/manage/questionnaires/_form.html.haml index 498e9bbee..1fc5d7272 100644 --- a/app/views/manage/questionnaires/_form.html.haml +++ b/app/views/manage/questionnaires/_form.html.haml @@ -36,6 +36,12 @@ = f.input :boarded_bus, as: :boolean, label: "Boarded bus", input_html: { checked: @questionnaire.boarded_bus_at.present? } = f.input :is_bus_captain, label: "Is Bus Captain" + .card.mb-4 + .card-header Agreements + .card-body + = f.association :agreements, as: :check_boxes, label_method: :formatted_agreement, value_method: :id, disabled: true, label: false, hint: "Only account owners can accept questionnaires" + + .col-xl-6 .card.mb-4 .card-header Special notices From b35ee364ec25d1dc6160cbed74823022da3a5a0d Mon Sep 17 00:00:00 2001 From: JeremyRudman <38338616+JeremyRudman@users.noreply.github.com> Date: Mon, 8 Feb 2021 21:35:30 -0500 Subject: [PATCH 2/3] Update app/views/manage/questionnaires/_form.html.haml Co-authored-by: Chris Baudouin, Jr. --- app/views/manage/questionnaires/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/manage/questionnaires/_form.html.haml b/app/views/manage/questionnaires/_form.html.haml index 1fc5d7272..eb820d202 100644 --- a/app/views/manage/questionnaires/_form.html.haml +++ b/app/views/manage/questionnaires/_form.html.haml @@ -39,7 +39,7 @@ .card.mb-4 .card-header Agreements .card-body - = f.association :agreements, as: :check_boxes, label_method: :formatted_agreement, value_method: :id, disabled: true, label: false, hint: "Only account owners can accept questionnaires" + = f.association :agreements, as: :check_boxes, label_method: :formatted_agreement, value_method: :id, disabled: true, label: false, hint: "Only account owners can accept legal agreements" .col-xl-6 From b92c6790e044afc07ab15e3f46f2f3c6ebac5cf9 Mon Sep 17 00:00:00 2001 From: JeremyRudman <38338616+JeremyRudman@users.noreply.github.com> Date: Sat, 13 Feb 2021 13:43:58 -0500 Subject: [PATCH 3/3] Update _form.html.haml --- app/views/manage/questionnaires/_form.html.haml | 1 - 1 file changed, 1 deletion(-) diff --git a/app/views/manage/questionnaires/_form.html.haml b/app/views/manage/questionnaires/_form.html.haml index eb820d202..c1f923b4b 100644 --- a/app/views/manage/questionnaires/_form.html.haml +++ b/app/views/manage/questionnaires/_form.html.haml @@ -41,7 +41,6 @@ .card-body = f.association :agreements, as: :check_boxes, label_method: :formatted_agreement, value_method: :id, disabled: true, label: false, hint: "Only account owners can accept legal agreements" - .col-xl-6 .card.mb-4 .card-header Special notices