Short circuit if already a team member

It would be confusing if people got invited twice, so let’s tell people
if someone’s already been invited.
This commit is contained in:
Chris Hill-Scott
2020-06-08 11:19:58 +01:00
parent 6edc356c22
commit deaf2059f5
4 changed files with 92 additions and 6 deletions

View File

@@ -0,0 +1,19 @@
{% extends "withnav_template.html" %}
{% from "components/page-header.html" import page_header %}
{% block service_page_title %}
This person is already a team member
{% endblock %}
{% block maincolumn_content %}
{{ page_header(
'{} is already a team member'.format(user_to_invite.name),
back_link=url_for('main.manage_users', service_id=current_service.id)
) }}
<p class="govuk-body">
Someones already invited them. You do not need to do anything.
</p>
{% endblock %}