mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-23 17:39:13 -04:00
This takes the original prototype version of this page, and, using the same fake data (ie nothing is wired up): - adds an invite users page - adds an edit (and delete) user page Both these pages allow the user to set another user’s permissions. This commit adds images for the ticks and crosses, so we have control over their appearance.
49 lines
1.5 KiB
HTML
49 lines
1.5 KiB
HTML
{% extends "withnav_template.html" %}
|
||
{% from "components/yes-no.html" import yes_no %}
|
||
{% from "components/textbox.html" import textbox %}
|
||
{% from "components/page-footer.html" import page_footer %}
|
||
|
||
{% block page_title %}
|
||
Manage users – GOV.UK Notify
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<h1 class="heading-large">
|
||
{{ user.name or user.email_localpart or "Add a new team member" }}
|
||
</h1>
|
||
|
||
<div class="grid-row">
|
||
<form method="post" class="column-three-quarters">
|
||
|
||
{% if user %}
|
||
<p class='bottom-gutter'>
|
||
{{ user.email_localpart }}@digital.cabinet-office.gov.uk
|
||
</p>
|
||
{% else %}
|
||
{{ textbox(form.email_address, hint='Email address must end in .gov.uk', width='1-1') }}
|
||
{% endif %}
|
||
|
||
<fieldset class='yes-no-wrapper'>
|
||
<legend class='heading-small'>
|
||
Permissions
|
||
</legend>
|
||
{{ yes_no('send_messages', 'Send messages', user.permission_send_messages) }}
|
||
{{ yes_no('manage_service', 'Manage service', user.permission_manage_service) }}
|
||
{{ yes_no('manage_api_keys', 'Manage API keys', user.permission_manage_api_keys) }}
|
||
</fieldset>
|
||
|
||
{% if user %}
|
||
{{ page_footer(
|
||
'Save',
|
||
delete_link=url_for('.delete_user', service_id=service_id, user_id=user_id),
|
||
delete_link_text='delete this account'
|
||
) }}
|
||
{% else %}
|
||
{{ page_footer('Send invitation email') }}
|
||
{% endif %}
|
||
|
||
</form>
|
||
</div>
|
||
{% endblock %}
|