{% load static i18n base widget_tweaks %}
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" class="login-pf">

<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="robots" content="noindex, nofollow">

    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
    <title>dnoticias.pt</title>
    <link rel="icon" href="/auth/resources/f74fq/login/dnoticias/img/favicon.ico" />
    <link href="{% static 'backoffice/css/style.bundle.css' %}" rel="stylesheet" />
    <link href="{% static 'frontoffice/css/reset.css' %}" rel="stylesheet" />
    <link href="{% static 'frontoffice/css/login.css' %}" rel="stylesheet" />
    <style>

    </style>
</head>

<body class="">
    <div class="login-pf-page">
        <div id="kc-header" class="login-pf-page-header">
            <div id="kc-header-wrapper" class="login-pf-logo">DNOTICIAS</div>
        </div>
        <div class="card-pf login-pf-accounts">
            <header class="login-pf-header">
                <h1 id="kc-page-title">Redefinir a senha</h1>
            </header>
            <div id="kc-content">
                <div id="kc-content-wrapper">
                    <div id="kc-form" class="row">
                        <div id="kc-form-wrapper" class="col-xs-12 col-sm-6 col-md-12 col-lg-12 login-pf-social-section">
                            <form id="kc-form-login" method="post">
                                {% csrf_token %}
                                <div class="form-group">
                                    <label for="password" class="control-label">{{ form.actual_password.label }}</label>
                                    {% if form.actual_password %}
                                        {% trans 'Senha atual' as actual_password_placeholder %}
                    
                                        {% assign_variable "form-control" as actual_password_classes %}
                    
                                        {% if form.is_bound %}
                                            {% if form.errors.actual_password %}
                                                {% assign_variable "is-invalid" as validation_class %}
                                            {% else %}
                                                {% assign_variable "is-valid" as validation_class %}
                                            {% endif %}
                                        {% else %}
                                            {% assign_variable "" as validation_class %}
                                        {% endif %}
                                        {% add_string actual_password_classes " " validation_class as actual_password_classes_with_validation %}
                    
                                        {% render_field form.actual_password class+=actual_password_classes_with_validation placeholder+=actual_password_placeholder %}
                                        {% include "backoffice/includes/help_field.html" with form=form form_field=form.actual_password valid_feedback=valid_feedback mutex_text=mutex_text only %}
                                    {% endif %}
                                </div>

                                <div class="form-group">
                                    <label for="password" class="control-label">{{ form.new_password.label }}</label>
                                    {% if form.new_password %}
                                        {% trans 'Nova senha' as new_password_placeholder %}
                    
                                        {% assign_variable "form-control" as new_password_classes %}
                    
                                        {% if form.is_bound %}
                                            {% if form.errors.new_password %}
                                                {% assign_variable "is-invalid" as validation_class %}
                                            {% else %}
                                                {% assign_variable "is-valid" as validation_class %}
                                            {% endif %}
                                        {% else %}
                                            {% assign_variable "" as validation_class %}
                                        {% endif %}
                                        {% add_string new_password_classes " " validation_class as new_password_classes_with_validation %}
                    
                                        {% render_field form.new_password class+=new_password_classes_with_validation placeholder+=new_password_placeholder %}
                                        {% include "backoffice/includes/help_field.html" with form=form form_field=form.new_password valid_feedback=valid_feedback mutex_text=mutex_text only %}
                                    {% endif %}
                                </div>

                                <div class="form-group">
                                    <label for="password" class="control-label">{{ form.repeat_password.label }}</label>
                                    {% if form.repeat_password %}
                                        {% trans 'Repita a senha' as repeat_password_placeholder %}
                    
                                        {% assign_variable "form-control" as repeat_password_classes %}
                    
                                        {% if form.is_bound %}
                                            {% if form.errors.repeat_password %}
                                                {% assign_variable "is-invalid" as validation_class %}
                                            {% else %}
                                                {% assign_variable "is-valid" as validation_class %}
                                            {% endif %}
                                        {% else %}
                                            {% assign_variable "" as validation_class %}
                                        {% endif %}
                                        {% add_string repeat_password_classes " " validation_class as repeat_password_classes_with_validation %}
                    
                                        {% render_field form.repeat_password class+=repeat_password_classes_with_validation placeholder+=repeat_password_placeholder %}
                                        {% include "backoffice/includes/help_field.html" with form=form form_field=form.repeat_password valid_feedback=valid_feedback mutex_text=mutex_text only %}
                                    {% endif %}
                                </div>

                                <div class="form-group login-pf-settings">
                                    <div class="">
                                        <span><a tabindex="5" href="{{password_recovery_url}}">Esqueceu-se da palavra-passe?</a></span>
                                    </div>

                                </div>

                                <div id="kc-form-buttons" class="form-group">
                                    <input type="hidden" id="fingerprint" name="fingerprint" />
                                    <input type="hidden" id="id-hidden-input" name="credentialId" />
                                    <input tabindex="4" class="btn btn-primary btn-block btn-lg" name="login"
                                        id="kc-login" type="submit" value="Submeter" />
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</body>

</html>