mirror of https://gitlab.federez.net/re2o/re2o
11 changed files with 130 additions and 8 deletions
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('topologie', '0017_auto_20160718_1141'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='room', |
|||
name='details', |
|||
field=models.CharField(blank=True, max_length=255), |
|||
), |
|||
] |
|||
@ -0,0 +1,17 @@ |
|||
<table class="table table-striped"> |
|||
<thead> |
|||
<tr> |
|||
<th>Chambre</th> |
|||
<th>Commentaire</th> |
|||
<th></th> |
|||
</tr> |
|||
</thead> |
|||
{% for room in room_list %} |
|||
<tr> |
|||
<td>{{room.name}}</td> |
|||
<td>{{room.details}}</td> |
|||
<td>{% if is_infra %}<a class="btn btn-primary btn-sm" role="button" href="{% url 'topologie:edit-room' room.id %}"><i class="glyphicon glyphicon-random"></i> Editer</a> |
|||
<a class="btn btn-danger btn-sm" role="button" href="{% url 'topologie:del-room' room.id %}"><i class="glyphicon glyphicon-trash"></i> Supprimer</a>{% endif %}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table> |
|||
@ -0,0 +1,16 @@ |
|||
{% extends "machines/sidebar.html" %} |
|||
{% load bootstrap3 %} |
|||
|
|||
{% block title %}Création et modification de machines{% endblock %} |
|||
|
|||
{% block content %} |
|||
|
|||
<form class="form" method="post"> |
|||
{% csrf_token %} |
|||
<h4>Attention, voulez-vous vraiment supprimer cet objet {{ objet_name }} ( {{ objet }} ) ?</h4> |
|||
{% bootstrap_button "Confirmer" button_type="submit" icon="trash" %} |
|||
</form> |
|||
<br /> |
|||
<br /> |
|||
<br /> |
|||
{% endblock %} |
|||
@ -0,0 +1,15 @@ |
|||
{% extends "topologie/sidebar.html" %} |
|||
{% load bootstrap3 %} |
|||
|
|||
{% block title %}Chambres{% endblock %} |
|||
|
|||
{% block content %} |
|||
<h2>Chambres</h2> |
|||
{% if is_infra %} |
|||
<a class="btn btn-primary btn-sm" role="button" href="{% url 'topologie:new-room' %}"><i class="glyphicon glyphicon-plus"></i> Ajouter une chambre</a> |
|||
{% endif %} |
|||
{% include "topologie/aff_chambres.html" with room_list=room_list %} |
|||
<br /> |
|||
<br /> |
|||
<br /> |
|||
{% endblock %} |
|||
Loading…
Reference in new issue