From 274fa4470c011cebc63389359434b6f24e250e19 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Tue, 3 Sep 2019 10:53:14 -0400 Subject: [PATCH 01/10] Update text on clin card and reorder fields --- atst/forms/task_order.py | 5 +- styles/elements/_card.scss | 5 + styles/sections/_task_order.scss | 6 +- templates/task_orders/step_3.html | 433 ++++++++++++++++-------------- translations.yaml | 20 +- 5 files changed, 258 insertions(+), 211 deletions(-) diff --git a/atst/forms/task_order.py b/atst/forms/task_order.py index e511d53f..4a234701 100644 --- a/atst/forms/task_order.py +++ b/atst/forms/task_order.py @@ -34,12 +34,13 @@ class CLINForm(FlaskForm): label=translate("task_orders.form.clin_number_label"), validators=[Optional()] ) start_date = DateField( - translate("forms.task_order.start_date_label"), + translate("task_orders.form.pop_start"), + description="For example: 07 04 1776", format="%m/%d/%Y", validators=[Optional()], ) end_date = DateField( - translate("forms.task_order.end_date_label"), + translate("task_orders.form.pop_end"), format="%m/%d/%Y", validators=[Optional()], ) diff --git a/styles/elements/_card.scss b/styles/elements/_card.scss index 410a6882..36505dd2 100644 --- a/styles/elements/_card.scss +++ b/styles/elements/_card.scss @@ -16,6 +16,11 @@ } } + &__title { + padding: $gap * 2; + background-color: $color-gray-lightest; + } + &__header h3 { margin-top: 0; } diff --git a/styles/sections/_task_order.scss b/styles/sections/_task_order.scss index d874abd6..a1d1c395 100644 --- a/styles/sections/_task_order.scss +++ b/styles/sections/_task_order.scss @@ -100,7 +100,7 @@ } .form-row { - margin: 0; + margin-top: 0; } select { @@ -243,3 +243,7 @@ display: flex; justify-content: center; } + +.clin-card { + width: 65rem; +} diff --git a/templates/task_orders/step_3.html b/templates/task_orders/step_3.html index daeee6b1..59adf536 100644 --- a/templates/task_orders/step_3.html +++ b/templates/task_orders/step_3.html @@ -24,154 +24,172 @@ v-bind:initial-clin-type="'JEDI_CLIN_1'" {% endif %} inline-template> -
-
+
+
{{ 'task_orders.form.base_clin_title' | translate }}
-
-
- {% if fields %} - {{ OptionsInput(fields.jedi_clin_type, watch=True, show_validation=False) }} - {% else %} - -
-
- -
- {{ 'task_orders.form.clin_type_label' | translate }} -
-
- -
-
-
- {% endif %} -
-
- {% if fields %} - {{ TextInput(fields.number, watch=True) }} - {% else %} - -
- - - - - - - - - -
-
- {% endif %} -
-
- -
- {% if fields %} -
- {{ DatePicker(fields.start_date, watch=True, optional=False) }} -
-
- {{ DatePicker(fields.end_date, watch=True, optional=False) }} +
+
+
+
+ CLIN Details +
+
+
+
+ {% if fields %} + {{ TextInput(fields.number, watch=True) }} + {% else %} + +
+ - {% else %} -
- -
- -
- {{ 'task_orders.form.pop_start' | translate }} -
-
+ + -
- + -
- - -
- -
- - -
- -
- - -
- -
- {{ Icon("ok", classes="icon--green") }} -
+ +
-
-
+ + {% endif %}
+
+
+
+ {% if fields %} + {{ OptionsInput(fields.jedi_clin_type, watch=True, show_validation=False) }} + {% else %} + +
+
+ +
+ {{ 'task_orders.form.clin_type_label' | translate }} +
+
+ +
+
+
+ {% endif %} +
+
+
+
+
+ CLIN Funding +
+
+ {% if fields %} +
+
+ {{ TextInput(fields.obligated_amount, validation='dollars', watch=True) }} +
+
+ {% else %} +
+
+ +
+ -
- -
- -
- {{ 'task_orders.form.pop_end' | translate }} -
-
+ + -
- + + + + +
+ +
+
+ {% endif %} +
+
+
+ Period of Performance +
+
+ {% if fields %} +
+
+ {{ DatePicker(fields.start_date, watch=True, optional=False) }} +
+
+
+
+ {{ DatePicker(fields.end_date, watch=True, optional=False) }} +
+
+ {% else %} +
+
+ +
+ +
+ {{ 'task_orders.form.pop_start' | translate }} +
+

+ For example: 07 04 1776 +

+
+ +
+
@@ -212,69 +230,90 @@ />
-
- {{ Icon("ok", classes="icon--green") }} +
+ {{ Icon("ok", classes="icon--green") }} +
-
-
-
+ + +
+
+
+
+ +
+ +
+ {{ 'task_orders.form.pop_end' | translate }} +
+

+ For example: 07 04 1776 +

+
+ +
+ + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ {{ Icon("ok", classes="icon--green") }} +
+
+
+
+
{% endif %} -
-
-

- -

-
- - {% if fields %} - {{ TextInput(fields.obligated_amount, validation='dollars', watch=True) }} - {% else %} - -
- - - - - - - -