mirror of https://gitlab.federez.net/re2o/re2o
committed by
root
11 changed files with 282 additions and 35 deletions
Binary file not shown.
@ -0,0 +1,57 @@ |
|||
{% comment %} |
|||
Re2o est un logiciel d'administration développé initiallement au rezometz. Il |
|||
se veut agnostique au réseau considéré, de manière à être installable en |
|||
quelques clics. |
|||
|
|||
Copyright © 2018 Gabriel Détraz |
|||
|
|||
This program is free software; you can redistribute it and/or modify |
|||
it under the terms of the GNU General Public License as published by |
|||
the Free Software Foundation; either version 2 of the License, or |
|||
(at your option) any later version. |
|||
|
|||
This program is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
GNU General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU General Public License along |
|||
with this program; if not, write to the Free Software Foundation, Inc., |
|||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|||
{% endcomment %} |
|||
|
|||
{% load acl %} |
|||
{% load logs_extra %} |
|||
{% load i18n %} |
|||
|
|||
|
|||
<div class="table-responsive"> |
|||
{% if digicodes_list.paginator %} |
|||
{% include "pagination.html" with list=digicodes_list %} |
|||
{% endif %} |
|||
|
|||
<table class="table table-striped"> |
|||
<thead> |
|||
<tr> |
|||
<th>{% trans "User" %}</th> |
|||
<th>{% trans "Code" %}</th> |
|||
<th>{% trans "Created on" %}</th> |
|||
</tr> |
|||
</thead> |
|||
{% for digicode in digicodes_list %} |
|||
{% can_view digicode %} |
|||
<tr> |
|||
<td>{{ digicode.user }}</td> |
|||
{% with code=digicode.code %} |
|||
<td>{{ code }}#</td> |
|||
{% endwith %} |
|||
<td>{{ digicode.created }}</td> |
|||
</tr> |
|||
{% acl_end %} |
|||
{% endfor %} |
|||
</table> |
|||
|
|||
{% if digicodes_list.paginator %} |
|||
{% include "pagination.html" with list=digicodes_list %} |
|||
{% endif %} |
|||
</div> |
|||
@ -0,0 +1,20 @@ |
|||
{% extends "printer/sidebar.html" %} |
|||
{% load staticfiles %} |
|||
|
|||
{% load i18n %} |
|||
{% load bootstrap3 %} |
|||
{% load massive_bootstrap_form %} |
|||
|
|||
{% block title %}Printing interface{% endblock %} |
|||
|
|||
{% block content %} |
|||
{% bootstrap_form_errors codeform %} |
|||
|
|||
<form class="form" method="post"> |
|||
{% csrf_token %} |
|||
<h3>{% trans "Create digicode for" %}</h3> |
|||
{% massive_bootstrap_form codeform 'user' %} |
|||
{% bootstrap_button action_name button_type="submit" icon="ok" button_class="btn-succes" %} |
|||
</form> |
|||
{% endblock %} |
|||
|
|||
@ -0,0 +1,33 @@ |
|||
{% extends "printer/sidebar.html" %} |
|||
{% comment %} |
|||
Re2o est un logiciel d'administration développé initiallement au rezometz. Il |
|||
se veut agnostique au réseau considéré, de manière à être installable en |
|||
quelques clics. |
|||
|
|||
Copyright © 2018 Gabriel Détraz |
|||
|
|||
This program is free software; you can redistribute it and/or modify |
|||
it under the terms of the GNU General Public License as published by |
|||
the Free Software Foundation; either version 2 of the License, or |
|||
(at your option) any later version. |
|||
|
|||
This program is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
GNU General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU General Public License along |
|||
with this program; if not, write to the Free Software Foundation, Inc., |
|||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|||
{% endcomment %} |
|||
|
|||
{% load bootstrap3 %} |
|||
{% load acl %} |
|||
{% load i18n %} |
|||
|
|||
{% block title %}{% trans "Printer" %}{% endblock %} |
|||
|
|||
{% block content %} |
|||
<h2>{% trans "List of codes" %}</h2> |
|||
{% include "printer/aff_digicodes.html" with digicodes_list=digicodes_list %} |
|||
{% endblock %} |
|||
Loading…
Reference in new issue