From ecc5cb167e1a584994861d52f206f82d92bbb33f Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Wed, 3 Nov 2021 20:32:17 +0400 Subject: [PATCH] Upload setting in user template only visible if upload enabled Delete book setting only visible if edit book setting is ticked --- cps/templates/config_view_edit.html | 12 ++++++++---- cps/templates/user_edit.html | 30 +++++++++++++++-------------- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/cps/templates/config_view_edit.html b/cps/templates/config_view_edit.html index ebfb5362..32509e88 100644 --- a/cps/templates/config_view_edit.html +++ b/cps/templates/config_view_edit.html @@ -95,17 +95,21 @@ + {% if config.config_upload %}
+ {% endif %}
- +
-
- - +
+
+ + +
diff --git a/cps/templates/user_edit.html b/cps/templates/user_edit.html index c32ab660..2729a168 100644 --- a/cps/templates/user_edit.html +++ b/cps/templates/user_edit.html @@ -108,24 +108,26 @@
{% endif %}
- +
-
- - +
+
+ + +
- {% if not content.role_anonymous() %} -
- - -
-
- - -
- {% endif %} + {% if not content.role_anonymous() %} +
+ + +
+
+ + +
{% endif %} + {% endif %} {% if kobo_support and not content.role_anonymous() %}