aboutsummaryrefslogtreecommitdiffstats
path: root/client/templates
diff options
context:
space:
mode:
authorAndrea Lepori <aleporia@gmail.com>2023-07-27 12:51:22 +0200
committerAndrea Lepori <aleporia@gmail.com>2023-07-27 12:51:22 +0200
commit6062edc3e830421bfe84f01945ca5340f28fdd9e (patch)
tree763bf456f261dec2ded8ba42707b8964bc5cf5b9 /client/templates
parentuser list and branca tansfer with new uc (diff)
downloadscout-subs-6062edc3e830421bfe84f01945ca5340f28fdd9e.tar.gz
scout-subs-6062edc3e830421bfe84f01945ca5340f28fdd9e.zip
check complete data before doc creation
Diffstat (limited to 'client/templates')
-rw-r--r--client/templates/client/index.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/client/templates/client/index.html b/client/templates/client/index.html
index d0fcc9b..8086ed5 100644
--- a/client/templates/client/index.html
+++ b/client/templates/client/index.html
@@ -38,7 +38,6 @@
<p style="text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: {{data.2}};">{{data.0.first_name}} {{data.0.last_name}}<a href="{% url "edit_user" code=data.0.code %}" class="btn-flat"><i class="material-icons">edit</i></a></p>
<div style="font-size: 0.5em; line-height: normal;">{{data.0.born_date}}</div>
</span>
- <a id="add" class="btn-floating halfway-fab btn-large {{color}}" href="{% url 'create' code=data.0.code %}"><i class="material-icons">add</i></a>
{% if data.1|length > 0 %}
<ul class="collapsible">
{% for doc in data.1 %}
@@ -420,13 +419,22 @@
</li>
{% endfor %}
</ul>
-{% else %}
+{% elif data.3 == False %}
<div class="row">
<div class="col s12">
Nessun documento per questa persona
</div>
</div>
{% endif %}
+{% if data.3 %}
+<div class="row">
+ <div class="col s12">
+ <p class="red lighten-1">I dati per questa persona non sono completi. Per poter creare una nuova iscrizione completare tutti i dati.</p>
+ </div>
+</div>
+{% else %}
+<a id="add" class="btn-floating halfway-fab btn-large {{color}}" href="{% url 'create' code=data.0.code %}"><i class="material-icons">add</i></a>
+{% endif %}
</div>
</div>
</div>