diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2023-07-24 11:56:04 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2023-07-24 11:56:07 +0200 |
commit | 9224efb213f92e52557244937b99031dc25f0ce0 (patch) | |
tree | 3c52110e0af15435bbe477959a89481eb7804008 /client | |
parent | prototype for doclist table (diff) | |
parent | Merge branch 'master' of ssh://git.thearcway.org:2222/~/r/mafaldo/scout-subs (diff) | |
download | scout-subs-9224efb213f92e52557244937b99031dc25f0ce0.tar.gz scout-subs-9224efb213f92e52557244937b99031dc25f0ce0.zip |
Merge branch 'master' into dev
Diffstat (limited to '')
-rw-r--r-- | client/templates/client/about.html | 2 | ||||
-rw-r--r-- | client/templates/client/index.html | 22 |
2 files changed, 19 insertions, 5 deletions
diff --git a/client/templates/client/about.html b/client/templates/client/about.html index 2069dfe..b0a3c27 100644 --- a/client/templates/client/about.html +++ b/client/templates/client/about.html @@ -19,7 +19,7 @@ <a href={% url "terms" %}>Termini e condizioni</a> <h5>Licenza</h5> <blockquote> - Copyright (C) 2020-22 Andrea Lepori<br><br> + Copyright (C) 2020-23 Andrea Lepori<br><br> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by 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) { |