Files
notifications-admin/app/templates/views/edit-user-permissions.html
Chris Hill-Scott 726e91bebb Make existing tests use ``client_request fixture
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.
2017-08-17 17:42:40 +01:00

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 %}