diff --git a/atst/forms/task_order.py b/atst/forms/task_order.py index e511d53f..bd2a8f77 100644 --- a/atst/forms/task_order.py +++ b/atst/forms/task_order.py @@ -34,12 +34,14 @@ 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=translate("task_orders.form.pop_example"), format="%m/%d/%Y", validators=[Optional()], ) end_date = DateField( - translate("forms.task_order.end_date_label"), + translate("task_orders.form.pop_end"), + description=translate("task_orders.form.pop_example"), format="%m/%d/%Y", validators=[Optional()], ) diff --git a/js/components/clin_fields.js b/js/components/clin_fields.js index 6b948922..4516b31f 100644 --- a/js/components/clin_fields.js +++ b/js/components/clin_fields.js @@ -8,6 +8,7 @@ const OBLIGATED_AMOUNT = 'obligated_amount' const START_DATE = 'start_date' const END_DATE = 'end_date' const POP = 'period_of_performance' +const NUMBER = 'number' export default { name: 'clin-fields', @@ -33,6 +34,10 @@ export default { type: String, default: null, }, + initialClinNumber: { + type: String, + default: null, + }, }, data: function() { @@ -44,6 +49,9 @@ export default { : undefined const popValidation = !this.initialStartDate ? false : start < end const showPopValidation = !this.initialStartDate ? false : !popValidation + const clinNumber = !!this.initialClinNumber + ? this.initialClinNumber + : undefined return { clinIndex: this.initialClinIndex, @@ -53,6 +61,7 @@ export default { endDate: end, popValid: popValidation, showPopError: showPopValidation, + clinNumber: clinNumber, } }, @@ -113,8 +122,20 @@ export default { } else if (event.name.includes(END_DATE)) { if (!!event.value) this.endDate = new Date(event.value) this.validatePop() + } else if (event.name.includes(NUMBER)) { + this.clinNumber = event.value } } }, }, + + computed: { + clinTitle: function() { + if (!!this.clinNumber) { + return `CLIN ${this.clinNumber}` + } else { + return `CLIN` + } + }, + }, } diff --git a/js/test_templates/upload_input_error_template.html b/js/test_templates/upload_input_error_template.html index ff3676ab..1420fe17 100644 --- a/js/test_templates/upload_input_error_template.html +++ b/js/test_templates/upload_input_error_template.html @@ -11,7 +11,7 @@
{{ description | safe }} diff --git a/templates/components/upload_input.html b/templates/components/upload_input.html index 5d2bf737..8f5cec3c 100644 --- a/templates/components/upload_input.html +++ b/templates/components/upload_input.html @@ -16,7 +16,7 @@ >
- {{ description }} + Task Order Number: {{ to_number }}
-+ {{ description }} +
Not sure how to describe your scope? Read some examples to get some inspiration.
' scope_label: Cloud project scope start_date_error: PoP start date must be before end date. - start_date_label: Start of period of performance (PoP) team_experience: built_1: Built, migrated, or consulted on 1-2 applications built_3: Built, migrated, or consulted on 3-5 applications @@ -362,25 +360,32 @@ task_orders: pop_start: PoP Start pop_end: PoP End form: - add_clin: Enter another CLIN + add_clin: Add another CLIN add_to_header: Add your task order add_to_description: Now, refer to your document to find the 13-digit task order number. It should be located at lorem ipsum dolar. From now on we'll refer to this portion of funding by the recorded task order number. - clin_title: Enter CLINs - clin_description: "Continue to refer to your TO to locate your Contract Line Item Numbers (CLINs). You must add CLINs one at a time, and select a corresponding ID/IQ description for each." - base_clin_title: Base CLIN Information - clin_number_label: Enter task order CLIN - clin_type_label: "Select ID/IQ CLIN description" + base_clin_title: CLIN + clin_title: Enter Contract Line Items + clin_description: "Refer to your task order to locate your Contract Line Item Numbers (CLINs)." + clin_details: CLIN Details + clin_funding: CLIN Funding + clin_number_label: CLIN Number + clin_type_label: Corresponding IDIQ CLIN cloud_funding_header: Add the summary of cloud funding cloud_funding_text: Data must match with what is in your uploaded document. draft_alert_title: Your information has been saved draft_alert_message: You can return to the Task Order Builder to enter missing information. Once you are finished, you’ll be ready to submit this request. - obligated_funds_label: Enter obligated funds for Base CLIN - pop_end: 'Period of Performance (PoP) end date' - pop_start: 'Period of Performance (PoP) start date' + obligated_funds_label: Obligated Funds + pop: Period of Performance + pop_end: End Date + pop_end_alert: "A CLIN's period of performance must end before September 14, 2022." + pop_example: "For example: 07 04 1776" + pop_start: Start Date review_button: Review task order supporting_docs_header: Upload your supporting documentation supporting_docs_size_limit: Your file may not exceed 64MB supporting_docs_text: Upload a single PDF containing all relevant information. + step_3: + next_button: 'Next: Review Task Order' step_5: title: Confirm Signature description: Finally, plase confirm that your uploaded document representing the information you've entered contains the required signature from your Contracting Officer. You will be informed as soon as CCPO completes their review.