{% extends "users_admin/base.html" %}
{% load i18n %}

{% block title %}{{ title }}{% endblock %}

{% block content %}

<h1>{{ title }}</h1>

<br />

<p>
{{ text }}
</p>

{% if users %}
<table class="table table-condensed table-striped" id="usersTable">
  <thead>
    <tr>
      <th class="type-string">login</th>
      <th class="type-string">expiration</th>
      <th class="type-string">nom complet</th>
    </tr>
  </thead>
  <tbody>
	  {% for user in users %}
	  <tr>
		  <td>
			  {{ user.name }}
			  {% if 'univnautes-idp-multiple' in user.priv %}(multiple){% endif %}
		  </td>
		  <td>{{ user.expires|default:"jamais" }} ({{ user.ttl }})</td>
		  <td>{{ user.descr }}</td>
	  </tr
	  {% endfor %}
  </tbody>
</table>
{% endif %}


<form action="" method="post" autocomplete="off">
	{% csrf_token %}
	<div class="form-actions">
		<input type="submit" value="Confirmer" class="btn btn-primary" />
		<a href="/users-admin/" class="btn"><i class="icon-remove"></i> Annuler</a>
	</div>
</form>

{% endblock %}
