aff_tickets.html 2.99 KB
Newer Older
grizzly's avatar
grizzly committed
1
{% comment %}
nanoy's avatar
nanoy committed
2
Re2o est un logiciel d'administration développé initiallement au Rézo Metz. Il
grizzly's avatar
grizzly committed
3
4
5
6
se veut agnostique au réseau considéré, de manière à être installable en
quelques clics.

Copyright © 2017  Gabriel Détraz
klafyvel's avatar
klafyvel committed
7
Copyright © 2017  Lara Kermarec
grizzly's avatar
grizzly committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 %}
grizzly's avatar
grizzly committed
29
30
31
32
33
34


<div class="container-fluid">
<hr class="col-sm-12">
  <div class="row justify-content-start">
    <div class="col-sm-4">
35
      <span class="badge badge-light">{{ nbr_tickets }}</span> {% blocktrans count nb=nbr_tickets %}Ticket{% plural %}Tickets{% endblocktrans %}
grizzly's avatar
grizzly committed
36
37
    </div>
    <div class="col-sm-4">
38
      <span class="badge badge-light"> {{ nbr_tickets_unsolved }}</span> {% blocktrans count nb=nbr_tickets_unsolved %}Ticket not solved{% plural %}Tickets not solved{% endblocktrans %}
grizzly's avatar
grizzly committed
39
40
    </div>
    <div class="col-sm-4">
41
      <span>{% trans "Last ticket:" %} {{ last_ticket_date }}</span>
grizzly's avatar
grizzly committed
42
43
44
45
46
    </div>
  </div>
<hr class="col-sm-12">
</div>

grizzly's avatar
grizzly committed
47
48


49
<div class="table-responsive">
grizzly's avatar
grizzly committed
50
51

	<table class="table">
grizzly's avatar
grizzly committed
52
53
    <thead>
        <tr>
54
            <th scope="col"></th>
55
56
57
58
	    <th scope="col">{% trans "User" %}</th>
	    <th scope="col">{% trans "Title" %}</th>
	    <th scope="col">{% trans "Date" %}</th>
	    <th scope="col">{% trans "Solved" %}</th> 
grizzly's avatar
grizzly committed
59
60
61
        </tr>
        {% for ticket in tickets_list %}
        <tr>
grizzly's avatar
grizzly committed
62
63
64
65
66
            <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>
67
            {% if ticket.user %}
grizzly's avatar
grizzly committed
68
            <td><a href="{% url 'users:profil' ticket.user.id%}" role="button">{{ ticket.user.get_short_name }}</a></td>
69
            {% else %}
70
	    <td>{% trans "Anonymous" %}</td>
71
            {% endif %}
grizzly's avatar
grizzly committed
72
73
74
75
76
77
78
79
80
81
82
83
            <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>
grizzly's avatar
grizzly committed
84
85
86
87

	{% if tickets_list.paginator %}
    	{% include 'pagination.html' with list=tickets_list go_to_id="tickets" %}
	{% endif %}
grizzly's avatar
grizzly committed
88
89
</div>
{% endblock %}