Merge pull request #241 from dod-ccpo/financial-verification-validation-and-messaging

Financial verification validation and messaging
This commit is contained in:
andrewdds
2018-09-07 16:09:10 -04:00
committed by GitHub
7 changed files with 162 additions and 93 deletions

View File

@@ -27,6 +27,25 @@
) }}
{% endif %}
{% block form_action %}
{% if extended %}
<form method='POST' action="{{ url_for('requests.financial_verification', request_id=request_id, extended=True) }}" autocomplete="off" enctype="multipart/form-data">
{% else %}
<form method='POST' action="{{ url_for('requests.financial_verification', request_id=request_id) }}" autocomplete="off">
{% endif %}
{% endblock %}
{{ f.csrf_token }}
{% block form %}
{% autoescape false %}
{% if f.errors %}
{{ Alert('There were some errors',
message="<p>Please see below.</p>",
level='error'
) }}
{% endif %}
<div class="panel">
<div class="panel__heading">
@@ -36,27 +55,10 @@
<div class="panel__content">
{% block form_action %}
{% if extended %}
<form method='POST' action="{{ url_for('requests.financial_verification', request_id=request_id, extended=True) }}" autocomplete="off" enctype="multipart/form-data">
{% else %}
<form method='POST' action="{{ url_for('requests.financial_verification', request_id=request_id) }}" autocomplete="off">
{% endif %}
{% endblock %}
{{ f.csrf_token }}
{% block form %}
{% autoescape false %}
{% if f.errors %}
{{ Alert('There were some errors',
message="<p>Please see below.</p>",
level='error'
) }}
{% endif %}
<p>In order to get you access to the JEDI Cloud, we will need you to enter the details below that will help us verify and account for your Task Order.</p>
<hr />
{% if extended %}
<fieldset class="form__sub-fields form__sub-fields--warning">
{{ OptionsInput(f.funding_type) }}
@@ -66,33 +68,33 @@
</template>
{{ TextInput(
f.clin_0001,placeholder="50,000",
validation='integer'
f.clin_0001,
validation='dollars'
) }}
{{ TextInput(
f.clin_0003,placeholder="13,000",
validation='integer'
f.clin_0003,
validation='dollars'
) }}
{{ TextInput(
f.clin_1001,placeholder="30,000",
validation='integer'
f.clin_1001,
validation='dollars'
) }}
{{ TextInput(
f.clin_1003,placeholder="7,000",
validation='integer'
f.clin_1003,
validation='dollars'
) }}
{{ TextInput(
f.clin_2001,placeholder="30,000",
validation='integer'
f.clin_2001,
validation='dollars'
) }}
{{ TextInput(
f.clin_2003,placeholder="7,000",
validation='integer'
f.clin_2003,
validation='dollars'
) }}
<div class="usa-input usa-input--validation--anything {% if f.task_order.errors %} usa-input--error {% endif %}">
@@ -114,54 +116,60 @@
{{ TextInput(f.uii_ids,
paragraph=True,
placeholder="e.g.: DI 0CVA5786950 \nUN1945326361234786950",
placeholder="examples: \nDI 0CVA5786950 \nUN1945326361234786950",
tooltip="A Unique Item Identifer is a unique code that helps the Department of Defense track and report on where and how digital assets are stored. <br>Not all applications have an existing UII number assigned."
) }}
{{ TextInput(f.pe_id,
placeholder="e.g.: 0302400A",
tooltip="Program Element numbers helps the Department of Defense identify which offices\\' budgets are contributing towards this resource use."
placeholder="e.g.: 0105688F",
validation="peNumber"
) }}
{{ TextInput(f.treasury_code,placeholder="e.g.: 00123456") }}
{{ TextInput(f.treasury_code,placeholder="e.g.: 00123456",validation="treasuryCode") }}
{{ TextInput(f.ba_code,placeholder="e.g.: 02A") }}
{{ TextInput(f.ba_code,placeholder="e.g.: 02A",validation="baCode") }}
<hr />
<h3>Contracting Officer (KO) Information</h3>
{{ TextInput(f.fname_co,placeholder="Contracting Officer First Name") }}
{{ TextInput(f.lname_co,placeholder="Contracting Officer Last Name") }}
{{ TextInput(
f.email_co,validation='email',
placeholder="jane@mail.mil"
) }}
{{ TextInput(
f.office_co,
placeholder="e.g.: WHS"
) }}
<div class='form-row'>
<div class='form-col form-col--half '>{{ TextInput(f.fname_co) }}</div>
<div class='form-col form-col--half '>{{ TextInput(f.lname_co) }}</div>
</div>
<div class='form-row'>
<div class='form-col form-col--half'>{{ TextInput(f.email_co,validation='email', placeholder='e.g. jane@mail.mil') }}</div>
<div class='form-col form-col--half'>{{ TextInput(f.office_co,placeholder="e.g.: WHS") }}</div>
</div>
<hr />
<h3>Contracting Officer Representative (COR) Information</h3>
{{ TextInput(f.fname_cor,placeholder="Contracting Officer Representative First Name") }}
<div class='form-row'>
<div class='form-col form-col--half '>{{ TextInput(f.fname_cor) }}</div>
<div class='form-col form-col--half '>{{ TextInput(f.lname_cor) }}</div>
</div>
{{ TextInput(f.lname_cor,placeholder="Contracting Officer Representative Last Name") }}
{{ TextInput(f.email_cor,validation='email',placeholder="jane@mail.mil") }}
{{ TextInput(f.office_cor,placeholder="e.g.: WHS") }}
<div class='form-row'>
<div class='form-col form-col--half'>{{ TextInput(f.email_cor,validation='email', placeholder='e.g. jane@mail.mil') }}</div>
<div class='form-col form-col--half'>{{ TextInput(f.office_cor,placeholder="e.g.: WHS") }}</div>
</div>
{% endautoescape %}
{% endblock form %}
{% block next %}
<input type='submit' class='usa-button usa-button-primary' value='Save & Continue' />
{% endblock %}
</form>
</div>
</div>
{% endblock form %}
{% block next %}
<div class='action-group'>
<input type='submit' class='usa-button usa-button-primary' value='Save & Continue' />
</div>
{% endblock %}
</form>
</div>
</financial>

View File

@@ -20,10 +20,15 @@
<p>Please tell us more about you.</p>
{{ TextInput(f.fname_request, placeholder='First Name') }}
{{ TextInput(f.lname_request, placeholder='Last Name') }}
{{ TextInput(f.email_request, placeholder='jane@mail.mil', validation='email') }}
{{ TextInput(f.phone_number, placeholder='e.g. (123) 456-7890', validation='usPhone') }}
<div class='form-row'>
<div class='form-col form-col--half'>{{ TextInput(f.fname_request) }}</div>
<div class='form-col form-col--half'>{{ TextInput(f.lname_request) }}</div>
</div>
<div class='form-row'>
<div class='form-col form-col--half'>{{ TextInput(f.email_request, placeholder='e.g. jane@mail.mil', validation='email') }}</div>
<div class='form-col form-col--half'>{{ TextInput(f.phone_number, placeholder='e.g. (123) 456-7890', validation='usPhone') }}</div>
</div>
<p>We want to collect the following information from you for security auditing and determining priviledged user access.</p>

View File

@@ -36,10 +36,17 @@
{{ CheckboxInput(f.am_poc) }}
<template v-if="!am_poc" v-cloak>
{{ TextInput(f.fname_poc,placeholder='First Name') }}
{{ TextInput(f.lname_poc,placeholder='Last Name') }}
{{ TextInput(f.email_poc,placeholder='jane@mail.mil', validation='email') }}
{{ TextInput(f.dodid_poc,placeholder='10-digit number on the back of the CAC', validation='dodId') }}
<div class='form-row'>
<div class='form-col form-col--half'>{{ TextInput(f.fname_poc) }}</div>
<div class='form-col form-col--half'>{{ TextInput(f.lname_poc) }}</div>
</div>
<div class='form-row'>
<div class='form-col form-col--half'>{{ TextInput(f.email_poc, validation='email', placeholder='e.g. jane@mail.mil') }}</div>
<div class='form-col form-col--half'>{{ TextInput(f.dodid_poc, validation='dodId', placeholder='10-digit number on back of CAC') }}</div>
</div>
</template>
</div>