{% extends 'base.html' %}
{% block titre %}
CRDES : Client
{% endblock%}
{% block loader %}
{% endblock %}
{% block content %}
<div class="main-content">
    <section class="section">
        {% block entete %}
        <div class="col-12 col-md-12 col-lg-12 upper-case">
            <div class="card">
                <div class="card-header">
                    <h4>Changement de Photo Profile</h4>
                </div>
                <div class="row">
                    <div class="col-xl-4 col-lg-4 col-md-4 col-sm-12 mb-30">
                        <div class="pd-20 card-box height-100-p">
                            <div class="profile-photo">
                                <a href="/utilisateur/profile-photo/upload" class="edit-avatar"><i class="fa fa-pencil"></i></a>
                                <img src="/media/{{user.profile_pic}}" alt="" class="avatar-photo">
                            </div>
                            <h5 class="text-center h5 mb-0">{{user.first_name}} {{user.last_name}}</h5>
                            <p class="text-center text-muted font-14"></p>
                        </div>
                    </div>
                    <div class="col-xl-8 col-lg-8 col-md-8 col-sm-12 mb-30">
                        <div class="card-box height-100-p overflow-hidden">
                            <div class="profile-tab height-100-p">
                                <div class="tab height-100-p">
                                    <div class="tab-content">
                                        <div class="card-body">
                                            <h2>Téléverser une photo de profil</h2>
                                            <form method="post" enctype="multipart/form-data">
                                                {% csrf_token %}
                                                <div class="custom-file">
                                                    <input type="file" class="custom-file-input" name="profile_pic" accept="image/*" id="id_profile_pic">
                                                    <label class="custom-file-label">Choisir une photo</label>
                                                </div>
                                                <button type="submit" class="btn btn-primary">Valider</button>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
        {% endblock %}
        {% block chart %}

        {% endblock %}
        {% block tache %}

        {% endblock %}
        {% block ticket %}

        {% endblock %}
    </section>
</div>
{% endblock %}
