mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-29 18:40:10 -04:00
This commit makes the existing tests around user permissions less verbose by using the new `client_request` fixture. This fixture takes care of: - setting up a service - asserting that the response is `200` It also tests that the page titles, some of which didn’t match with the `<h1>`s, so this commit also fixes that mismatch.
33 lines
807 B
HTML
33 lines
807 B
HTML
{% extends "withnav_template.html" %}
|
|
{% from "components/textbox.html" import textbox %}
|
|
{% from "components/page-footer.html" import page_footer %}
|
|
|
|
{% block service_page_title %}
|
|
{{ user.name or user.email_localpart }}
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<h1 class="heading-large">
|
|
{{ user.name or user.email_localpart }}
|
|
</h1>
|
|
|
|
<p>
|
|
{{ user.email_address }}
|
|
</p>
|
|
|
|
<div class="grid-row">
|
|
<form method="post" class="column-three-quarters">
|
|
|
|
{% include 'views/manage-users/permissions.html' %}
|
|
|
|
{{ page_footer(
|
|
'Save',
|
|
delete_link=url_for('.remove_user_from_service', service_id=current_service.id, user_id=user.id) if user or None,
|
|
delete_link_text='Remove user from service'
|
|
) }}
|
|
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|