|
|
@@ -18,20 +18,20 @@
|
|
|
<div>
|
|
|
<form name='UpdatePassword' method='post' class='form-container card p-3 bg-light'>
|
|
|
{% csrf_token %}
|
|
|
- <div class='form-outline mb-3'>
|
|
|
+ <div class='form-outline mb-3 {% if "cfisc" in informazione.errors %} text-danger {% endif %}'>
|
|
|
<label class='form-label' for='cfisc'>Email - Codice Fiscale - Login</label>
|
|
|
<input type='text' class='form-control' id='cfisc' name='cfisc' value="{{ informazione.cfisc.value }}"
|
|
|
</div>
|
|
|
<div class='form-outline mb-3'>
|
|
|
- <input type='hidden' class='form-control' id='uuid' name='uuid' value="{{ informazione.uuid.value }}" readonly>
|
|
|
+ <input type='hidden' class='form-control' id='uuid' name='uuid' value="{{ informazione.uuid.value }}" readonly>
|
|
|
<div>
|
|
|
- <div class='form-outline mb-3'>
|
|
|
- <label class='form-label' for='pin1'>password/pin</label>
|
|
|
- <input type='password' class='form-control' id='pin1' name='pin1' value="{{ informazione.pin1.value }}">
|
|
|
+ <div class='form-outline mb-3 {% if "pin1" in informazione.errors %} text-danger {% endif %}'>
|
|
|
+ <label class='form-label' for='pin1'>password/pin{% if "pin1" in informazione.errors %}: Inserire Password Valida!{% endif %}</label>
|
|
|
+ <input type='password' class='form-control' id='pin1' name='pin1' value="{{ informazione.pin1.value }}">
|
|
|
</div>
|
|
|
- <div class='form-outline mb-3'>
|
|
|
- <label class='form-label' for='pin2'>ripeti password/pin</label>
|
|
|
- <input type='password' class='form-control' id='pin2' name='pin2' value="{{ informazione.pin2.value }}">
|
|
|
+ <div class='form-outline mb-3 {% if "pin2" in informazione.errors %} text-danger {% endif %}'>
|
|
|
+ <label class='form-label' for='pin2'>ripeti password/pin{% if "pin2" in informazione.errors %}: Password non corrispondente!{% endif %}</label>
|
|
|
+ <input type='password' class='form-control' id='pin2' name='pin2' value="{{ informazione.pin2.value }}">
|
|
|
</div>
|
|
|
|
|
|
<div class='form-outline mb-3 text-center'>
|
|
|
@@ -44,12 +44,15 @@
|
|
|
|
|
|
{% block bottom %}
|
|
|
<div>
|
|
|
- <!-- errori -->
|
|
|
+ <!-- errori
|
|
|
<div class='form-container card p-3 bg-light'>
|
|
|
{% if informazione.errors %}
|
|
|
{{ informazione.errors }}
|
|
|
+ <br>--</br>
|
|
|
+ {% for i in informazione.errors %}<p>{{ i }}</p>{% endfor %}
|
|
|
{% endif %}
|
|
|
+ {% if informazione.errors.pin1 %}<p class="alarm">alarme</p>{% endif %}
|
|
|
</div>
|
|
|
- <!-- fine zona errori -->
|
|
|
+ fine zona errori -->
|
|
|
<div>
|
|
|
{% endblock %}
|