Skip to content

Commit

Permalink
Add Add editor button to access management page. (#3042)
Browse files Browse the repository at this point in the history
  • Loading branch information
tadhg-ohiggins authored Dec 19, 2023
1 parent 4a0a0be commit 3e5c164
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions backend/audit/templates/audit/manage-submission.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@
Uncomment if/when we chose to keep the flags.
<p class="font-sans-xs">(<strong>*</strong>) Indicates user has not logged in to view this submission.</p>
{% endcomment %}
<a class="usa-button usa-button--outline margin-top-5"
href="{% url 'audit:SubmissionProgress' report_id %}"
aria-controls="upload-cancel">Return to checklist</a>
<a class="usa-button usa-button margin-top-5"
href="{{ add_editor_url }}"
aria-controls="add-editor">Add editor</a>
<a class="usa-button usa-button--unstyled margin-left-2"
href="{{ progress_url }}"
aria-controls="return-to-checklist">Return to checklist</a>
</div>
</div>
{% include "audit-metadata.html" %}
Expand Down
1 change: 1 addition & 0 deletions backend/audit/views/manage_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def _get_url_from_viewname(viewname: str, report_id: str | None = None) -> str:
"progress_url": _url("SubmissionProgress"),
"change_cert_auditee_url": _url("ChangeAuditeeCertifyingOfficial"),
"change_cert_auditor_url": _url("ChangeAuditorCertifyingOfficial"),
"add_editor_url": _url("ChangeOrAddRoleView"),
}

return render(request, "audit/manage-submission.html", context)

0 comments on commit 3e5c164

Please sign in to comment.