Browse Source

Interface - delete an instance

prieto 8 years ago
parent
commit
6bfb862e8e

+ 17
- 0
plugins/webui/templates/admin/admin_delete.html View File

@@ -0,0 +1,17 @@
1
+{% extends "base_backend.html" %}
2
+
3
+{% block title %}- Suppression in {{target.__name__}}{% endblock %}
4
+{% block body %}
5
+<ol class="breadcrumb">
6
+  <li><a href="/{{ root_url }}/admin">Home</a></li>
7
+  <li><a href="/{{ root_url }}/admin/object_create">Suppression</a></li>
8
+  <li class="active">{{target.__name__}}</li>
9
+</ol>
10
+{% if msg is not none %}
11
+{% block msg %} <p style="color:red; font-size:20pt; font-weight:bold">{{ msg }}</p> {% endblock %}
12
+{% endif %}
13
+<h1  class="h1_lodel">Remove a {{target.__name__}} object</h1>
14
+<div style="text-align:center"> <a class="btn btn-default" href="object_delete">Return</a></div>
15
+{% endblock %}
16
+
17
+

+ 21
- 0
plugins/webui/templates/admin/list_classes_delete.html View File

@@ -0,0 +1,21 @@
1
+{% extends "base_backend.html" %}
2
+{% block title %}Lodel 2 - Admin - List of Classes{% endblock %}
3
+{% block body %}
4
+<ol class="breadcrumb">
5
+  <li><a href="/{{ root_url }}/admin">Home</a></li>
6
+  <li class="active">Deletion</li>
7
+</ol>
8
+<h1 class="h1_lodel">Deletion</h1>
9
+<h2>Choose a type to delete an instance</h1>
10
+<ul>
11
+{% for classe in my_classes %}
12
+    {% set abst = '' %}
13
+    {% if not classe.is_abstract() %}
14
+    <li> <a href="class_delete?classname={{ classe.__name__ }}" target="_blank">{{ classe.__name__ }} </a></li>
15
+    {% endif %}
16
+    {% endfor %}
17
+</ul>
18
+<div>
19
+    <a href="{{ root_url }}/admin/">Return</a>
20
+</div>
21
+{% endblock %}

+ 20
- 0
plugins/webui/templates/admin/show_class_delete.html View File

@@ -0,0 +1,20 @@
1
+{% extends "base_backend.html" %}
2
+{% block title %}Lodel 2 - Admin - Class {{ target.__name__ }} {% endblock %}
3
+{% block body %} 
4
+<ol class="breadcrumb">
5
+  <li><a href="/{{ root_url }}/admin">Home</a></li>
6
+  <li><a href="/{{ root_url }}/admin/classes_admin">Deletion</a></li>
7
+  <li class="active">{{target.__name__  }}</li>
8
+</ol>
9
+<h1 class="h1_lodel">Deletion - {{target.__name__  }} </h1>
10
+
11
+ {% if not target.is_abstract() %}
12
+    {% set objects = target.get(None) %}
13
+    <ul>
14
+    {% for obj in objects %}
15
+        <li><a href="delete?classname={{ target.__name__  }}&lodel_id={{ obj.uid() }}" target="_blank">{{ obj.uid() }} </a></li>
16
+    {% endfor %}
17
+    </ul>
18
+ {% endif %}
19
+
20
+{% endblock %} 

Loading…
Cancel
Save