Merge pull request #981 from dod-ccpo/form-styling-updates

Form styling updates
This commit is contained in:
leigh-mil 2019-07-19 14:11:02 -04:00 committed by GitHub
commit 14673ff541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 35 additions and 26 deletions

View File

@ -35,7 +35,9 @@
{% include "fragments/flash.html" %}
<div class="task-order">
{% block to_builder_form_field %}{% endblock %}
</div>
</form>
</base-form>

View File

@ -0,0 +1,19 @@
{% macro TOFormStepHeader(title, description, to_number=None) %}
<div class="column">
<div class="form-row">
<div class="form-col form-col--two-thirds">
<div class="h2">
{{ title }}
</div>
</div>
<div class="form-col form-col--third">
{% if to_number %}
<strong>Task Order Number:</strong> {{ to_number }}
{% endif %}
</div>
</div>
<div class="form-row">
{{ description }}
</div>
</div>
{% endmacro %}

View File

@ -2,6 +2,7 @@
{% from 'components/icon.html' import Icon %}
{% from "components/sticky_cta.html" import StickyCTA %}
{% from "task_orders/form_header.html" import TOFormStepHeader %}
{% from 'components/upload_input.html' import UploadInput %}
{% if task_order_id %}
@ -16,13 +17,6 @@
{% block to_builder_form_field %}
<div class="h3">
{{ 'task_orders.form.supporting_docs_header' | translate }}
</div>
<div class="task-order__pdf-help-text">
{{ 'task_orders.form.supporting_docs_text' | translate }} {{ Icon('question')}}
</div>
{{ TOFormStepHeader('task_orders.form.supporting_docs_header' | translate, 'task_orders.form.supporting_docs_text' | translate) }}
{{ UploadInput(form.pdf, watch=True) }}
{% endblock %}

View File

@ -1,6 +1,7 @@
{% extends "task_orders/builder_base.html" %}
{% from 'components/text_input.html' import TextInput %}
{% from "task_orders/form_header.html" import TOFormStepHeader %}
{% set action = url_for("task_orders.submit_form_step_two_add_number", task_order_id=task_order_id) %}
{% set next_button_text = "Next: Add Base CLIN" %}
@ -8,9 +9,6 @@
{% set step = "2" %}
{% block to_builder_form_field %}
<div class="h1">
{{ 'task_orders.form.add_to_header' | translate }}
</div>
{{ TOFormStepHeader('task_orders.form.add_to_header' | translate, "Lorem ipsem")}}
{{ TextInput(form.number, validation='taskOrderNumber', optional=False) }}
{% endblock %}

View File

@ -4,6 +4,7 @@
{% from 'components/icon.html' import Icon %}
{% from 'components/options_input.html' import OptionsInput %}
{% from 'components/text_input.html' import TextInput %}
{% from 'task_orders/form_header.html' import TOFormStepHeader %}
{% set action = url_for("task_orders.submit_form_step_three_add_clins", task_order_id=task_order_id) %}
{% set next_button_text = "Next: Review Funding" %}
@ -99,12 +100,7 @@
inline-template
v-bind:initial-clin-count="{{ form.clins.data | length }}">
<div>
<div class="h3">
{{ 'task_orders.form.cloud_funding_header' | translate }}
</div>
<div>
{{ 'task_orders.form.cloud_funding_text' | translate }}
</div>
{{ 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) }}

View File

@ -2,6 +2,7 @@
{% from "components/alert.html" import Alert %}
{% from "components/checkbox_input.html" import CheckboxInput %}
{% from 'task_orders/form_header.html' import TOFormStepHeader %}
{% set action = url_for("task_orders.submit_task_order", task_order_id=task_order_id) %}
{% set next_button_text = "Next: Confirm & Submit" %}
@ -9,14 +10,11 @@
{% set step = "5" %}
{% block to_builder_form_field %}
<div>
<h1>Signature confirmation: <em>Task Order #{{task_order.number}}</em></h1>
</div>
{{ TOFormStepHeader("Signature confirmation", "Lorem ipsem", task_order_number) }}
{% call Alert('',
message="All task orders require a Contracting Officer signature."
) %}
{{ CheckboxInput(form.signature) }}
{% endcall %}
{% endblock %}

View File

@ -339,6 +339,8 @@ task_orders:
add_clin: Add another CLIN or Sub-CLIN
add_loa: Add another line of accounting
add_to_header: Add your task order
base_clin_title: Add Base CLIN
base_clin_description: Next, continue to refer to your document to locate your CLINs (Contract Line Item Numbers). CLINs are how you break the contract down by the commodities being procured (labor hours of services, funding for travel, quantity product A, etc.).
clin_number_label: CLIN
clin_type_label: CLIN type
cloud_funding_header: Add the summary of cloud funding