mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-03 01:52:25 +00:00
70 lines
2.6 KiB
HTML
70 lines
2.6 KiB
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 acl %}
|
|
{% load logs_extra %}
|
|
{% load i18n %}
|
|
|
|
<div class="table-responsive">
|
|
{% if jobs_list.paginator %}
|
|
{% include "pagination.html" with list=jobs_list %}
|
|
{% endif %}
|
|
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
{% trans "Filename" as tr_filename %}
|
|
{% trans "User" as tr_byuser %}
|
|
{% trans "Start at" as tr_startat %}
|
|
{% trans "Status" as tr_status %}
|
|
<th>{% include "buttons/sort.html" with prefix='job' col='filename' text=tr_filename %}</th>
|
|
<th>{% include "buttons/sort.html" with prefix='job' col='user' text=tr_byuser %}</th>
|
|
<th>{% include "buttons/sort.html" with prefix='job' col='starttime' text=tr_startat %}</th>
|
|
<th>{% include "buttons/sort.html" with prefix='job' col='status' text=tr_status %}</th>
|
|
<th>{% trans "Number" %}</th>
|
|
<th>{% trans "Price" %}</th>
|
|
<th>{% trans "Print again" %}</th>
|
|
</tr>
|
|
</thead>
|
|
{% for job in jobs_list %}
|
|
{% can_view job %}
|
|
<tr>
|
|
<td>{{ job.filename }}</td>
|
|
<td>{{ job.user }} {% if job.printAs %} {% trans "for" %} {{ job.printAs }}{% endif %}</td>
|
|
<td>{{ job.starttime }}</td>
|
|
<td>{{ job.status }}</td>
|
|
<td>{{ job.count }}</td>
|
|
<td>{{ job.price }}</td>
|
|
<td>
|
|
<a href="{% url 'printer:print-job-again' jobwithoptionsid=job.id %}" class="btn btn-primary btn-sm" role="button">
|
|
<i class="fa fa-print"></i>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% acl_end %}
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% if jobs_list.paginator %}
|
|
{% include "pagination.html" with list=jobs_list %}
|
|
{% endif %}
|
|
</div>
|