templates/vitrine/account.html.twig line 1
{% extends 'vitrine/base.html.twig' %}
{# {% block title %}{{ title }} {% endblock %} #}
{% block stylesheets %}
{% endblock %}
{% block body %}
<section class="section-padding-top">
<div class="profile-box">
<div class="container-fluid">
<div class="d-flex flex-wrap align-items-center justify-content-between gap-2 mb-3">
<div class="d-flex align-items-center gap-3">
<div class="account-logo d-flex align-items-center position-relative">
<img src="{{ asset(app.user ? app.user.profilePhoto : 'blank.png', 'avatar') }}" class="img-fluid object-cover rounded-3 img-profil" alt="profile">
{# <i class="fa-regular fa-pen-to-square"></i> #}
</div>
<div>
<h6 class="font-size-18 text-capitalize text-white fw-500" id="id_fullname">{{ app.user ? app.user.firstName ~ ' ' ~ app.user.lastName : "" }} </h6>
<span class="font-size-14 text-white fw-500" id="id_email">{{ app.user ? app.user.email : "" }}</span>
</div>
</div>
<div class="iq-button">
{# <a href="{{path('web_pricing')}}" class="btn text-uppercase position-relative">
<span class="button-text">Subscription</span>
<i class="fa-solid fa-play"></i>
</a> #}
{# <a class="nav-link" data-bs-toggle="tab" href="#profile-profile" role="tab" aria-selected="false">{{"Modifier"| trans}}</a> #}
<ul class="d-flex nav nav-pills mb-0 text-center profile-tab" data-toggle="slider-tab" id="profile-pills-tab" role="tablist">
<li class="nav-item">
<a class="nav-link active show" data-bs-toggle="tab" href="#profile-feed" id="close-form" role="tab" aria-selected="false">{{"Profil"| trans}}</a>
</li>
<li class="nav-item">
<a class="nav-link" data-bs-toggle="tab" href="#profile-profile" id="edit" role="tab" aria-selected="false">{{"Modifier"| trans}}</a>
</li>
</ul>
</div>
</div>
<div class="col-12">
<div class="profile-content tab-content iq-tab-fade-up">
<div id="profile-profile" class="tab-pane fade">
<div class="card">
<div class="card-body">
<form action="" id="kt_add_user_offcanvas_form" class="row g-3 section-form" novalidate>
<div class="row">
<div class="col-6 mt-2">
<div class="fv-row form-group ">
<label class="form-label flex-grow-1" for="lastName">
<strong>{{"Nom"| trans}}</strong> :
</label>
<input id="lastName" type="text" value="{{app.user ? app.user.lastName : ''}}" name="lastName" class="form-control" required/>
</div>
</div>
<div class="col-6 mt-2">
<div class="fv-row form-group ">
<label class="form-label flex-grow-1" for="firstName">
<strong>{{"Prénom"| trans}}</strong> :
</label>
<input id="firstName" type="text" value="{{app.user ? app.user.firstName : ' '}}" name="firstName" class="form-control" required/>
</div>
</div>
<div class="col-6">
<div class="fv-row form-group ">
<label class="form-label flex-grow-1" for="email">
<strong>{{"Email" | trans}}</strong> :
</label>
<input id="email" type="email" value="{{app.user ? app.user.email : ''}}" name="email" class="form-control" required/>
</div>
</div>
<div class="col-6">
<div class="fv-row form-group ">
<label class="form-label flex-grow-1" for="phone">
<strong>{{"Téléphone" | trans}}</strong> :
</label>
<input id="phone" type="tel" name="phone" class="form-control tel" required/>
</div>
</div>
<div class="col-12">
<label class="form-label flex-grow-1" for="cover">
<strong>{{"Image de profil"| trans}}</strong> :
</label>
<input id="cover" type="file" name="cover" class="form-control " placeholder="{{"cover" | trans}}" />
</div>
</div>
<div class="offcanvas-footer border-top">
<div class="d-grid d-flex gap-3 p-3">
<button type="submit" data-kt-user-offcanvas-action="submit" class="btn btn-primary d-block">
<span class="indicator-label"><i class="fa-solid fa-floppy-disk me-2"></i>{{"Enregistrer"| trans}}</span>
<span class="indicator-progress">{{"En cours"| trans}}
<span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
</button>
<button type="button" class="btn btn-outline-primary d-block" data-kt-cancel="offcanvas" aria-label="Close">
<i class="fa-solid fa-angles-left me-2"></i>{{"Fermer"| trans}}
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tabs">
<div class="container-fluid">
<div class="content-details iq-custom-tab-style-two">
<ul class="d-flex justify-content-center nav nav-pills tab-header" role="tablist">
<li class="nav-item">
<a class="nav-link active show" data-bs-toggle="pill" href="#playlist" role="tab" aria-selected="true">{{"Mes films"| trans}}</a>
</li>
<li class="nav-item">
<a class="nav-link" data-bs-toggle="pill" href="#watchlist" role="tab" aria-selected="false">{{"Mes épisodes"| trans}}</a>
</li>
</ul>
<div class="tab-content px-0">
<div id="playlist" class="tab-pane animated fadeInUp active show" role="tabpanel">
<div class="overflow-hidden">
<div class="d-flex align-items-center justify-content-between my-4">
<h5 class="main-title text-capitalize mb-0">{{"Mes films"}}</h5>
</div>
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-4" id="content-movie">
</div>
<div class="text-center mt-2 mb-5 hidden" id="movie-clear"> {{"Vous n'avez aucun média actuellement"| trans}}</div>
</div>
</div>
<div id="watchlist" class="tab-pane animated fadeInUp" role="tabpanel">
<div class="overflow-hidden">
<div class="d-flex align-items-center justify-content-between my-4">
<h5 class="main-title text-capitalize mb-0">{{"Mes épisodes"}}</h5>
</div>
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-4" id="content-episode">
</div>
<div class="text-center mt-2 mb-5 hidden" id="episode-clear"> {{"Vous n'avez aucun média actuellement"| trans}}</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="modal fade" id="addNewPlaylist" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content border-0">
<div class="modal-header border-0">
<div>
<h1 class="modal-title text-capitalize fs-5 fw-500">Create new Playlist</h1>
<p class="mb-0">Please fill in all information below to create new playlist.</p>
</div>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label class="text-white fw-500 mb-2">Name *</label>
<input type="text" class="form-control">
</div>
<div class="form-group">
<label class="text-white fw-500 mb-2">Description</label>
<textarea class="form-control" cols="5"></textarea>
</div>
<div class="form-group">
<label class="text-white fw-500 mb-2">Privacy</label>
<select class="form-control">
<option>Public</option>
<option>Private</option>
</select>
</div>
<div class="form-group">
<label class="text-white fw-500">Playlist Thumbnail</label>
<small class="d-block my-2">Support *.webp, *webp, *.gif, *.webp. Maximun upload file size: 5mb.</small>
<input type="file" class="form-control">
</div>
<div class="form-group d-flex align-items-center gap-3">
<button class="btn btn-sm btn-light text-uppercase fw-medium">cancel</button>
<button class="btn btn-sm btn-primary text-uppercase fw-medium">save</button>
</div>
</form>
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
<script>
const url_edit_profil = "{{ path('app_edit_profil') }}",
_get_purchase_media_link = "{{path('app_get_purchaselist_movie')}}",
_get_purchase_episode_link = "{{path('app_get_purchaselist_episode')}}",
user_avatar_link = "{{ asset('app/images/avatars/_1_') }}",
_phone_user = "{{app.user ? app.user.phone : ''}}",
edit = "{{ app.request.query.get('edit') }}";
</script>
<script src="{{ asset('app/js/user/profil.js') }}"></script>
<script src="{{ asset('vitrine/js/account/my-account.js') }}"></script>
{% endblock %}