Add read-only fields for poc and org details
This commit is contained in:
parent
c502039824
commit
95c07ff1f4
@ -10,27 +10,27 @@ from .validators import DateRange, PhoneNumber, Alphabet
|
|||||||
class OrgForm(ValidatedForm):
|
class OrgForm(ValidatedForm):
|
||||||
fname_request = StringField(
|
fname_request = StringField(
|
||||||
"First Name",
|
"First Name",
|
||||||
# validators=[Required(), Alphabet()]
|
validators=[Required(), Alphabet()]
|
||||||
)
|
)
|
||||||
|
|
||||||
lname_request = StringField(
|
lname_request = StringField(
|
||||||
"Last Name",
|
"Last Name",
|
||||||
# validators=[Required(), Alphabet()]
|
validators=[Required(), Alphabet()]
|
||||||
)
|
)
|
||||||
|
|
||||||
email_request = EmailField(
|
email_request = EmailField(
|
||||||
"Email Address",
|
"Email Address",
|
||||||
# validators=[Required(), Email()]
|
validators=[Required(), Email()]
|
||||||
)
|
)
|
||||||
|
|
||||||
phone_number = TelField(
|
phone_number = TelField(
|
||||||
"Phone Number",
|
"Phone Number",
|
||||||
# validators=[Required(), PhoneNumber()]
|
validators=[Required(), PhoneNumber()]
|
||||||
)
|
)
|
||||||
|
|
||||||
service_branch = StringField(
|
service_branch = StringField(
|
||||||
"Service Branch or Agency",
|
"Service Branch or Agency",
|
||||||
# validators=[Required()]
|
validators=[Required()]
|
||||||
)
|
)
|
||||||
|
|
||||||
citizenship = RadioField(
|
citizenship = RadioField(
|
||||||
@ -39,7 +39,7 @@ class OrgForm(ValidatedForm):
|
|||||||
("Foreign National", "Foreign National"),
|
("Foreign National", "Foreign National"),
|
||||||
("Other", "Other"),
|
("Other", "Other"),
|
||||||
],
|
],
|
||||||
# validators=[Required()],
|
validators=[Required()],
|
||||||
)
|
)
|
||||||
|
|
||||||
designation = RadioField(
|
designation = RadioField(
|
||||||
@ -49,17 +49,17 @@ class OrgForm(ValidatedForm):
|
|||||||
("civilian", "Civilian"),
|
("civilian", "Civilian"),
|
||||||
("contractor", "Contractor"),
|
("contractor", "Contractor"),
|
||||||
],
|
],
|
||||||
# validators=[Required()],
|
validators=[Required()],
|
||||||
)
|
)
|
||||||
|
|
||||||
date_latest_training = DateField(
|
date_latest_training = DateField(
|
||||||
"Latest Information Assurance (IA) Training completion date.",
|
"Latest Information Assurance (IA) Training completion date",
|
||||||
# validators=[
|
validators=[
|
||||||
# Required(),
|
Required(),
|
||||||
# DateRange(
|
DateRange(
|
||||||
# lower_bound=pendulum.duration(years=1),
|
lower_bound=pendulum.duration(years=1),
|
||||||
# upper_bound=pendulum.duration(days=0),
|
upper_bound=pendulum.duration(days=0),
|
||||||
# message="Must be a date within the last year.",
|
message="Must be a date within the last year.",
|
||||||
# ),
|
),
|
||||||
# ],
|
],
|
||||||
)
|
)
|
||||||
|
@ -8,20 +8,20 @@ from .validators import IsNumber, Alphabet
|
|||||||
class POCForm(ValidatedForm):
|
class POCForm(ValidatedForm):
|
||||||
fname_poc = StringField(
|
fname_poc = StringField(
|
||||||
"POC First Name",
|
"POC First Name",
|
||||||
# validators=[Required(), Alphabet()]
|
validators=[Required(), Alphabet()]
|
||||||
)
|
)
|
||||||
|
|
||||||
lname_poc = StringField(
|
lname_poc = StringField(
|
||||||
"POC Last Name",
|
"POC Last Name",
|
||||||
# validators=[Required(), Alphabet()]
|
validators=[Required(), Alphabet()]
|
||||||
)
|
)
|
||||||
|
|
||||||
email_poc = EmailField(
|
email_poc = EmailField(
|
||||||
"POC Email Address",
|
"POC Email Address",
|
||||||
# validators=[Required(), Email()]
|
validators=[Required(), Email()]
|
||||||
)
|
)
|
||||||
|
|
||||||
dodid_poc = StringField(
|
dodid_poc = StringField(
|
||||||
"DOD ID",
|
"DOD ID",
|
||||||
# validators=[Required(), Length(min=10), IsNumber()]
|
validators=[Required(), Length(min=10), IsNumber()]
|
||||||
)
|
)
|
||||||
|
@ -1,86 +1,182 @@
|
|||||||
{% extends '../requests_new.html.to' %}
|
{% extends '../requests_new.html.to' %}
|
||||||
|
|
||||||
{% block subtitle %}
|
{% block subtitle %}
|
||||||
<h2>Review & Submit</h2>
|
<h2>Review & Submit</h2>
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{% block form_action %}
|
{% block form_action %}
|
||||||
<form method='POST' action="{{ reverse_url('requests_submit', request_id) }}" autocomplete="off">
|
<form method='POST' action="{{ reverse_url('requests_submit', request_id) }}" autocomplete="off">
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{% block form %}
|
{% block form %}
|
||||||
|
|
||||||
{% autoescape None %}
|
{% autoescape None %}
|
||||||
{% if f.errors %}
|
{% if f.errors %}
|
||||||
<b>There were some errors, see below.</b>
|
<b>There were some errors, see below.</b>
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
<p class="usa-font-lead">Before you can submit your request, please take a moment to review the information entered in the form. You may make changes by clicking the edit link on each section. When all information looks right, go ahead and submit.</p>
|
<p class="usa-font-lead">Before you can submit your request, please take a moment to review the information entered in the form. You may make changes by clicking the edit link on each section. When all information looks right, go ahead and submit.</p>
|
||||||
|
|
||||||
|
<h2>Details of Use <a href="{{ reverse_url('request_form_update', 1, request_id) }}">Edit</a></h2>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>DoD Component</dt>
|
||||||
|
<dd>{{data['details_of_use']['dod_component']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>JEDI Usage</dt>
|
||||||
|
<dd>{{data['details_of_use']['jedi_usage']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Number of software systems</dt>
|
||||||
|
<dd>{{data['details_of_use']['num_software_systems']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>JEDI Migration</dt>
|
||||||
|
<dd>{{data['details_of_use']['jedi_migration']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Rationalization of Software Systems</dt>
|
||||||
|
<dd>{{data['details_of_use']['rationalization_software_systems']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Technical Support Team</dt>
|
||||||
|
<dd>{{data['details_of_use']['technical_support_team']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Organization Providing Assistance</dt>
|
||||||
|
<dd>{{data['details_of_use']['organization_providing_assistance']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Engineering Assessment</dt>
|
||||||
|
<dd>{{data['details_of_use']['engineering_assessment']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Data Transfers</dt>
|
||||||
|
<dd>{{data['details_of_use']['data_transfers']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Expected Completion Date</dt>
|
||||||
|
<dd>{{data['details_of_use']['expected_completion_date']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Cloud Native</dt>
|
||||||
|
<dd>{{data['details_of_use']['cloud_native']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Estimated Monthly Spend</dt>
|
||||||
|
<dd>{{data['details_of_use']['estimated_monthly_spend']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Total Spend</dt>
|
||||||
|
<dd>{{data['details_of_use']['total_spend']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Number of User Sessions</dt>
|
||||||
|
<dd>{{data['details_of_use']['number_user_sessions']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Average Daily Traffic</dt>
|
||||||
|
<dd>{{data['details_of_use']['average_daily_traffic']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Start Date</dt>
|
||||||
|
<dd>{{data['details_of_use']['start_date']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
|
<h2>Information About You <a href="{{ reverse_url('request_form_update', 2, request_id) }}">Edit</a></h2>
|
||||||
|
|
||||||
<h3>Details of Use <a href="{{ reverse_url('request_form_update', 1, request_id) }}">Edit</a></h3>
|
<dl>
|
||||||
|
<dt>First Name</dt>
|
||||||
|
<dd>{{data['information_about_you']['fname_request']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Last Name</dt>
|
||||||
|
<dd>{{data['information_about_you']['lname_request']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Email Address</dt>
|
||||||
|
<dd>{{data['information_about_you']['email_request']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Phone Number</dt>
|
||||||
|
<dd>{{data['information_about_you']['phone_number']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Service Branch or Agency</dt>
|
||||||
|
<dd>{{data['information_about_you']['service_branch']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Citizenship</dt>
|
||||||
|
<dd>{{data['information_about_you']['citizenship']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Designation of Person</dt>
|
||||||
|
<dd>{{data['information_about_you']['designation']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>Latest Information Assurance (IA) Training completion date</dt>
|
||||||
|
<dd>{{data['information_about_you']['date_latest_training']}}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
|
||||||
<label>DoD Component</label>
|
<h2>Primary Point of Contact <a href="{{ reverse_url('request_form_update', 3, request_id) }}">Edit</a></h2>
|
||||||
{{data['details_of_use']['dod_component']}}
|
|
||||||
|
|
||||||
<label>JEDI Usage</label>
|
<dl>
|
||||||
{{data['details_of_use']['jedi_usage']}}
|
<dt>POC First Name</dt>
|
||||||
|
<dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
<label>Number of software systems</label>
|
<dl>
|
||||||
{{data['details_of_use']['num_software_systems']}}
|
<dt>POC Last Name</dt>
|
||||||
|
<dd>
|
||||||
<label>JEDI Migration</label>
|
</dl>
|
||||||
{{data['details_of_use']['jedi_migration']}}
|
|
||||||
|
|
||||||
<label>Rationalization of Software Systems</label>
|
|
||||||
{{data['details_of_use']['rationalization_software_systems']}}
|
|
||||||
|
|
||||||
<label>Technical Support Team</label>
|
|
||||||
{{data['details_of_use']['technical_support_team']}}
|
|
||||||
|
|
||||||
<label>Organization Providing Assistance</label>
|
|
||||||
{{data['details_of_use']['organization_providing_assistance']}}
|
|
||||||
|
|
||||||
<label>Engineering Assessment</label>
|
|
||||||
{{data['details_of_use']['engineering_assessment']}}
|
|
||||||
|
|
||||||
<label>Data Transfers</label>
|
|
||||||
{{data['details_of_use']['data_transfers']}}
|
|
||||||
|
|
||||||
<label>Expected Completion Date</label>
|
|
||||||
{{data['details_of_use']['expected_completion_date']}}
|
|
||||||
|
|
||||||
<label>Cloud Native</label>
|
|
||||||
{{data['details_of_use']['cloud_native']}}
|
|
||||||
|
|
||||||
<label>Estimated Monthly Spend</label>
|
|
||||||
{{data['details_of_use']['estimated_monthly_spend']}}
|
|
||||||
|
|
||||||
<label>Total Spend</label>
|
|
||||||
{{data['details_of_use']['total_spend']}}
|
|
||||||
|
|
||||||
<label>Number of User Sessions</label>
|
|
||||||
{{data['details_of_use']['number_user_sessions']}}
|
|
||||||
|
|
||||||
<label>Average Daily Traffic</label>
|
|
||||||
{{data['details_of_use']['average_daily_traffic']}}
|
|
||||||
|
|
||||||
<label>Start Date</label>
|
|
||||||
{{data['details_of_use']['start_date']}}
|
|
||||||
|
|
||||||
<br>
|
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>POC Email Address</dt>
|
||||||
|
<dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<dl>
|
||||||
|
<dt>DOD ID</dt>
|
||||||
|
<dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
fname_poc
|
||||||
|
lname_poc
|
||||||
|
email_poc
|
||||||
|
dodid_poc
|
||||||
|
|
||||||
|
</form>
|
||||||
|
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{% block next %}
|
{% block next %}
|
||||||
{% if not can_submit %}
|
{% if not can_submit %}
|
||||||
<b class="usa-input-error-message">Please complete all required fields before submitting.</b>
|
<b class="usa-input-error-message">Please complete all required fields before submitting.</b>
|
||||||
{% end %}
|
{% end %}
|
||||||
<input type='submit' class='usa-button usa-button-primary' value='Submit' {{ "disabled" if not can_submit else "" }} />
|
<input type='submit' class='usa-button usa-button-primary' value='Submit' {{ "disabled" if not can_submit else "" }} />
|
||||||
{% end %}
|
{% end %}
|
||||||
|
@ -8,12 +8,12 @@
|
|||||||
|
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
|
|
||||||
<main class="panel__content">
|
|
||||||
<div class="panel__heading">
|
<div class="panel__heading">
|
||||||
<h1>New Request</h1>
|
<h1>New Request</h1>
|
||||||
<div class="subtitle">{% block subtitle %}{% end %}</div>
|
<div class="subtitle">{% block subtitle %}{% end %}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="panel__content">
|
||||||
{% block form_action %}
|
{% block form_action %}
|
||||||
{% if request_id %}
|
{% if request_id %}
|
||||||
<form method='POST' action="{{ reverse_url('request_form_update', current, request_id) }}" autocomplete="off">
|
<form method='POST' action="{{ reverse_url('request_form_update', current, request_id) }}" autocomplete="off">
|
||||||
@ -31,7 +31,7 @@
|
|||||||
{% end %}
|
{% end %}
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
</main>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user