mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
The yes/no pattern didn’t work too well, because: - it didn’t read naturally as a question and answer - often users left them completely unclicked if they didn’t want to set the permission (rather than clicking no) This commit changes both the invite and edit user pages to use checkboxes to set permissions. If also rewords these pages to read more naturally, and explain what the permissions mean. This meant changing some of the view logic around invites and persmissions, and I ended up refactoring a bunch of it because I found it hard to understand what was going on.
28 lines
738 B
HTML
28 lines
738 B
HTML
{% extends "withnav_template.html" %}
|
||
{% from "components/checkbox.html" import checkbox %}
|
||
{% 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">
|
||
{{ "Invite a team member" }}
|
||
</h1>
|
||
|
||
<div class="grid-row">
|
||
<form method="post" class="column-three-quarters">
|
||
|
||
{{ textbox(form.email_address, hint='Must be from a central government organisation', width='1-1', safe_error_message=True) }}
|
||
|
||
{% include 'views/manage-users/permissions.html' %}
|
||
|
||
{{ page_footer('Send invitation email') }}
|
||
|
||
</form>
|
||
</div>
|
||
{% endblock %}
|