mirror of https://gitlab.federez.net/re2o/re2o
5 changed files with 53 additions and 5 deletions
@ -0,0 +1,15 @@ |
|||||
|
<table class="table table-striped"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>Type de machine</th> |
||||
|
<th></th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
{% for type in machinetype_list %} |
||||
|
<tr> |
||||
|
<td>{{ type.type }}</td> |
||||
|
<td><a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:edit-machinetype' type.id %}"><i class="glyphicon glyphicon-pushpin"></i> Editer</a></td> |
||||
|
</tr> |
||||
|
{% endfor %} |
||||
|
</table> |
||||
|
|
||||
@ -0,0 +1,15 @@ |
|||||
|
{% extends "machines/sidebar.html" %} |
||||
|
{% load bootstrap3 %} |
||||
|
|
||||
|
{% block title %}Machines{% endblock %} |
||||
|
|
||||
|
{% block content %} |
||||
|
<h2>Liste des types de machines</h2> |
||||
|
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:add-machinetype' %}"><i class="glyphicon glyphicon-plus"></i> Ajouter un type de machine</a> |
||||
|
<a class="btn btn-primary btn-sm" role="button" href="{% url 'machines:del-machinetype' %}"><i class="glyphicon glyphicon-trash"></i> Supprimer un ou plusieurs types de machines</a> |
||||
|
{% include "machines/aff_machinetype.html" with machinetype_list=machinetype_list %} |
||||
|
<br /> |
||||
|
<br /> |
||||
|
<br /> |
||||
|
{% endblock %} |
||||
|
|
||||
@ -1,6 +1,5 @@ |
|||||
{% extends "base.html" %} |
{% extends "base.html" %} |
||||
|
|
||||
{% block sidebar %} |
{% block sidebar %} |
||||
<p><a href="{% url "machines:add-machinetype" %}">Ajouter un type de machine</a></p> |
<p><a href="{% url "machines:index-machinetype" %}">Liste des types de machine</a></p> |
||||
<p><a href="{% url "machines:del-machinetype" %}">Retirer un type de machine</a></p> |
|
||||
{% endblock %} |
{% endblock %} |
||||
|
|||||
Loading…
Reference in new issue