Browse Source

Anglais épisode 2 : L'attaque des templates

serializer_ipv6_prefix_length
Hugo LEVY-FALK 8 years ago
parent
commit
5e5bd89885
  1. 7
      machines/templates/machines/index_role.html
  2. 3
      machines/templates/machines/sidebar.html

7
machines/templates/machines/index_role.html

@ -25,15 +25,16 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% load bootstrap3 %}
{% load acl %}
{% load i18n %}
{% block title %}Machines{% endblock %}
{% block content %}
<h2>Liste des roles</h2>
<h2>{% trans "Roles list" %}</h2>
{% can_create Role %}
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-role' %}"><i class="fa fa-plus"></i> Ajouter un role</a>
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-role' %}"><i class="fa fa-plus"></i> {% trans "Add role"%}</a>
{% acl_end %}
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-role' %}"><i class="fa fa-trash"></i> Supprimer un ou plusieurs role</a>
<a class="btn btn-danger btn-sm" role="button" href="{% url 'machines:del-role' %}"><i class="fa fa-trash"></i> {% trans "Delete one or several roles" %}</a>
{% include "machines/aff_role.html" with role_list=role_list %}
<br />
<br />

3
machines/templates/machines/sidebar.html

@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% endcomment %}
{% load acl %}
{% load i18n %}
{% block sidebar %}
{% can_view_all Machine %}
@ -71,7 +72,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
{% can_view_all Role %}
<a class="list-group-item list-group-item-info" href="{% url "machines:index-role" %}">
<i class="fa fa-list-ul"></i>
Roles des serveurs
{% trans "Server roles" %}
</a>
{% acl_end %}
{% can_view_all OuverturePortList %}

Loading…
Cancel
Save