8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-26 06:32:26 +00:00
re2o/tickets/templates/tickets/aff_tickets.html

90 lines
3 KiB
HTML
Raw Normal View History

2019-07-07 17:09:56 +00:00
{% comment %}
2020-11-23 16:06:37 +00:00
Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il
2019-07-07 17:09:56 +00:00
se veut agnostique au réseau considéré, de manière à être installable en
quelques clics.
Copyright © 2017 Gabriel Détraz
Copyright © 2017 Lara Kermarec
2019-07-07 17:09:56 +00:00
Copyright © 2017 Augustin Lemesle
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 i18n %}
{% block content %}
2019-08-06 16:06:53 +00:00
<div class="container-fluid">
<hr class="col-sm-12">
<div class="row justify-content-start">
<div class="col-sm-4">
<span class="badge badge-light">{{ nbr_tickets }}</span> {% blocktrans count nb=nbr_tickets %}Ticket{% plural %}Tickets{% endblocktrans %}
2019-08-06 16:06:53 +00:00
</div>
<div class="col-sm-4">
<span class="badge badge-light"> {{ nbr_tickets_unsolved }}</span> {% blocktrans count nb=nbr_tickets_unsolved %}Ticket not solved{% plural %}Tickets not solved{% endblocktrans %}
2019-08-06 16:06:53 +00:00
</div>
<div class="col-sm-4">
<span>{% trans "Last ticket:" %} {{ last_ticket_date }}</span>
2019-08-06 16:06:53 +00:00
</div>
</div>
<hr class="col-sm-12">
</div>
2019-08-06 19:27:03 +00:00
<div class="table-responsive">
2019-08-06 19:27:03 +00:00
<table class="table">
2019-07-07 17:09:56 +00:00
<thead>
<tr>
2019-07-10 14:39:55 +00:00
<th scope="col"></th>
<th scope="col">{% trans "User" %}</th>
<th scope="col">{% trans "Title" %}</th>
<th scope="col">{% trans "Date" %}</th>
<th scope="col">{% trans "Solved" %}</th>
2019-07-07 17:09:56 +00:00
</tr>
{% for ticket in tickets_list %}
<tr>
2019-07-08 10:21:51 +00:00
<td>
<a href="{% url 'tickets:aff-ticket' ticket.id%}" class="btn btn-primary btn-sm" role="button">
<i class="fa fa-ticket"></i>
</a>
</td>
{% if ticket.user %}
2019-08-14 17:07:31 +00:00
<td><a href="{% url 'users:profil' ticket.user.id%}" role="button">{{ ticket.user.get_short_name }}</a></td>
{% else %}
<td>{% trans "Anonymous" %}</td>
{% endif %}
2019-07-07 17:09:56 +00:00
<td>{{ ticket.title }}</td>
<td>{{ ticket.date }}</td>
{% if ticket.solved %}
<td><i class="fa fa-check" style="color:green"></i></td>
{% else %}
<td><i class="fa fa-times" style="color:red"></i></td>
{% endif %}
</tr>
{% endfor %}
</thead>
</table>
2019-08-06 19:27:03 +00:00
{% if tickets_list.paginator %}
{% include 'pagination.html' with list=tickets_list go_to_id="tickets" %}
{% endif %}
2019-07-07 17:09:56 +00:00
</div>
{% endblock %}