aff_constructor_switch.html 2.17 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
{% 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 © 2017  Gabriel Détraz
Copyright © 2017  Goulven Kermarec
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 %}

25
{% load acl %}
26
{% load logs_extra %}
27
{% load i18n %}
28

29
{% if constructor_switch_list.paginator %}
30
    {% include 'pagination.html' with list=constructor_switch_list %}
31 32 33 34 35
{% endif %}

<table class="table table-striped">
    <thead>
        <tr>
36
            {% trans "Switch constructor" as tr_constructor %}
37
            <th>{% include 'buttons/sort.html' with prefix='constructor-switch' col='name' text=tr_constructor %}</th>
38 39
            <th></th>
        </tr>
40 41 42
    </thead>
    {% for constructor_switch in constructor_switch_list %}
    <tr>
43
        <td>{{ constructor_switch }}</td>
44
        <td class="text-right">
45
            {% can_edit constructor_switch %}
46
            {% include 'buttons/edit.html' with href='topologie:edit-constructor-switch' id=constructor_switch.id %}
47
            {% acl_end %}
48
            {% history_button constructor_switch %}
49
            {% can_delete constructor_switch %}
50
            {% include 'buttons/suppr.html' with href='topologie:del-constructor-switch' id=constructor_switch.id %}
51
            {% acl_end %}
52
        </td>
53 54
    </tr>
    {% endfor %}
55
</table>
56 57

{% if constructor_switch_list.paginator %}
58
    {% include 'pagination.html' with list=constructor_switch_list %}
59
{% endif %}
60