{% extends 'base.html' %}
{% block titre %}
CRDES : Profile Modification
{% endblock%}
{% block loader %}
{% endblock %}
{% block content %}

<div class="main-content">
    <section class="section">
        <div class="section-body">
            <div class="row mt-sm-4">
                <div class="col-12 col-md-12 col-lg-4">
                    <div class="card author-box">
                        <div class="card-body">
                            <div class="author-box-center">
                                <img alt="image" src="/media/{{user.profile_pic}}" class="rounded-circle author-box-picture">
                                <div class="clearfix"></div>
                                <div class="author-box-name">
                                    {{user.first_name}} {{user.last_name}}
                                </div>
                                <div class="author-box-job"></div>
                            </div>
                            <div class="text-center">
                                <div class="author-box-description">

                                </div>
                                <div class="mb-2 mt-3">
                                    <div class="text-small font-weight-bold">Liens</div>
                                </div>
                                <a href="#" class="btn btn-social-icon mr-1 btn-facebook">
                                    <i class="fab fa-facebook-f"></i>
                                </a>
                                <a href="#" class="btn btn-social-icon mr-1 btn-twitter">
                                    <i class="fab fa-twitter"></i>
                                </a>
                                <a href="#" class="btn btn-social-icon mr-1 btn-github">
                                    <i class="fab fa-github"></i>
                                </a>
                                <a href="#" class="btn btn-social-icon mr-1 btn-instagram">
                                    <i class="fab fa-instagram"></i>
                                </a>
                                <div class="w-100 d-sm-none"></div>
                            </div>
                        </div>
                    </div>
                    <div class="card">
                        <div class="card-header">
                            <h4>Details</h4>
                        </div>
                        <div class="card-body">
                            <div class="py-4">
                                <p class="clearfix">
                        <span class="float-left">
                          Rôle
                        </span>
                                    <span class="float-right text-muted">
                          {{user.role}}
                        </span>
                                </p>
                                <p class="clearfix">
                        <span class="float-left">
                          N° Interphone:
                        </span>
                                    <span class="float-right text-muted">
                          {{user.numero_combine}}
                        </span>
                                </p>
                                <p class="clearfix">
                        <span class="float-left">
                          E-Mail
                        </span>
                                    <span class="float-right text-muted">
                          {{user.email}}
                        </span>
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-12 col-md-12 col-lg-8">
                    <div class="card">
                        <div class="padding-20">
                            <ul class="nav nav-tabs" id="myTab2" role="tablist">
                                <li class="nav-item">
                                    <a class="nav-link active" id="profile-tab2" data-toggle="tab" href="#settings" role="tab"
                                       aria-selected="true">Setting</a>
                                </li>
                            </ul>
                            <div class="tab-content tab-bordered" id="myTab3Content">
                                <div class="tab-pane fade show active" id="settings" role="tabpanel" aria-labelledby="profile-tab2">
                                    <div class="tab-content">
									<div class="card-body">
										<form action="" method="post">
                                            {% csrf_token %}

                                            <div class="form-group row">
                                                <label class="col-sm-12 col-md-4 col-form-label">Ancien mote de passe</label>
                                                <div class="col-sm-12 col-md-8">
                                                    <input class="form-control" type="password" name="old_password" autocomplete="current-password" autofocus="" required="" id="id_old_password">
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="col-sm-12 col-md-4 col-form-label">Nouveau mot de passe</label>
                                                <div class="col-sm-12 col-md-8">
                                                    <input class="form-control"  type="password" name="new_password1" autocomplete="new-password" required="" id="id_new_password1">
                                                </div>
                                            </div>
                                            <div class="form-group row">
                                                <label class="col-sm-12 col-md-4 col-form-label">Confirmation du nouveau mot de passe</label>
                                                <div class="col-sm-12 col-md-8">
                                                    <input class="form-control"  type="password" name="new_password2" autocomplete="new-password" required="" id="id_new_password2">
                                                </div>
                                            </div>
                                            <ul>
                                                <li>Votre mot de passe ne peut pas trop ressembler à vos autres informations personnelles.</li>
                                                <li>Votre mot de passe doit contenir au minimum 8 caractères.</li>
                                                <li>Votre mot de passe ne peut pas être un mot de passe couramment utilisé.</li>
                                                <li>Votre mot de passe ne peut pas être entièrement numérique.</li>
                                            </ul>
                                            <div class="col-sm-12">
                                                <div class="input-group mb-0">
                                                    <input class="btn btn-primary btn-lg btn-block" type="submit" value="Valider">
                                                </div>
                                            </div>
                                        </form>
									</div>
								</div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </section>

</div>
{% endblock %}



