templates/vitrine/account.html.twig line 1

  1. {% extends 'vitrine/base.html.twig' %}
  2. {# {% block title %}{{ title }} {% endblock %} #}
  3. {% block stylesheets %}
  4. {% endblock %}
  5. {% block body %}
  6.     <section class="section-padding-top">
  7.         <div class="profile-box">
  8.             <div class="container-fluid">
  9.                 <div class="d-flex flex-wrap align-items-center justify-content-between gap-2 mb-3">
  10.                     <div class="d-flex align-items-center gap-3">
  11.                         <div class="account-logo d-flex align-items-center position-relative">
  12.                             <img src="{{ asset(app.user ? app.user.profilePhoto : 'blank.png', 'avatar') }}" class="img-fluid object-cover rounded-3 img-profil" alt="profile">
  13.                             {# <i class="fa-regular fa-pen-to-square"></i> #}
  14.                         </div>
  15.                         <div>
  16.                             <h6 class="font-size-18 text-capitalize text-white fw-500" id="id_fullname">{{ app.user ? app.user.firstName ~ ' ' ~ app.user.lastName : "" }} </h6>
  17.                             <span class="font-size-14 text-white fw-500" id="id_email">{{ app.user ? app.user.email : "" }}</span>
  18.                         </div>
  19.                     </div>
  20.                     <div class="iq-button">
  21.                         {# <a href="{{path('web_pricing')}}" class="btn text-uppercase position-relative">
  22.                             <span class="button-text">Subscription</span>
  23.                             <i class="fa-solid fa-play"></i>
  24.                         </a> #}
  25.                         {# <a class="nav-link" data-bs-toggle="tab" href="#profile-profile" role="tab" aria-selected="false">{{"Modifier"| trans}}</a> #}
  26.                         <ul class="d-flex nav nav-pills mb-0 text-center profile-tab" data-toggle="slider-tab" id="profile-pills-tab" role="tablist">
  27.                             <li class="nav-item">
  28.                                 <a class="nav-link active show" data-bs-toggle="tab" href="#profile-feed" id="close-form" role="tab" aria-selected="false">{{"Profil"| trans}}</a>
  29.                             </li>
  30.                         
  31.                             <li class="nav-item">
  32.                                 <a class="nav-link" data-bs-toggle="tab" href="#profile-profile" id="edit" role="tab" aria-selected="false">{{"Modifier"| trans}}</a>
  33.                             </li>
  34.                         </ul>
  35.                     </div>
  36.                 </div>
  37.                 <div class="col-12">
  38.                     <div class="profile-content tab-content iq-tab-fade-up">
  39.             
  40.                         <div id="profile-profile" class="tab-pane fade">
  41.                             <div class="card">
  42.                                 
  43.                                 <div class="card-body">
  44.                                     <form action="" id="kt_add_user_offcanvas_form" class="row g-3 section-form" novalidate>
  45.                                         
  46.                                         <div class="row">
  47.                                             <div class="col-6 mt-2">
  48.                                                 <div class="fv-row form-group ">
  49.                                                     <label class="form-label flex-grow-1" for="lastName">
  50.                                                     <strong>{{"Nom"| trans}}</strong> :
  51.                                                     </label>
  52.                                                     <input id="lastName" type="text" value="{{app.user ? app.user.lastName : ''}}" name="lastName" class="form-control"  required/>
  53.                                                     
  54.                                                 </div>
  55.                                             </div>
  56.                                             <div class="col-6 mt-2">
  57.                                                 <div class="fv-row form-group  ">
  58.                                                     <label class="form-label flex-grow-1" for="firstName">
  59.                                                     <strong>{{"Prénom"| trans}}</strong> :
  60.                                                     </label>
  61.                                                     <input id="firstName" type="text" value="{{app.user ? app.user.firstName : ' '}}" name="firstName" class="form-control"  required/>
  62.                                                     
  63.                                                 </div>
  64.                                             </div>
  65.                                             <div class="col-6">
  66.                                                 <div class="fv-row form-group ">
  67.                                                     <label class="form-label flex-grow-1" for="email">
  68.                                                     <strong>{{"Email" | trans}}</strong> :
  69.                                                     </label>
  70.                                                 
  71.                                                     <input id="email" type="email" value="{{app.user ? app.user.email : ''}}" name="email" class="form-control"  required/>
  72.                                                 </div>
  73.                                             </div>
  74.                                             <div class="col-6">
  75.                                                 <div class="fv-row form-group ">
  76.                                                     <label class="form-label flex-grow-1" for="phone">
  77.                                                     <strong>{{"Téléphone" | trans}}</strong> :
  78.                                                     </label>
  79.                                                     <input id="phone" type="tel" name="phone" class="form-control tel" required/>
  80.                                                 </div>
  81.                                             </div>
  82.                                             
  83.                                             <div class="col-12">
  84.                                                     <label class="form-label flex-grow-1" for="cover">
  85.                                                     <strong>{{"Image de profil"| trans}}</strong> :
  86.                                                     </label>
  87.                                                     <input id="cover" type="file" name="cover" class="form-control " placeholder="{{"cover" | trans}}" />
  88.                                                     
  89.                                             </div>
  90.                                         </div>
  91.                                         
  92.                                         <div class="offcanvas-footer border-top">
  93.                                             <div class="d-grid d-flex gap-3 p-3">
  94.                                                 <button type="submit" data-kt-user-offcanvas-action="submit" class="btn btn-primary d-block">
  95.                                                     <span class="indicator-label"><i class="fa-solid fa-floppy-disk me-2"></i>{{"Enregistrer"| trans}}</span>
  96.                                                     <span class="indicator-progress">{{"En cours"| trans}}
  97.                                                     <span class="spinner-border spinner-border-sm align-middle ms-2"></span></span>
  98.                                                 </button>
  99.                                                 <button type="button" class="btn btn-outline-primary d-block" data-kt-cancel="offcanvas"  aria-label="Close">
  100.                                                     <i class="fa-solid fa-angles-left me-2"></i>{{"Fermer"| trans}}
  101.                                                 </button>
  102.                                             </div>
  103.                                         </div>
  104.                                     </form>
  105.                                 </div>
  106.                             </div>
  107.                         
  108.                         </div>
  109.                     </div>
  110.                 </div>
  111.             </div> 
  112.         </div>
  113.         <div class="tabs">
  114.             <div class="container-fluid">
  115.                 <div class="content-details iq-custom-tab-style-two">
  116.                     <ul class="d-flex justify-content-center nav nav-pills tab-header" role="tablist">
  117.                         <li class="nav-item">
  118.                             <a class="nav-link active show" data-bs-toggle="pill" href="#playlist" role="tab" aria-selected="true">{{"Mes films"| trans}}</a>
  119.                         </li>
  120.                         <li class="nav-item">
  121.                             <a class="nav-link" data-bs-toggle="pill" href="#watchlist" role="tab" aria-selected="false">{{"Mes épisodes"| trans}}</a>
  122.                         </li>
  123.                        
  124.                     </ul>
  125.                     <div class="tab-content px-0">
  126.                         <div id="playlist" class="tab-pane animated fadeInUp active show" role="tabpanel">
  127.                             <div class="overflow-hidden">
  128.                                 <div class="d-flex align-items-center justify-content-between my-4">
  129.                                     <h5 class="main-title text-capitalize mb-0">{{"Mes films"}}</h5>
  130.                                 </div>
  131.                                 <div class="row row-cols-1 row-cols-md-2 row-cols-lg-4" id="content-movie">
  132.                                     
  133.                                 </div>
  134.                                 <div class="text-center mt-2 mb-5 hidden" id="movie-clear"> {{"Vous n'avez aucun média actuellement"| trans}}</div>
  135.                                
  136.                             </div>
  137.                         </div>
  138.                         <div id="watchlist" class="tab-pane animated fadeInUp" role="tabpanel">
  139.                             <div class="overflow-hidden">
  140.                                 <div class="d-flex align-items-center justify-content-between my-4">
  141.                                     <h5 class="main-title text-capitalize mb-0">{{"Mes épisodes"}}</h5>
  142.                                 </div>
  143.                                 <div class="row row-cols-1 row-cols-md-2 row-cols-lg-4" id="content-episode">
  144.                                 
  145.                                     
  146.                                 </div>
  147.                                 <div class="text-center mt-2 mb-5 hidden" id="episode-clear"> {{"Vous n'avez aucun média actuellement"| trans}}</div>
  148.                             </div>
  149.                         </div>
  150.                         
  151.                     </div>
  152.                 </div>
  153.             </div>
  154.         </div>
  155.     </section>
  156.     <div class="modal fade" id="addNewPlaylist" tabindex="-1" aria-hidden="true">
  157.     <div class="modal-dialog modal-lg">
  158.         <div class="modal-content border-0">
  159.         <div class="modal-header border-0">
  160.             <div>
  161.                 <h1 class="modal-title text-capitalize fs-5 fw-500">Create new Playlist</h1>
  162.                 <p class="mb-0">Please fill in all information below to create new playlist.</p>
  163.             </div>
  164.             <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  165.         </div>
  166.         <div class="modal-body">
  167.             <form>
  168.                 <div class="form-group">
  169.                     <label class="text-white fw-500 mb-2">Name *</label>
  170.                     <input type="text" class="form-control">
  171.                 </div>
  172.                 <div class="form-group">
  173.                     <label class="text-white fw-500 mb-2">Description</label>
  174.                     <textarea class="form-control" cols="5"></textarea>
  175.                 </div>
  176.                 <div class="form-group">
  177.                     <label class="text-white fw-500 mb-2">Privacy</label>
  178.                     <select class="form-control">
  179.                         <option>Public</option>
  180.                         <option>Private</option>
  181.                     </select>
  182.                 </div>
  183.                 <div class="form-group">
  184.                     <label class="text-white fw-500">Playlist Thumbnail</label>
  185.                     <small class="d-block my-2">Support *.webp, *webp, *.gif, *.webp. Maximun upload file size: 5mb.</small>
  186.                     <input type="file" class="form-control">
  187.                 </div>
  188.                 <div class="form-group d-flex align-items-center gap-3">
  189.                     <button class="btn btn-sm btn-light text-uppercase fw-medium">cancel</button>
  190.                     <button class="btn btn-sm btn-primary text-uppercase fw-medium">save</button>
  191.                 </div>
  192.             </form>
  193.         </div>
  194.         </div>
  195.     </div>
  196.     </div>
  197. {% endblock %}
  198. {% block javascripts %} 
  199.    
  200.     <script>
  201.         const  url_edit_profil          =   "{{ path('app_edit_profil') }}",
  202.         _get_purchase_media_link        =   "{{path('app_get_purchaselist_movie')}}",
  203.         _get_purchase_episode_link      =   "{{path('app_get_purchaselist_episode')}}",
  204.         user_avatar_link                =   "{{ asset('app/images/avatars/_1_') }}",
  205.         _phone_user                     =   "{{app.user ? app.user.phone : ''}}",
  206.         edit                            =   "{{ app.request.query.get('edit') }}";
  207.     </script>
  208.     <script src="{{ asset('app/js/user/profil.js') }}"></script>
  209.     <script src="{{ asset('vitrine/js/account/my-account.js') }}"></script>
  210. {% endblock %}