-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2562 from cisagov/bob/2378-portfolio-senior-official
(on getgov-bob) Ticket #2378: Add readonly portfolio senior official page
- Loading branch information
Showing
12 changed files
with
240 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{% load static field_helpers url_helpers %} | ||
|
||
{% if can_edit %} | ||
{% include "includes/form_errors.html" with form=form %} | ||
{% endif %} | ||
|
||
<h1>Senior Official</h1> | ||
|
||
<p> | ||
Your senior official is a person within your organization who can authorize domain requests. | ||
{% if include_read_more_text %} | ||
This person must be in a role of significant, executive responsibility within the organization. | ||
Read more about <a class="usa-link" rel="noopener noreferrer" target="_blank" href="{% public_site_url 'domains/eligibility/#you-must-have-approval-from-a-senior-official-within-your-organization' %}">who can serve as a senior official</a>. | ||
{% endif %} | ||
</p> | ||
|
||
{% if can_edit %} | ||
{% include "includes/required_fields.html" %} | ||
{% else %} | ||
<p> | ||
The senior official for your organization can’t be updated here. | ||
To suggest an update, email <a href="mailto:help@get.gov" class="usa-link">help@get.gov</a>. | ||
</p> | ||
{% endif %} | ||
|
||
{% if can_edit %} | ||
<form class="usa-form usa-form--large" method="post" novalidate id="form-container"> | ||
{% csrf_token %} | ||
{% input_with_errors form.first_name %} | ||
{% input_with_errors form.last_name %} | ||
{% input_with_errors form.title %} | ||
{% input_with_errors form.email %} | ||
<button type="submit" class="usa-button">Save</button> | ||
</form> | ||
{% elif not form.full_name.value and not form.title.value and not form.email.value %} | ||
<h4>No senior official was found.</h4> | ||
{% else %} | ||
{% if form.full_name.value is not None %} | ||
{% include "includes/input_read_only.html" with field=form.full_name %} | ||
{% endif %} | ||
|
||
{% if form.title.value is not None %} | ||
{% include "includes/input_read_only.html" with field=form.title %} | ||
{% endif %} | ||
|
||
{% if form.email.value is not None %} | ||
{% include "includes/input_read_only.html" with field=form.email %} | ||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% extends 'portfolio_base.html' %} | ||
{% load static field_helpers%} | ||
|
||
{% block title %}Senior Official | {{ portfolio.name }} | {% endblock %} | ||
|
||
{% load static %} | ||
|
||
{% block portfolio_content %} | ||
<div class="grid-row grid-gap"> | ||
<div class="tablet:grid-col-3"> | ||
<p class="font-body-md margin-top-0 margin-bottom-2 | ||
text-primary-darker text-semibold" | ||
> | ||
<span class="usa-sr-only"> Portfolio name:</span> {{ portfolio }} | ||
</p> | ||
|
||
{% include 'portfolio_organization_sidebar.html' %} | ||
</div> | ||
|
||
<div class="tablet:grid-col-9"> | ||
{% include "includes/senior_official.html" with can_edit=False %} | ||
</div> | ||
</div> | ||
{% endblock %} |
Oops, something went wrong.