From 400649f6bb8d0b11e51aa1fec00d82972a785723 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 19 Oct 2021 16:42:59 +0300 Subject: manage_resource.html: Toggle the "is open to public" radio buttons --- wqflask/wqflask/templates/admin/manage_resource.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/admin/manage_resource.html b/wqflask/wqflask/templates/admin/manage_resource.html index 80dfc8ee..1002ac45 100644 --- a/wqflask/wqflask/templates/admin/manage_resource.html +++ b/wqflask/wqflask/templates/admin/manage_resource.html @@ -24,8 +24,12 @@ {% endif %} {% endif %} - -
+ + +
+
+ +
@@ -35,15 +39,16 @@
{% if DATA_ACCESS > DataRole.VIEW and ADMIN_STATUS > AdminRole.NOT_ADMIN %} + {% set is_open_to_public = DataRole(resource_info.get('default_mask').get('data')) > DataRole.NO_ACCESS %}
@@ -51,7 +56,7 @@
- +
{% endif %} @@ -92,7 +97,7 @@
{% endif %} -
+
-- cgit v1.2.3