<form class="formValidate" method="post" novalidate="novalidate">
    <div class="form login-form">
        <div class="login-form__title">
            Ustaw nowe hasło
        </div>
        <div class="login-form__description">
        </div>
        {% csrf_token %}
        <div class="form__input {% if form.new_password1.errors or form.non_field_errors %}has-error{% elif form.cleaned_data.new_password1 %}no-error{% endif %}">
            {{ form.new_password1 }}
            <span class="form__input__bar"></span>
            {% include 'users/modules/_form_field_errors.html' with errors=form.new_password1.errors %}
            <label>{{ form.new_password1.label }}</label>
        </div>
        <div class="form__input {% if form.new_password2.errors or form.non_field_errors %}has-error{% elif form.cleaned_data.new_password2 %}no-error{% endif %}">
            {{ form.new_password2 }}
            <span class="form__input__bar"></span>
            {% include 'users/modules/_form_field_errors.html' with errors=form.new_password2.errors %}
            {% include 'users/modules/_form_field_errors.html' with errors=form.non_field_errors %}
            <label>{{ form.new_password2.label }}</label>
        </div>
        <div class="form__submit--login">
            <button type="submit" class="button button__login-single button__login-single--blue">Zapisz</button>
        </div>
    </div>
</form>
