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):
|
||||
fname_request = StringField(
|
||||
"First Name",
|
||||
# validators=[Required(), Alphabet()]
|
||||
validators=[Required(), Alphabet()]
|
||||
)
|
||||
|
||||
lname_request = StringField(
|
||||
"Last Name",
|
||||
# validators=[Required(), Alphabet()]
|
||||
validators=[Required(), Alphabet()]
|
||||
)
|
||||
|
||||
email_request = EmailField(
|
||||
"Email Address",
|
||||
# validators=[Required(), Email()]
|
||||
validators=[Required(), Email()]
|
||||
)
|
||||
|
||||
phone_number = TelField(
|
||||
"Phone Number",
|
||||
# validators=[Required(), PhoneNumber()]
|
||||
validators=[Required(), PhoneNumber()]
|
||||
)
|
||||
|
||||
service_branch = StringField(
|
||||
"Service Branch or Agency",
|
||||
# validators=[Required()]
|
||||
validators=[Required()]
|
||||
)
|
||||
|
||||
citizenship = RadioField(
|
||||
@ -39,7 +39,7 @@ class OrgForm(ValidatedForm):
|
||||
("Foreign National", "Foreign National"),
|
||||
("Other", "Other"),
|
||||
],
|
||||
# validators=[Required()],
|
||||
validators=[Required()],
|
||||
)
|
||||
|
||||
designation = RadioField(
|
||||
@ -49,17 +49,17 @@ class OrgForm(ValidatedForm):
|
||||
("civilian", "Civilian"),
|
||||
("contractor", "Contractor"),
|
||||
],
|
||||
# validators=[Required()],
|
||||
validators=[Required()],
|
||||
)
|
||||
|
||||
date_latest_training = DateField(
|
||||
"Latest Information Assurance (IA) Training completion date.",
|
||||
# validators=[
|
||||
# Required(),
|
||||
# DateRange(
|
||||
# lower_bound=pendulum.duration(years=1),
|
||||
# upper_bound=pendulum.duration(days=0),
|
||||
# message="Must be a date within the last year.",
|
||||
# ),
|
||||
# ],
|
||||
"Latest Information Assurance (IA) Training completion date",
|
||||
validators=[
|
||||
Required(),
|
||||
DateRange(
|
||||
lower_bound=pendulum.duration(years=1),
|
||||
upper_bound=pendulum.duration(days=0),
|
||||
message="Must be a date within the last year.",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
@ -8,20 +8,20 @@ from .validators import IsNumber, Alphabet
|
||||
class POCForm(ValidatedForm):
|
||||
fname_poc = StringField(
|
||||
"POC First Name",
|
||||
# validators=[Required(), Alphabet()]
|
||||
validators=[Required(), Alphabet()]
|
||||
)
|
||||
|
||||
lname_poc = StringField(
|
||||
"POC Last Name",
|
||||
# validators=[Required(), Alphabet()]
|
||||
validators=[Required(), Alphabet()]
|
||||
)
|
||||
|
||||
email_poc = EmailField(
|
||||
"POC Email Address",
|
||||
# validators=[Required(), Email()]
|
||||
validators=[Required(), Email()]
|
||||
)
|
||||
|
||||
dodid_poc = StringField(
|
||||
"DOD ID",
|
||||
# validators=[Required(), Length(min=10), IsNumber()]
|
||||
validators=[Required(), Length(min=10), IsNumber()]
|
||||
)
|
||||
|
@ -17,64 +17,160 @@
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
<h3>Details of Use <a href="{{ reverse_url('request_form_update', 1, request_id) }}">Edit</a></h3>
|
||||
<h2>Information About You <a href="{{ reverse_url('request_form_update', 2, request_id) }}">Edit</a></h2>
|
||||
|
||||
<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>
|
||||
{{data['details_of_use']['dod_component']}}
|
||||
<h2>Primary Point of Contact <a href="{{ reverse_url('request_form_update', 3, request_id) }}">Edit</a></h2>
|
||||
|
||||
<label>JEDI Usage</label>
|
||||
{{data['details_of_use']['jedi_usage']}}
|
||||
<dl>
|
||||
<dt>POC First Name</dt>
|
||||
<dd>
|
||||
</dl>
|
||||
|
||||
<label>Number of software systems</label>
|
||||
{{data['details_of_use']['num_software_systems']}}
|
||||
|
||||
<label>JEDI Migration</label>
|
||||
{{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 Last Name</dt>
|
||||
<dd>
|
||||
</dl>
|
||||
|
||||
<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 %}
|
||||
|
||||
|
@ -8,12 +8,12 @@
|
||||
|
||||
<div class="panel">
|
||||
|
||||
<main class="panel__content">
|
||||
<div class="panel__heading">
|
||||
<h1>New Request</h1>
|
||||
<div class="subtitle">{% block subtitle %}{% end %}</div>
|
||||
</div>
|
||||
|
||||
<div class="panel__content">
|
||||
{% block form_action %}
|
||||
{% if request_id %}
|
||||
<form method='POST' action="{{ reverse_url('request_form_update', current, request_id) }}" autocomplete="off">
|
||||
@ -31,7 +31,7 @@
|
||||
{% end %}
|
||||
</form>
|
||||
|
||||
</main>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user