diff options
author | Andrea Lepori <aleporia@gmail.com> | 2023-09-13 12:54:38 +0200 |
---|---|---|
committer | Andrea Lepori <aleporia@gmail.com> | 2023-09-13 12:54:39 +0200 |
commit | 3c4eccb13b7b261758fd6ef709d2a06ea0fb47df (patch) | |
tree | ade70004311698f52c8e42a745b8c20c508123d8 /client/templates | |
parent | shorter approve pdf and updated terms (diff) | |
download | scout-subs-3c4eccb13b7b261758fd6ef709d2a06ea0fb47df.tar.gz scout-subs-3c4eccb13b7b261758fd6ef709d2a06ea0fb47df.zip |
remove check for approved user
Diffstat (limited to '')
-rw-r--r-- | client/templates/client/index.html | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/client/templates/client/index.html b/client/templates/client/index.html index 2e714cd..1acdd8c 100644 --- a/client/templates/client/index.html +++ b/client/templates/client/index.html @@ -469,10 +469,9 @@ {% block script %} $(document).ready(function(){ - {% if user.is_staff or perms.client.approved %} $('.collapsible').collapsible(); $('.modal').modal(); - {% if docs|length == 0 and not all_invalid %} + {% if no_docs and not all_invalid %} $('.tap-target').tapTarget(); $('.tap-target').tapTarget('open'); {% endif %} @@ -486,12 +485,11 @@ $(document).ready(function(){ if (docid != undefined) { $('#modal_approve'+docid).modal('open'); } - {% endif %} var lazyLoadInstance = new LazyLoad({ // Your custom settings go here }); }); -{% if user.is_staff or perms.client.approved %} + {% if not all_invalid %} $('*').click(function(event) { if (this === event.target) { @@ -499,12 +497,12 @@ $(document).ready(function(){ } }); {% endif %} - function send(id) { - var form = document.getElementById('form') - var action = document.getElementById('action') - action.setAttribute('value', id); - history.pushState(null, null, '/'); - form.submit() - } -{% endif %} + +function send(id) { + var form = document.getElementById('form') + var action = document.getElementById('action') + action.setAttribute('value', id); + history.pushState(null, null, '/'); + form.submit() +} {% endblock %} |