{% extends "withnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}

{% block service_page_title %}
Manage users
{% 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 %}
