aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--accounts/templates/accounts/index.html27
-rw-r--r--accounts/templates/accounts/user_edit.html230
2 files changed, 136 insertions, 121 deletions
diff --git a/accounts/templates/accounts/index.html b/accounts/templates/accounts/index.html
index 921cc81..aaba6a8 100644
--- a/accounts/templates/accounts/index.html
+++ b/accounts/templates/accounts/index.html
@@ -59,6 +59,33 @@
</div>
</div>
</div>
+ <div class="card-panel">
+ <form action="{% url 'personal'%}" id="form3" method="post">
+ {% csrf_token %}
+ <input type="hidden" name="action" id="action" value="css">
+ <div class="row">
+ <div class="col s12">
+ <h5>Opzioni di visualizzazione</h5>
+ </div>
+ </div>
+ <div class="row">
+ <div class="switch col s12">
+ Stile
+ <label>
+ Vecchio
+ <input name="css" type="checkbox" {{css_check}}>
+ <span class="lever"></span>
+ Nuovo (beta, potrebbero esserci problemi di visualizzazione)
+ </label>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col s12">
+ <button onclick="document.getElementById(form3).submit()" class="btn waves-effect waves-light {{color}}">Applica</button>
+ </div>
+ </div>
+ </form>
+ </div>
</div>
</div>
{% endblock %}
diff --git a/accounts/templates/accounts/user_edit.html b/accounts/templates/accounts/user_edit.html
index a2d0b3b..6e000c1 100644
--- a/accounts/templates/accounts/user_edit.html
+++ b/accounts/templates/accounts/user_edit.html
@@ -20,94 +20,88 @@
<div class="col l8 offset-l2 s12">
<div class="card-panel">
<div class="row">
- <div class="col 12">
- <input type="hidden" name="action" id="action">
- <input type="hidden" name="delete_vac" id="delete_vac">
- <input type="hidden" name="delete_health" id="delete_health">
- {% csrf_token %}
- <div class="row">
- <div class="input-field col l4 s12">
- <input name="first_name" value="{{first_name}}" id="first_name" type="text" {{validation_dic.first_name|safe}} {{midata_disable}}>
- <label for="first_name">Nome</label>
- <span class="helper-text" data-error="Campo richiesto"></span>
- </div>
- <div class="input-field col l4 s12">
- <input name="last_name" value="{{last_name}}" id="last_name" type="text" {{validation_dic.last_name|safe}} {{midata_disable}}>
- <label for="last_name">Cognome</label>
- <span class="helper-text" data-error="Campo richiesto"></span>
- </div>
- <div class="input-field col l4 s12">
- <input name="birth_date" value="{{birth_date}}" id="birth_date" type="text" {{validation_dic.birth_date|safe}} {{midata_disable}}>
- <label for="birth_date">Data di nascita</label>
- <span class="helper-text" data-error="Campo richiesto"></span>
- </div>
- </div>
- <div class="row">
- <div class="input-field col l4 s12">
- <select name="branca">
- <option value="" disabled {{branca_default}}>Nessuna</option>
- <option value="diga" {{branca_castorini}}>Castorini</option>
- <option value="muta" {{branca_lupetti}}>Lupetti</option>
- <option value="reparto" {{branca_esploratori}}>Esploratori</option>
- <option value="posto" {{branca_pionieri}}>Pionieri</option>
- <option value="clan" {{branca_rover}}>Rover</option>
- </select>
- <label>Branca<i style="font-size: 1rem; position: absolute; bottom: 0px;" class="material-icons right tooltipped" data-position="right" data-tooltip="<p class='left-align'>Nello scoutismo la branca è la divisione per età,<br>la quale segue le classi scolastiche.<br><br>Castorini: 1a-2a elementare<br>Lupetti: 3a-5a elementare<br>Esploratori: 1a-4a media<br>Pionieri: 1a-2a superiore<br>Rover: 3a+ superiore</p>">info_outline</i>
- </label>
- </div>
- <div class="input-field col l4 s12">
- <input value="{{parent_name}}" name="parent_name" id="parent_name" type="text" {{validation_dic.parent_name|safe}}>
- <label for="parent_name">Nome dei genitori</label>
- <span class="helper-text" data-error="Campo richiesto"></span>
- </div>
- <div class="input-field col l4 s12">
- <input value="{{avs_number}}" name="avs_number" id="avs_number" type="text" placeholder="756.1234.5678.90" {{validation_dic.avs_number|safe}}>
- <label for="avs_number" data-error="wrong">Numero AVS</label>
- <span class="helper-text" data-error="Campo richiesto"></span>
- </div>
- <div class="input-field col l4 s12">
- <input value="{{via}}" name="via" id="via" type="text" {{validation_dic.via|safe}} {{midata_disable}}>
- <label for="via">Via e numero</label>
- <span class="helper-text" data-error="Campo richiesto"></span>
- </div>
- <div class="input-field col l4 s12">
- <input value="{{cap}}" name="cap" id="cap" type="text" {{validation_dic.cap|safe}} {{midata_disable}}>
- <label for="cap">CAP</label>
- <span class="helper-text" data-error="Campo richiesto"></span>
- </div>
- <div class="input-field col l4 s12">
- <input value="{{country}}" name="country" id="country" type="text" {{validation_dic.country|safe}} {{midata_disable}}>
- <label for="country">Comune</label>
- <span class="helper-text" data-error="Campo richiesto"></span>
- </div>
- <div class="input-field col l4 s12">
- <input value="{{nationality}}" name="nationality" id="nationality" type="text" {{validation_dic.nationality|safe}}>
- <label for="nationality">Nazionalit&agrave;</label>
- <span class="helper-text" data-error="Campo richiesto"></span>
- </div>
- <div class="input-field col l4 s12">
- <input value="{{phone}}" name="phone" id="phone" type="text" {{validation_dic.phone|safe}}>
- <label for="phone">Numero di cellulare</label>
- <span class="helper-text" data-error="Campo richiesto"></span>
- </div>
- <div class="input-field col l4 s12">
- <input value="{{home_phone}}" name="home_phone" id="home_phone" type="text" {{validation_dic.home_phone|safe}}>
- <label for="home_phone">Telefono di casa</label>
- </div>
- <div class="input-field col l8 s12">
- <input value="{{school}}" name="school" id="school" type="text" {{validation_dic.school|safe}}>
- <label for="school">Scuola frequentata (o professione)</label>
- </div>
- <div class="input-field col l4 s12">
- <input value="{{year}}" name="year" id="year" type="text" {{validation_dic.year|safe}}>
- <label for="year">Classe scolastica</label>
- </div>
- </div>
- <div class="fixed-action-btn">
- <a class="btn-floating btn-large {{color}}" onclick="send('save')">
- <i class="large material-icons">save</i>
- </a>
- </div>
+ <input type="hidden" name="action" id="action">
+ <input type="hidden" name="delete_vac" id="delete_vac">
+ <input type="hidden" name="delete_health" id="delete_health">
+ {% csrf_token %}
+ <div class="input-field col l4 s12">
+ <input name="first_name" value="{{first_name}}" id="first_name" type="text" {{validation_dic.first_name|safe}} {{midata_disable}}>
+ <label for="first_name">Nome</label>
+ <span class="helper-text" data-error="Campo richiesto"></span>
+ </div>
+ <div class="input-field col l4 s12">
+ <input name="last_name" value="{{last_name}}" id="last_name" type="text" {{validation_dic.last_name|safe}} {{midata_disable}}>
+ <label for="last_name">Cognome</label>
+ <span class="helper-text" data-error="Campo richiesto"></span>
+ </div>
+ <div class="input-field col l4 s12">
+ <input name="birth_date" value="{{birth_date}}" id="birth_date" type="text" {{validation_dic.birth_date|safe}} {{midata_disable}}>
+ <label for="birth_date">Data di nascita</label>
+ <span class="helper-text" data-error="Campo richiesto"></span>
+ </div>
+ <div class="input-field col l4 s12">
+ <select name="branca">
+ <option value="" disabled {{branca_default}}>Nessuna</option>
+ <option value="diga" {{branca_castorini}}>Castorini</option>
+ <option value="muta" {{branca_lupetti}}>Lupetti</option>
+ <option value="reparto" {{branca_esploratori}}>Esploratori</option>
+ <option value="posto" {{branca_pionieri}}>Pionieri</option>
+ <option value="clan" {{branca_rover}}>Rover</option>
+ </select>
+ <label>Branca<i style="font-size: 1rem; position: absolute; bottom: 0px;" class="material-icons right tooltipped" data-position="right" data-tooltip="<p class='left-align'>Nello scoutismo la branca è la divisione per età,<br>la quale segue le classi scolastiche.<br><br>Castorini: 1a-2a elementare<br>Lupetti: 3a-5a elementare<br>Esploratori: 1a-4a media<br>Pionieri: 1a-2a superiore<br>Rover: 3a+ superiore</p>">info_outline</i>
+ </label>
+ </div>
+ <div class="input-field col l4 s12">
+ <input value="{{parent_name}}" name="parent_name" id="parent_name" type="text" {{validation_dic.parent_name|safe}}>
+ <label for="parent_name">Nome dei genitori</label>
+ <span class="helper-text" data-error="Campo richiesto"></span>
+ </div>
+ <div class="input-field col l4 s12">
+ <input value="{{avs_number}}" name="avs_number" id="avs_number" type="text" placeholder="756.1234.5678.90" {{validation_dic.avs_number|safe}}>
+ <label for="avs_number" data-error="wrong">Numero AVS</label>
+ <span class="helper-text" data-error="Campo richiesto"></span>
+ </div>
+ <div class="input-field col l4 s12">
+ <input value="{{via}}" name="via" id="via" type="text" {{validation_dic.via|safe}} {{midata_disable}}>
+ <label for="via">Via e numero</label>
+ <span class="helper-text" data-error="Campo richiesto"></span>
+ </div>
+ <div class="input-field col l4 s12">
+ <input value="{{cap}}" name="cap" id="cap" type="text" {{validation_dic.cap|safe}} {{midata_disable}}>
+ <label for="cap">CAP</label>
+ <span class="helper-text" data-error="Campo richiesto"></span>
+ </div>
+ <div class="input-field col l4 s12">
+ <input value="{{country}}" name="country" id="country" type="text" {{validation_dic.country|safe}} {{midata_disable}}>
+ <label for="country">Comune</label>
+ <span class="helper-text" data-error="Campo richiesto"></span>
+ </div>
+ <div class="input-field col l4 s12">
+ <input value="{{nationality}}" name="nationality" id="nationality" type="text" {{validation_dic.nationality|safe}}>
+ <label for="nationality">Nazionalit&agrave;</label>
+ <span class="helper-text" data-error="Campo richiesto"></span>
+ </div>
+ <div class="input-field col l4 s12">
+ <input value="{{phone}}" name="phone" id="phone" type="text" {{validation_dic.phone|safe}}>
+ <label for="phone">Numero di cellulare</label>
+ <span class="helper-text" data-error="Campo richiesto"></span>
+ </div>
+ <div class="input-field col l4 s12">
+ <input value="{{home_phone}}" name="home_phone" id="home_phone" type="text" {{validation_dic.home_phone|safe}}>
+ <label for="home_phone">Telefono di casa</label>
+ </div>
+ <div class="input-field col l8 s12">
+ <input value="{{school}}" name="school" id="school" type="text" {{validation_dic.school|safe}}>
+ <label for="school">Scuola frequentata (o professione)</label>
+ </div>
+ <div class="input-field col l4 s12">
+ <input value="{{year}}" name="year" id="year" type="text" {{validation_dic.year|safe}}>
+ <label for="year">Classe scolastica</label>
+ </div>
+ <div class="fixed-action-btn">
+ <a class="btn-floating btn-large {{color}}" onclick="send('save')">
+ <i class="large material-icons">save</i>
+ </a>
</div>
</div>
</div>
@@ -130,7 +124,7 @@
</div>
<div class="input-field col l3 s12">
<input name="emer_relative" value="{{emer_relative}}" id="emer_relative" type="text" {{validation_dic.emer_relative|safe}}>
- <label for="emer_releative">Parentela</label>
+ <label for="emer_relative">Parentela</label>
<span class="helper-text" data-error="Campo richiesto"></span>
</div>
<div class="input-field col l3 s12">
@@ -263,44 +257,38 @@
<h6>Allegati</h6>
</div>
<div class="col s12">
- <div class="card">
- <div class="card-content">
- Certificato di vacinazione
- <div class="file-field input-field">
- <div class="btn {{color}}">
- <span><i class="material-icons left">file_upload</i>File</span>
- <input type="file" name="vac_certificate" id="vac_certificate" multiple>
- </div>
- <div class="file-path-wrapper">
- <input id="vac_file" value="{{vac_certificate}}" class="file-path" type="text" placeholder="Certificato di vacinazione">
- </div>
- </div>
- {% if vac_certificate != ''%}
- <a class="btn {{color}}" onclick="send('download_vac')"><i class="material-icons left">file_download</i>Download</a>
- <a class="btn {{color}}" onclick="delete_vac()"><i class="material-icons left">delete</i><span>Elimina</span></a>
- {% endif %}
+ Certificato di vacinazione
+ <div class="file-field input-field">
+ <div class="btn {{color}}">
+ <span><i class="material-icons left">file_upload</i>File</span>
+ <input type="file" name="vac_certificate" id="vac_certificate" multiple>
+ </div>
+ <div class="file-path-wrapper">
+ <input id="vac_file" value="{{vac_certificate}}" class="file-path" type="text" placeholder="Certificato di vacinazione">
</div>
</div>
+ {% if vac_certificate != ''%}
+ <a class="btn {{color}}" onclick="send('download_vac')"><i class="material-icons left">file_download</i>Download</a>
+ <a class="btn {{color}}" onclick="delete_vac()"><i class="material-icons left">delete</i><span>Elimina</span></a>
+ {% endif %}
</div>
+ </div>
+ <div class="row">
<div class="col s12">
- <div class="card">
- <div class="card-content">
- Tessera cassa malati
- <div class="file-field input-field">
- <div class="btn {{color}}">
- <span><i class="material-icons left">file_upload</i>File</span>
- <input type="file" name="health_care_certificate" id="health_care_certificate" multiple>
- </div>
- <div class="file-path-wrapper">
- <input id="health_care_file" value="{{health_care_certificate}}" class="file-path" type="text" placeholder="Tessera cassa malati">
- </div>
- </div>
- {% if health_care_certificate != ''%}
- <a class="btn {{color}}" onclick="send('download_health')"><i class="material-icons left">file_download</i>Download</a>
- <a class="btn {{color}}" onclick="delete_health()"><i class="material-icons left">delete</i><span>Elimina</span></a>
- {% endif %}
+ Tessera cassa malati
+ <div class="file-field input-field">
+ <div class="btn {{color}}">
+ <span><i class="material-icons left">file_upload</i>File</span>
+ <input type="file" name="health_care_certificate" id="health_care_certificate" multiple>
+ </div>
+ <div class="file-path-wrapper">
+ <input id="health_care_file" value="{{health_care_certificate}}" class="file-path" type="text" placeholder="Tessera cassa malati">
</div>
</div>
+ {% if health_care_certificate != ''%}
+ <a class="btn {{color}}" onclick="send('download_health')"><i class="material-icons left">file_download</i>Download</a>
+ <a class="btn {{color}}" onclick="delete_health()"><i class="material-icons left">delete</i><span>Elimina</span></a>
+ {% endif %}
</div>
</div>
<div class="fixed-action-btn">