From 1e91fb303fe4d386251285dc44faa474d7c1d8b1 Mon Sep 17 00:00:00 2001 From: Retspen Date: Wed, 11 Mar 2015 09:07:30 +0200 Subject: [PATCH] Add search in table --- static/css/webvirtcloud.css | 4 ++++ templates/instances.html | 24 +++++++++++++++++++++--- templates/storage.html | 20 ++++++++++++++++++-- 3 files changed, 43 insertions(+), 5 deletions(-) diff --git a/static/css/webvirtcloud.css b/static/css/webvirtcloud.css index 6f8976c..e938c8f 100644 --- a/static/css/webvirtcloud.css +++ b/static/css/webvirtcloud.css @@ -78,4 +78,8 @@ body { .ace_editor { height: 350px; +} + +.search { + margin: 5px; } \ No newline at end of file diff --git a/templates/instances.html b/templates/instances.html index 031b04c..e158ecd 100644 --- a/templates/instances.html +++ b/templates/instances.html @@ -19,6 +19,9 @@
+ {% if request.user.is_superuser %} @@ -31,7 +34,7 @@ - + {% for host, inst in all_host_vms.items %} {% for vm, info in inst.items %} @@ -105,6 +108,9 @@
Actions
{% else %} + @@ -115,8 +121,7 @@ - - + {% for host, vm in all_user_vms.items %} @@ -205,4 +210,17 @@ window.location = "/create/" + compute + "/"; } + {% endblock %} \ No newline at end of file diff --git a/templates/storage.html b/templates/storage.html index 2d46842..3f6e64d 100644 --- a/templates/storage.html +++ b/templates/storage.html @@ -80,7 +80,10 @@ {% if volumes %}
-
Actions
{{ vm.name }}
+ +
@@ -90,7 +93,7 @@ - + {% for volume in volumes %} @@ -202,4 +205,17 @@ } }); + {% endblock %}
#{% trans "Action" %}
{{ forloop.counter }}