{% extends "base.html" %}
{% load i18n %}
{% load translations %}
{% load permissions %}
{% load crispy_forms_tags %}

{% block breadcrumbs %}
<li><a href="{% url 'manage' %}">{% trans "Manage" %}</a></li>
<li><a href="{% url 'manage-users' %}">{% trans "Users" %}</a></li>
{% endblock %}

{% block content %}

<div class="panel panel-default">
  <div class="panel-heading">
    <h4 class="panel-title">
      {% trans "Manage users" %}
    </h4>
  </div>
  <div class="panel-body">
    {% include "snippets/user-list.html" %}
  </div>
</div>

<form  method="POST">
{% csrf_token %}
<div class="panel panel-default">
<div class="panel-heading"><h4 class="panel-title">{% trans "Add new user" %}</h4></div>
  <div class="panel-body">
  {{ invite_form|crispy }}
  </div>
  <div class="panel-footer">
  <input type="submit" class="btn btn-primary" value="{% trans "Add" %}" />
  </div>
</div>
</form>

<form method="GET" action="{% url "manage-users-check" %}">
<div class="panel panel-default">
<div class="panel-heading"><h4 class="panel-title">{% trans "Check user access" %}</h4></div>
  <div class="panel-body">
  {{ search_form|crispy }}
  </div>
  <div class="panel-footer">
  <input type="submit" class="btn btn-primary" value="{% trans "Search" %}" />
  </div>
</div>
</form>

{% endblock %}
