From feed13555454335355063f6b06dd9f035c5369ae Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Thu, 10 Mar 2022 11:00:17 +0100 Subject: Disable scopes tree's checkboxes in action views Now users can select clients only in scopes and command views, in any other view we set the scopes tree read only. --- ogcp/templates/actions/add_center.html | 2 ++ ogcp/templates/actions/add_room.html | 2 ++ ogcp/templates/actions/client_details.html | 2 ++ ogcp/templates/actions/delete_center.html | 2 ++ ogcp/templates/actions/delete_client.html | 2 ++ ogcp/templates/actions/delete_image.html | 2 ++ ogcp/templates/actions/delete_room.html | 2 ++ ogcp/templates/actions/hardware.html | 2 ++ ogcp/templates/actions/image_create.html | 2 ++ ogcp/templates/actions/image_restore.html | 2 ++ ogcp/templates/actions/mode.html | 2 ++ ogcp/templates/actions/oglive.html | 2 ++ ogcp/templates/actions/poweroff.html | 2 ++ ogcp/templates/actions/reboot.html | 2 ++ ogcp/templates/actions/session.html | 2 ++ ogcp/templates/actions/setup.html | 2 ++ ogcp/templates/actions/software.html | 2 ++ ogcp/templates/actions/software_list.html | 2 ++ ogcp/templates/actions/wol.html | 2 ++ 19 files changed, 38 insertions(+) (limited to 'ogcp/templates/actions') diff --git a/ogcp/templates/actions/add_center.html b/ogcp/templates/actions/add_center.html index 5e52752..53fbdc0 100644 --- a/ogcp/templates/actions/add_center.html +++ b/ogcp/templates/actions/add_center.html @@ -1,6 +1,8 @@ {% extends 'scopes.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% set sidebar_state = 'disabled' %} + {% block nav_center %} active{% endblock %} {% block nav_center_add %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/add_room.html b/ogcp/templates/actions/add_room.html index a925116..7ccf086 100644 --- a/ogcp/templates/actions/add_room.html +++ b/ogcp/templates/actions/add_room.html @@ -1,6 +1,8 @@ {% extends 'scopes.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% set sidebar_state = 'disabled' %} + {% block nav_room %} active{% endblock %} {% block nav_room_add %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/client_details.html b/ogcp/templates/actions/client_details.html index 62d73c7..f6c2fd1 100644 --- a/ogcp/templates/actions/client_details.html +++ b/ogcp/templates/actions/client_details.html @@ -1,6 +1,8 @@ {% extends parent %} {% import "bootstrap/wtf.html" as wtf %} +{% set sidebar_state = 'disabled' %} + {% block nav_client %} active{% endblock %} {% block nav_client_details %} active{% endblock %} {% block nav_client_add %}active{% endblock %} diff --git a/ogcp/templates/actions/delete_center.html b/ogcp/templates/actions/delete_center.html index d8c0c31..ddb6114 100644 --- a/ogcp/templates/actions/delete_center.html +++ b/ogcp/templates/actions/delete_center.html @@ -1,6 +1,8 @@ {% extends 'scopes.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% set sidebar_state = 'disabled' %} + {% block nav_center %} active{% endblock %} {% block nav_center_delete %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/delete_client.html b/ogcp/templates/actions/delete_client.html index 637be21..80e91c7 100644 --- a/ogcp/templates/actions/delete_client.html +++ b/ogcp/templates/actions/delete_client.html @@ -2,6 +2,8 @@ {% import "bootstrap/wtf.html" as wtf %} {% import "macros.html" as macros %} +{% set sidebar_state = 'disabled' %} + {% block nav_client %} active{% endblock %} {% block nav_client_delete %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/delete_image.html b/ogcp/templates/actions/delete_image.html index 608375f..83cbc41 100644 --- a/ogcp/templates/actions/delete_image.html +++ b/ogcp/templates/actions/delete_image.html @@ -1,6 +1,8 @@ {% extends 'images.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% set sidebar_state = 'disabled' %} + {% block content %} {{ args }} diff --git a/ogcp/templates/actions/delete_room.html b/ogcp/templates/actions/delete_room.html index ae4ca40..6dbb5fc 100644 --- a/ogcp/templates/actions/delete_room.html +++ b/ogcp/templates/actions/delete_room.html @@ -1,6 +1,8 @@ {% extends 'scopes.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% set sidebar_state = 'disabled' %} + {% block nav_room %} active{% endblock %} {% block nav_room_delete %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/hardware.html b/ogcp/templates/actions/hardware.html index 6b6e4d2..87b3285 100644 --- a/ogcp/templates/actions/hardware.html +++ b/ogcp/templates/actions/hardware.html @@ -1,6 +1,8 @@ {% extends 'commands.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% set sidebar_state = 'disabled' %} + {% block nav_inventory %} active{% endblock %} {% block nav_inventory_hardware %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/image_create.html b/ogcp/templates/actions/image_create.html index d549828..1ea8690 100644 --- a/ogcp/templates/actions/image_create.html +++ b/ogcp/templates/actions/image_create.html @@ -1,6 +1,8 @@ {% extends 'commands.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% set sidebar_state = 'disabled' %} + {% block nav_image %} active{% endblock %} {% block nav_image_create %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/image_restore.html b/ogcp/templates/actions/image_restore.html index ddfe245..03b0558 100644 --- a/ogcp/templates/actions/image_restore.html +++ b/ogcp/templates/actions/image_restore.html @@ -2,6 +2,8 @@ {% import "bootstrap/wtf.html" as wtf %} {% import "macros.html" as macros %} +{% set sidebar_state = 'disabled' %} + {% block nav_image %} active{% endblock %} {% block nav_image_restore %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/mode.html b/ogcp/templates/actions/mode.html index 184e046..d4cb9de 100644 --- a/ogcp/templates/actions/mode.html +++ b/ogcp/templates/actions/mode.html @@ -2,6 +2,8 @@ {% import "bootstrap/wtf.html" as wtf %} {% import "macros.html" as macros %} +{% set sidebar_state = 'disabled' %} + {% block nav_setup %} active{% endblock %} {% block nav_setup_set_bootmode %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/oglive.html b/ogcp/templates/actions/oglive.html index cacba18..fc92218 100644 --- a/ogcp/templates/actions/oglive.html +++ b/ogcp/templates/actions/oglive.html @@ -2,6 +2,8 @@ {% import "bootstrap/wtf.html" as wtf %} {% import "macros.html" as macros %} +{% set sidebar_state = 'disabled' %} + {% block nav_setup %} active{% endblock %} {% block nav_setup_set_oglive %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/poweroff.html b/ogcp/templates/actions/poweroff.html index 4f7713c..5a992c7 100644 --- a/ogcp/templates/actions/poweroff.html +++ b/ogcp/templates/actions/poweroff.html @@ -2,6 +2,8 @@ {% import "bootstrap/wtf.html" as wtf %} {% import "macros.html" as macros %} +{% set sidebar_state = 'disabled' %} + {% block nav_power %} active{% endblock %} {% block nav_power_poweroff %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/reboot.html b/ogcp/templates/actions/reboot.html index e8bc30d..0dac1b7 100644 --- a/ogcp/templates/actions/reboot.html +++ b/ogcp/templates/actions/reboot.html @@ -2,6 +2,8 @@ {% import "bootstrap/wtf.html" as wtf %} {% import "macros.html" as macros %} +{% set sidebar_state = 'disabled' %} + {% block nav_power %} active{% endblock %} {% block nav_power_reboot %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/session.html b/ogcp/templates/actions/session.html index 3bbeb10..3e581a1 100644 --- a/ogcp/templates/actions/session.html +++ b/ogcp/templates/actions/session.html @@ -1,6 +1,8 @@ {% extends 'commands.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% set sidebar_state = 'disabled' %} + {% block nav_client %} active{% endblock %} {% block nav_client_session %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html index 84f4d4d..bad143d 100644 --- a/ogcp/templates/actions/setup.html +++ b/ogcp/templates/actions/setup.html @@ -1,5 +1,7 @@ {% extends 'commands.html' %} +{% set sidebar_state = 'disabled' %} + {% block nav_setup %} active{% endblock %} {% block nav_setup_setup %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/software.html b/ogcp/templates/actions/software.html index 9393537..253ea30 100644 --- a/ogcp/templates/actions/software.html +++ b/ogcp/templates/actions/software.html @@ -1,6 +1,8 @@ {% extends 'commands.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% set sidebar_state = 'disabled' %} + {% block nav_inventory %} active{% endblock %} {% block nav_inventory_software %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/software_list.html b/ogcp/templates/actions/software_list.html index 8c50edb..3984be6 100644 --- a/ogcp/templates/actions/software_list.html +++ b/ogcp/templates/actions/software_list.html @@ -1,6 +1,8 @@ {% extends 'commands.html' %} {% import "bootstrap/wtf.html" as wtf %} +{% set sidebar_state = 'disabled' %} + {% block nav_inventory %} active{% endblock %} {% block nav_inventory_software %} active{% endblock %} {% block content %} diff --git a/ogcp/templates/actions/wol.html b/ogcp/templates/actions/wol.html index 9a41a75..b108adb 100644 --- a/ogcp/templates/actions/wol.html +++ b/ogcp/templates/actions/wol.html @@ -2,6 +2,8 @@ {% import "bootstrap/wtf.html" as wtf %} {% import "macros.html" as macros %} +{% set sidebar_state = 'disabled' %} + {% block nav_power %} active{% endblock %} {% block nav_power_wol %} active{% endblock %} {% block content %} -- cgit v1.2.3-18-g5258