mirror of https://gitlab.federez.net/re2o/re2o
15 changed files with 206 additions and 4 deletions
@ -0,0 +1,17 @@ |
|||||
|
{% for key, stats in stats_list.items %} |
||||
|
<table class="table table-striped"> |
||||
|
<h4>Statistiques de l'ensemble {{ key }}</h4> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>Type d'objet</th> |
||||
|
<th>Nombre d'entrée stockées</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
{% for key, stat in stats.items %} |
||||
|
<tr> |
||||
|
<td>{{ stat.0 }}</td> |
||||
|
<td>{{ stat.1 }}</td> |
||||
|
</tr> |
||||
|
{% endfor %} |
||||
|
</table> |
||||
|
{% endfor %} |
||||
@ -0,0 +1,16 @@ |
|||||
|
{% extends "logs/sidebar.html" %} |
||||
|
{% load bootstrap3 %} |
||||
|
|
||||
|
{% block title %}Supression d'action{% endblock %} |
||||
|
|
||||
|
{% block content %} |
||||
|
|
||||
|
<form class="form" method="post"> |
||||
|
{% csrf_token %} |
||||
|
<h4>Attention, voulez-vous vraiment annuler cette action {{ objet_name }} ( {{ objet }} ) ?</h4> |
||||
|
{% bootstrap_button "Confirmer" button_type="submit" icon="trash" %} |
||||
|
</form> |
||||
|
<br /> |
||||
|
<br /> |
||||
|
<br /> |
||||
|
{% endblock %} |
||||
@ -0,0 +1,12 @@ |
|||||
|
{% extends "logs/sidebar.html" %} |
||||
|
{% load bootstrap3 %} |
||||
|
|
||||
|
{% block title %}Statistiques des objets base de données{% endblock %} |
||||
|
|
||||
|
{% block content %} |
||||
|
<h2>Statistiques bdd</h2> |
||||
|
{% include "logs/aff_stats_models.html" with stats_list=stats_list %} |
||||
|
<br /> |
||||
|
<br /> |
||||
|
<br /> |
||||
|
{% endblock %} |
||||
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('machines', '0026_auto_20161026_1348'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.CreateModel( |
||||
|
name='Alias', |
||||
|
fields=[ |
||||
|
('id', models.AutoField(primary_key=True, serialize=False, auto_created=True, verbose_name='ID')), |
||||
|
('alias', models.CharField(max_length=255, help_text='Obligatoire et unique, ne doit pas comporter de points', unique=True)), |
||||
|
('interface_parent', models.ForeignKey(to='machines.Interface')), |
||||
|
], |
||||
|
), |
||||
|
] |
||||
Loading…
Reference in new issue