diff options
author | Andrea Lepori <aleporia@gmail.com> | 2023-06-15 19:03:08 +0200 |
---|---|---|
committer | Andrea Lepori <aleporia@gmail.com> | 2023-06-15 19:03:08 +0200 |
commit | 1d812ab14e83274c1d4b8f1ec2631cac6a102ff2 (patch) | |
tree | aba58e9514ddf588382fc027961b7464c4e26a1c /client | |
parent | fix missing all query request (diff) | |
parent | change lazyload library to work with iOS (diff) | |
download | scout-subs-1d812ab14e83274c1d4b8f1ec2631cac6a102ff2.tar.gz scout-subs-1d812ab14e83274c1d4b8f1ec2631cac6a102ff2.zip |
Merge branch 'master' of ssh://git.thearcway.org:2222/~/r/mafaldo/scout-subs
Diffstat (limited to 'client')
-rw-r--r-- | client/templates/client/index.html | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/client/templates/client/index.html b/client/templates/client/index.html index 96bd23b..ce71127 100644 --- a/client/templates/client/index.html +++ b/client/templates/client/index.html @@ -366,7 +366,11 @@ <div class="col s12"> <div class="card"> <div class="card-image"> - {% if doc.signed_doc %} <img class="lazyload" data-src="{{ sign_doc_file.0 }}{{ doc.id }}{{ sign_doc_file.1 }}"> {% endif %} + {% if doc.signed_doc %} + <img class="lazy" data-src="{{ sign_doc_file.0 }}{{ doc.id }}{{ sign_doc_file.1 }}"> + {% else %} + <p>Foto della conferma firmata non caricata</p> + {% endif %} </div> </div> </div> @@ -376,7 +380,11 @@ <div class="col s12"> <div class="card"> <div class="card-image"> - {% if doc.medical_data.health_care_certificate %}<img class="lazyload" data-src="{{ health_file.0 }}{{ doc.id }}{{ health_file.1}}">{% endif %} + {% if doc.medical_data.health_care_certificate %} + <img class="lazy" data-src="{{ health_file.0 }}{{ doc.id }}{{ health_file.1}}"> + {% else %} + <p>Foto della tessera della cassa malati non caricata</p> + {% endif %} </div> </div> </div> @@ -385,7 +393,11 @@ <div class="col s12"> <div class="card"> <div class="card-image"> - {% if doc.medical_data.vac_certificate %}<img class="lazyload" data-src="{{ vac_file.0 }}{{ doc.id }}{{ vac_file.1}}">{% endif %} + {% if doc.medical_data.vac_certificate %} + <img class="lazy" data-src="{{ vac_file.0 }}{{ doc.id }}{{ vac_file.1}}"> + {% else %} + <p>Foto del certificato di vacinazione non caricato</p> + {% endif %} </div> </div> </div> @@ -444,7 +456,9 @@ $(document).ready(function(){ $('#modal_approve'+docid).modal('open'); } {% endif %} - lazyload(); + var lazyLoadInstance = new LazyLoad({ + // Your custom settings go here + }); }); {% if user.is_staff or perms.client.approved %} $('*').click(function(event) { |