SLA and Service Directory code added
[myslice.git] / sla / templates / violations.html
diff --git a/sla/templates/violations.html b/sla/templates/violations.html
new file mode 100755 (executable)
index 0000000..88c3471
--- /dev/null
@@ -0,0 +1,23 @@
+<div class="col-md-6" id="violations" style="align:right;">
+
+    <table class="table table-hover">
+        <tr>
+            <th>#</th>
+            <th>Date</th>
+            <th>Actual value</th>
+        </tr>
+
+        {% for v in violations %}
+        <tr>
+            <td>{{forloop.counter}}</td>
+            <td>{{v.datetime}}</td>
+            <td>{{ v.actual_value|floatformat:"0" }}</td>
+        </tr>
+        {% empty %}
+        <tr><td colspan="3">No violations</td></tr>
+        {% endfor %}
+    </table>
+</div>
+<div>
+<a class="btn btn-default btn-back">Close</a>
+</div>