diff --git a/templates/task_orders/step_3.html b/templates/task_orders/step_3.html index 433ae7a5..bfb29b54 100644 --- a/templates/task_orders/step_3.html +++ b/templates/task_orders/step_3.html @@ -50,20 +50,80 @@ {% endmacro %} -{% macro CLINFields(fields, index) %} +{% macro CLINFields(fields=None, index=None) %} - {{ OptionsInput(fields.jedi_clin_type, watch=True) }} + {% if fields %} + {{ OptionsInput(fields.jedi_clin_type, watch=True) }} + {% else %} + + + + + + {{ 'task_orders.form.clin_type_label' | translate }} + + + + {{ "forms.task_order.clin_01_label" | translate }} + {{ "forms.task_order.clin_02_label" | translate }} + {{ "forms.task_order.clin_03_label" | translate }} + {{ "forms.task_order.clin_04_label" | translate }} + + + + + {% endif %} - {{ TextInput(fields.number, watch=True) }} + {% if fields %} + {{ TextInput(fields.number, watch=True) }} + {% else %} + + + + {{ Icon('alert',classes="icon-validation") }} + {{ Icon('ok',classes="icon-validation") }} + {{ 'task_orders.form.clin_number_label' | translate }} + + + + + + + + + + + + + + + + {% endif %} @@ -82,253 +142,182 @@ - {{ DatePicker(fields.start_date, watch=True, optional=False) }} - {{ DatePicker(fields.end_date, watch=True, optional=False) }} - {{ TextInput(fields.obligated_amount, validation='dollars', watch=True) }} + {% if fields %} + {{ DatePicker(fields.start_date, watch=True, optional=False) }} + {{ DatePicker(fields.end_date, watch=True, optional=False) }} + {{ TextInput(fields.obligated_amount, validation='dollars', watch=True) }} + {% else %} + + + + + {{ 'task_orders.form.pop_start' | translate }} + + + + + + + + {{ 'components.date_selector.month' | translate }} + + + + + {{ 'components.date_selector.day' | translate }} + + + + + {{ 'components.date_selector.year' | translate }} + + + + + {{ Icon("ok", classes="icon--green") }} + + + + + + + + + + {{ 'task_orders.form.pop_end' | translate }} + + + + + + + + {{ 'components.date_selector.month' | translate }} + + + + + {{ 'components.date_selector.day' | translate }} + + + + + {{ 'components.date_selector.year' | translate }} + + + + + {{ Icon("ok", classes="icon--green") }} + + + + + + + + + {{ 'task_orders.form.obligated_funds_label' | translate }} + {{ Icon('alert',classes="icon-validation") }} + {{ Icon('ok',classes="icon-validation") }} + + + + + + + + + + + + + + + + {% endif %} {% endmacro %} {% block to_builder_form_field %} - - - {{ TOFormStepHeader('task_orders.form.base_clin_title' | translate, 'task_orders.form.base_clin_description' | translate, task_order.number) }} + + {{ TOFormStepHeader('task_orders.form.base_clin_title' | translate, 'task_orders.form.base_clin_description' | translate, task_order.number) }} - {% for clin in form.clins %} - {{ CLINFields(clin, index=loop.index - 1) }} - {% endfor %} + {% for clin in form.clins %} + {{ CLINFields(clin, index=loop.index - 1) }} + {% endfor %} - - - - - - - - - - - {{ 'task_orders.form.clin_type_label' | translate }} - - - - {{ "forms.task_order.clin_01_label" | translate }} - {{ "forms.task_order.clin_02_label" | translate }} - {{ "forms.task_order.clin_03_label" | translate }} - {{ "forms.task_order.clin_04_label" | translate }} - - - - - - - - - - {{ Icon('alert',classes="icon-validation") }} - {{ Icon('ok',classes="icon-validation") }} - {{ 'task_orders.form.clin_number_label' | translate }} - - - - - - - - - - - - - - - - - - - - - - - {{ 'task_orders.form.loa_label' | translate }} - - - {{ LOAInput() }} - - - - - - - - {{ 'task_orders.form.pop_start' | translate }} - - - - - - - - {{ 'components.date_selector.month' | translate }} - - - - - {{ 'components.date_selector.day' | translate }} - - - - - {{ 'components.date_selector.year' | translate }} - - - - - {{ Icon("ok", classes="icon--green") }} - - - - - - - - - - {{ 'task_orders.form.pop_end' | translate }} - - - - - - - - {{ 'components.date_selector.month' | translate }} - - - - - {{ 'components.date_selector.day' | translate }} - - - - - {{ 'components.date_selector.year' | translate }} - - - - - {{ Icon("ok", classes="icon--green") }} - - - - - - - - - {{ 'task_orders.form.obligated_funds_label' | translate }} - {{ Icon('alert',classes="icon-validation") }} - {{ Icon('ok',classes="icon-validation") }} - - - - - - - - - - - - - - - - - + + {{ CLINFields() }}