From d9c23291debdc3c683eb18d247c09c7ce149ea77 Mon Sep 17 00:00:00 2001 From: catborise Date: Thu, 10 Jun 2021 15:17:53 +0300 Subject: [PATCH] rearrange search functionality --- admin/templates/admin/group_list.html | 4 +--- admin/templates/admin/user_list.html | 4 +--- computes/templates/computes/instances.html | 4 +--- computes/templates/computes/list.html | 9 ++++---- instances/templates/allinstances.html | 8 +++---- nwfilters/templates/nwfilter.html | 23 ++++---------------- nwfilters/templates/nwfilters.html | 25 +++++----------------- static/js/filter-table.js | 8 +++---- storages/templates/storage.html | 24 ++++++--------------- templates/search_block.html | 2 +- 10 files changed, 31 insertions(+), 80 deletions(-) diff --git a/admin/templates/admin/group_list.html b/admin/templates/admin/group_list.html index d101466..1f9562f 100644 --- a/admin/templates/admin/group_list.html +++ b/admin/templates/admin/group_list.html @@ -9,9 +9,7 @@ {% icon 'plus' %} - + {% include 'search_block.html' %}

{% trans "Groups" %}

diff --git a/admin/templates/admin/user_list.html b/admin/templates/admin/user_list.html index f1a6323..9bcb683 100644 --- a/admin/templates/admin/user_list.html +++ b/admin/templates/admin/user_list.html @@ -12,9 +12,7 @@ {% icon 'plus' %} - +{% include 'search_block.html' %} {% endblock page_heading_extra %} {% block content %} diff --git a/computes/templates/computes/instances.html b/computes/templates/computes/instances.html index f69143f..bdac072 100644 --- a/computes/templates/computes/instances.html +++ b/computes/templates/computes/instances.html @@ -14,9 +14,7 @@ {% icon 'plus' %} {% if instances %} - + {% include 'search_block.html' %} {% endif %} {% endblock page_heading_extra %} diff --git a/computes/templates/computes/list.html b/computes/templates/computes/list.html index 8e4b899..9cb3233 100644 --- a/computes/templates/computes/list.html +++ b/computes/templates/computes/list.html @@ -22,9 +22,9 @@ {% else %}
- +
- + @@ -33,7 +33,7 @@ {% for compute in computes %} - + @@ -64,5 +64,6 @@ {% endblock content %} {% block script %} - + + {% endblock script %} diff --git a/instances/templates/allinstances.html b/instances/templates/allinstances.html index 8c29794..8a71a44 100644 --- a/instances/templates/allinstances.html +++ b/instances/templates/allinstances.html @@ -4,7 +4,7 @@ {% load staticfiles %} {% block title %}{% trans "Instances" %}{% endblock %} {% block style %} - + {% endblock %} {% block page_heading %}{% trans "Instances" %}{% endblock page_heading %} @@ -12,9 +12,7 @@ {% if request.user.is_superuser %} {% include 'create_inst_block.html' %} {% endif %} - + {% include 'search_block.html' %} {% endblock page_heading_extra %} {% block content %} @@ -37,7 +35,7 @@ {% endblock content %} {% block script %} - + {% if request.user.is_superuser %} - - + + + + + - - - + + - {% endblock %} diff --git a/templates/search_block.html b/templates/search_block.html index 7f2b515..f80a4ce 100644 --- a/templates/search_block.html +++ b/templates/search_block.html @@ -1,4 +1,4 @@ {% load i18n %}
{% trans "Name" %} {% trans "Status" %} {% trans "Details" %}
{{ compute.name }}