aboutsummaryrefslogtreecommitdiffstats
path: root/client/templates
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-10-30 20:47:10 +0100
committerAndrea Lepori <alepori@student.ethz.ch>2020-10-30 20:47:10 +0100
commit80653d69a0dd7bb6a089b6fda05fbe98ff7ac9fb (patch)
tree2cd0d469857713b59a0c92271aee0b349aaa5b65 /client/templates
parentremove default hide error fields (diff)
downloadscout-subs-80653d69a0dd7bb6a089b6fda05fbe98ff7ac9fb.tar.gz
scout-subs-80653d69a0dd7bb6a089b6fda05fbe98ff7ac9fb.zip
renaming, max partecipant number, only "capi" docs
Diffstat (limited to 'client/templates')
-rw-r--r--client/templates/client/doc_create.html123
-rw-r--r--client/templates/client/doc_edit.html6
-rw-r--r--client/templates/client/index.html28
3 files changed, 91 insertions, 66 deletions
diff --git a/client/templates/client/doc_create.html b/client/templates/client/doc_create.html
index 18940d8..04f08e6 100644
--- a/client/templates/client/doc_create.html
+++ b/client/templates/client/doc_create.html
@@ -1,9 +1,9 @@
{% extends 'registration/base_client.html' %}
-{% block title %}Crea Documento{% endblock %}
+{% block title %}Crea iscrizione{% endblock %}
{% block breadcrumb %}
- <a href="#!" class="breadcrumb hide-on-med-and-down">Crea Documento</a>
+ <a href="#!" class="breadcrumb hide-on-med-and-down">Crea Iscrizione</a>
{% endblock %}
{% block content %}
@@ -23,7 +23,7 @@
<option value="{{doctype.id}}">{{doctype.name}}</option>
{% endfor %}
</select>
- <label>Documento</label>
+ <label>Iscrizione</label>
</div>
</div>
<a class="btn waves-effect waves-light {{color}}" onclick="window.history.back();" >
@@ -33,75 +33,100 @@
<i class="material-icons right">navigate_next</i>
</a>
{% else %}
- <input type="hidden" name="doctype" value="{{doctype.id}}">
- <div class="row">
- <div class="input-field col s12">
- <select>
- <option disabled selected>{{doctype.name}}</option>
- </select>
- <label>Documento</label>
+ <input type="hidden" name="doctype" value="{{doctype.id}}">
+ <div class="row">
+ <div class="input-field col s12">
+ <select>
+ <option disabled selected>{{doctype.name}}</option>
+ </select>
+ <label>Iscrizione</label>
+ </div>
</div>
- </div>
- {% if personal_data %}
+ {% if no_free_places%}
<div class="row">
<div class="col s12">
<div class="card {{color}}">
<div class="card-content">
<p style="color:white"><b>
- Il documento conterr&agrave; le informazioni personali, prego verificare che siano corrette e aggiornate
+ Siamo spiacenti abbiamo esaurito i posti disponibili per questa iscrizione.
</b></p>
</div>
</div>
</div>
</div>
- {% endif %}
- {% if medical_data %}
<div class="row">
<div class="col s12">
- <div class="card {{color}}">
- <div class="card-content">
- <p style="color:white"><b>
- Il documento conterr&agrave; le informazioni mediche, prego verificare che siano corrette e aggiornate
- </b></p>
+ <br>
+ <a class="btn waves-effect waves-light {{color}}" onclick="window.history.back();" >
+ <i class="material-icons left">navigate_before</i>Indietro
+ </a>
+ <a class="btn waves-effect waves-light {{color}}" href="/" >Annulla
+ <i class="material-icons right">cancel</i>
+ </a>
+ </div>
+ </div>
+ {% else %}
+ {% if personal_data %}
+ <div class="row">
+ <div class="col s12">
+ <div class="card {{color}}">
+ <div class="card-content">
+ <p style="color:white"><b>
+ Il documento conterr&agrave; le informazioni personali, prego verificare che siano corrette e aggiornate
+ </b></p>
+ </div>
</div>
</div>
</div>
- </div>
- {% endif %}
- {% if custom_message %}
- <div class="row">
- <div class="col s12">
- <div class="card {{color}}">
- <div class="card-content">
- <p style="color:white"><b>
- {{custom_message_text}}
- </b></p>
+ {% endif %}
+ {% if medical_data %}
+ <div class="row">
+ <div class="col s12">
+ <div class="card {{color}}">
+ <div class="card-content">
+ <p style="color:white"><b>
+ Il documento conterr&agrave; le informazioni mediche, prego verificare che siano corrette e aggiornate
+ </b></p>
+ </div>
</div>
</div>
</div>
- </div>
- {% endif %}
- {% if custom_data %}
- {% for key in keys %}
+ {% endif %}
+ {% if custom_message %}
<div class="row">
- <div class="input-field col s12">
- <input value="{{key.1}}" name="{{key.0.id}}" id="{{key.0.id}}" type="text">
- <label for="{{key.0.id}}">{{key.0.key}}</label>
+ <div class="col s12">
+ <div class="card {{color}}">
+ <div class="card-content">
+ <p style="color:white"><b>
+ {{custom_message_text}}
+ </b></p>
+ </div>
+ </div>
</div>
</div>
- {% endfor %}
- {% endif %}
- <div class="row">
- <div class="col s12">
- <br>
- <a class="btn waves-effect waves-light {{color}}" onclick="window.history.back();" >
- <i class="material-icons left">navigate_before</i>Indietro
- </a>
- <a class="btn waves-effect waves-light {{color}}" onclick="send('save')" >Crea
- <i class="material-icons right">create</i>
- </a>
+ {% endif %}
+ {% if custom_data %}
+ {% for key in keys %}
+ <div class="row">
+ <div class="input-field col s12">
+ <input value="{{key.1}}" name="{{key.0.id}}" id="{{key.0.id}}" type="text">
+ <label for="{{key.0.id}}">{{key.0.key}}</label>
+ </div>
+ </div>
+ {% endfor %}
+ {% endif %}
+ <div class="row">
+ <div class="col s12">
+ <br>
+ <a class="btn waves-effect waves-light {{color}}" onclick="window.history.back();" >
+ <i class="material-icons left">navigate_before</i>Indietro
+ </a>
+ <a class="btn waves-effect waves-light {{color}}" onclick="send('save')" >Crea
+ <i class="material-icons right">create</i>
+ </a>
+ </div>
</div>
- </div>
+ {% endif %}
{% endif %}
</form>
</div>
diff --git a/client/templates/client/doc_edit.html b/client/templates/client/doc_edit.html
index 278f34c..f7e8f72 100644
--- a/client/templates/client/doc_edit.html
+++ b/client/templates/client/doc_edit.html
@@ -1,9 +1,9 @@
{% extends 'registration/base_client.html' %}
-{% block title %}Modifica documento{% endblock %}
+{% block title %}Modifica iscrizione{% endblock %}
{% block breadcrumb %}
- <a href="#!" class="breadcrumb hide-on-med-and-down">Modifica Documento</a>
+ <a href="#!" class="breadcrumb hide-on-med-and-down">Modifica iscrizione</a>
{% endblock %}
{% block content %}
@@ -19,7 +19,7 @@
<select>
<option disabled selected>{{doc.document_type.name}}</option>
</select>
- <label>Documento</label>
+ <label>Iscrizione</label>
</div>
</div>
{% if personal_data %}
diff --git a/client/templates/client/index.html b/client/templates/client/index.html
index b63fa49..b5d1135 100644
--- a/client/templates/client/index.html
+++ b/client/templates/client/index.html
@@ -5,8 +5,8 @@
{% block content %}
<div class="tap-target {{color}}" data-target="add">
<div class="tap-target-content">
- <h5 style="color:white">Aggiungi un documento</h5>
- <p style="color:white">Usa questo bottone per creare un nuovo documento</p>
+ <h5 style="color:white">Aggiungi un'iscrizione</h5>
+ <p style="color:white">Usa questo bottone per creare una nuova iscrizione</p>
</div>
</div>
@@ -36,17 +36,17 @@
{% if doc.0.status == "wait" %}
<div class="hide-on-med-and-down">
<a class="waves-effect waves-light btn {{color}}" onclick="send('f{{doc.0.id}}')"><i class="material-icons left">file_download</i> Scarica documento per approvazione</a>
- <a class="waves-effect waves-light btn {{color}}" onclick="send('d{{doc.0.id}}')"><i class="material-icons left">delete</i> Elimina documento</a>
- <a class="waves-effect waves-light btn {{color}}" onclick="send('e{{doc.0.id}}')"><i class="material-icons left">edit</i> Modifica documento</a>
+ <a class="waves-effect waves-light btn {{color}}" onclick="send('d{{doc.0.id}}')"><i class="material-icons left">delete</i> Elimina iscrizione</a>
+ <a class="waves-effect waves-light btn {{color}}" onclick="send('e{{doc.0.id}}')"><i class="material-icons left">edit</i> Modifica iscrizione</a>
</div>
<div style="margin-bottom: 0px;" class="hide-on-large-only row">
<a class="col s12 waves-effect waves-light btn {{color}}" onclick="send('f{{doc.0.id}}')"><i class="material-icons left">file_download</i> Scarica documento per approvazione</a>
<br>
<br>
- <a class="col s12 waves-effect waves-light btn {{color}}" onclick="send('d{{doc.0.id}}')"><i class="material-icons left">delete</i> Elimina documento</a>
+ <a class="col s12 waves-effect waves-light btn {{color}}" onclick="send('d{{doc.0.id}}')"><i class="material-icons left">delete</i> Elimina iscrizione</a>
<br>
<br>
- <a class="col s12 waves-effect waves-light btn {{color}}" onclick="send('e{{doc.0.id}}')"><i class="material-icons left">edit</i> Modifica documento</a>
+ <a class="col s12 waves-effect waves-light btn {{color}}" onclick="send('e{{doc.0.id}}')"><i class="material-icons left">edit</i> Modifica iscrizione</a>
</div>
<br>
<br>
@@ -54,8 +54,8 @@
<div id="modal{{doc.0.id}}" class="modal">
<div class="modal-content">
<h4>Attenzione</h4>
- <p>Una volta approvato il documento non potrà più essere modificato.<br>
- Sei sicuro di volerlo approvare?
+ <p>Una volta approvata l'iscrizione non potrà più essere modificata.<br>
+ Sei sicuro di volerla approvare?
</p>
</div>
<div class="modal-footer">
@@ -64,18 +64,18 @@
</div>
</div>
<div class="hide-on-med-and-down">
- <a class="waves-effect waves-light btn {{color}} modal-trigger" href="#modal{{doc.0.id}}"><i class="material-icons left">check</i>Approva documento</a>
- <a class="waves-effect waves-light btn {{color}}" onclick="send('d{{doc.0.id}}')"><i class="material-icons left">delete</i>Elimina documento</a>
- <a class="waves-effect waves-light btn {{color}}" onclick="send('e{{doc.0.id}}')"><i class="material-icons left">edit</i>Modifica documento</a>
+ <a class="waves-effect waves-light btn {{color}} modal-trigger" href="#modal{{doc.0.id}}"><i class="material-icons left">check</i>Approva iscrizione</a>
+ <a class="waves-effect waves-light btn {{color}}" onclick="send('d{{doc.0.id}}')"><i class="material-icons left">delete</i>Elimina iscrizione</a>
+ <a class="waves-effect waves-light btn {{color}}" onclick="send('e{{doc.0.id}}')"><i class="material-icons left">edit</i>Modifica iscrizione</a>
</div>
<div style="margin-bottom: 0px;" class="hide-on-large-only row">
- <a class="col s12 waves-effect waves-light btn {{color}} modal-trigger" href="#modal{{doc.0.id}}"><i class="material-icons left">check</i>Approva documento</a>
+ <a class="col s12 waves-effect waves-light btn {{color}} modal-trigger" href="#modal{{doc.0.id}}"><i class="material-icons left">check</i>Approva iscrizione</a>
<br>
<br>
- <a class="col s12 waves-effect waves-light btn {{color}}" onclick="send('d{{doc.0.id}}')"><i class="material-icons left">delete</i>Elimina documento</a>
+ <a class="col s12 waves-effect waves-light btn {{color}}" onclick="send('d{{doc.0.id}}')"><i class="material-icons left">delete</i>Elimina iscrizione</a>
<br>
<br>
- <a class="col s12 waves-effect waves-light btn {{color}}" onclick="send('e{{doc.0.id}}')"><i class="material-icons left">edit</i>Modifica documento</a>
+ <a class="col s12 waves-effect waves-light btn {{color}}" onclick="send('e{{doc.0.id}}')"><i class="material-icons left">edit</i>Modifica iscrizione</a>
</div>
<br>
<br>