mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 10:27:07 +00:00
29 lines
722 B
HTML
29 lines
722 B
HTML
{% extends "base.html" %}
|
|
{% load render_table from django_tables2 %}
|
|
{% load crispy_forms_tags %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
<a href="{% url 'registration:signup' %}"><button class="btn btn-primary btn-block">{% trans "New user" %}</button></a>
|
|
|
|
<hr>
|
|
|
|
{% if table.data %}
|
|
<div id="user_table">
|
|
{% render_table table %}
|
|
</div>
|
|
{% else %}
|
|
<div class="alert alert-warning">
|
|
{% trans "There is no pending user." %}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block extrajavascript %}
|
|
<script type="text/javascript">
|
|
$(".table-row").click(function() {
|
|
window.document.location = $(this).data("href");
|
|
});
|
|
</script>
|
|
{% endblock %}
|