From cceb6bf868c688b44b655422ced4f5e725179494 Mon Sep 17 00:00:00 2001 From: dandds Date: Thu, 3 Jan 2019 13:00:34 -0500 Subject: [PATCH] checkbox fields for inviting KO, etc, on task order form --- atst/forms/task_order.py | 28 ++++++++++++++++++++++++ templates/task_orders/new/oversight.html | 5 ++++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/atst/forms/task_order.py b/atst/forms/task_order.py index 28063a5c..64a3d84a 100644 --- a/atst/forms/task_order.py +++ b/atst/forms/task_order.py @@ -1,4 +1,5 @@ from wtforms.fields import ( + BooleanField, IntegerField, RadioField, SelectField, @@ -96,6 +97,33 @@ class OversightForm(CacheableForm): so_email = StringField("Email") so_dod_id = StringField("DOD ID") + ko_invite = BooleanField( + "Invite KO to Task Order Builder", + description=""" + Your KO will need to approve funding for this Task Order by logging + into the JEDI Cloud Portal, submitting the Task Order documents + within their official system of record, and electronically signing. + You may choose to skip this for now and invite them later. + """, + ) + cor_invite = BooleanField( + "Invite COR to Task Order Builder", + description=""" + Your COR may assist with submitting the Task Order documents within + their official system of record. You may choose to skip this for + now and invite them later. + """, + ) + so_invite = BooleanField( + "Invite Security Officer to Task Order Builder", + description=""" + Your Security Officer will need to answer some security + configuration questions in order to generate a DD-254 document, + then electronically sign. You may choose to skip this for now + and invite them later. + """, + ) + class ReviewForm(CacheableForm): pass diff --git a/templates/task_orders/new/oversight.html b/templates/task_orders/new/oversight.html index 42c316e9..59ea3797 100644 --- a/templates/task_orders/new/oversight.html +++ b/templates/task_orders/new/oversight.html @@ -1,6 +1,7 @@ {% extends 'task_orders/_new.html' %} {% from "components/user_info.html" import UserInfo %} +{% from "components/checkbox_input.html" import CheckboxInput %} {% block heading %} Oversight @@ -12,13 +13,15 @@

Contracting Officer (KO) Information

- {{ UserInfo(form.ko_first_name, form.ko_last_name, form.ko_email, form.ko_dod_id) }} +{{ CheckboxInput(form.ko_invite) }}

Contractive Officer Representative (COR) Information

{{ UserInfo(form.cor_first_name, form.cor_last_name, form.cor_email, form.cor_dod_id) }} +{{ CheckboxInput(form.cor_invite) }}

Security Officer Information

{{ UserInfo(form.so_first_name, form.so_last_name, form.so_email, form.so_dod_id) }} +{{ CheckboxInput(form.so_invite) }} {% endblock %}