{% extends 'admin/baseAdmin.html.twig' %}
{% block page_title %}Ajouter Coaches{% endblock %}
{% block breadcump_main %}Coach{% endblock %}
{% block breadcump_subtitle %}Création de compte{% endblock %}
{% block menu_left_sidebar %}
{% include 'include/menu/menuAdmin.html.twig' with { menu_active_event : '2'} %}
{% endblock %}
{% block stylesheets %}
<link href="{{ asset('admin/libs/select2/css/select2.min.css') }}" rel="stylesheet" type="text/css">
<link href="{{ asset('admin/css/tailwind.min.css') }}" rel="stylesheet" type="text/css">
<link href="{{ asset('admin/css/tailwind2.css') }}" rel="stylesheet" type="text/css">
{% endblock %}
{% block title %}{{"Ajouter coach"|trans }}{% endblock %}
{% block content %}
<form class="p-1 " method="post" action="{{ path('add_coach')}}" enctype="multipart/form-data" >
<div class="container-fluid">
<div class="row">
<div class="col-xl-12 px-0">
<div class="card">
<div class="card-body">
<div class="m-auto my-3 relative">
<label for="avatar-upload" class="relative flex justify-center" style="cursor: pointer;">
<img class="w-40 h-40 rounded-full ring-2 ring-gray-700 object-cover dark:ring-gray-500 m-auto" src="{{asset('admin/images/users/images.png') }}" alt="Bordered avatar" id="avatar-img">
<div class="h-10 w-10 bg-gray-300 rounded-full flex items-center justify-center" style="position: absolute;right: 48%;bottom: 4px;font-size: 35px;">
<i class="bx bxs-image-alt text-gray-600"></i>
</div>
<input type="file" id="avatar-upload" style="display: none;" name="image" accept="image/*" onchange="changeAvatar(event)">
</label>
<p class="pb-4 text-gray-700 text-center text-sm">Ajouter photo de profile du coach </p>
</div>
<h5 class="text-lg font-semibold mt-5 ">Information personnel du coach </h5>
<p class="pb-4 text-gray-700 text-sm">Ici, vous pouvez modifier et consulter les informations personnelles du coach. </p>
<div class="row mb-4">
<div class="form-floating col-md-6 col-sm-12 ">
<input type="text" name="firstname"
class="form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5"
id="nom" placeholder="John">
<label class="mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 " for="nom">Nom</label>
<div class="absolute" style="top: 15px;left: 21px;color: #a1a1a1;">
<i class="bx bxs-user-circle text-2xl"></i>
</div>
</div>
<div class="form-floating col-md-6 col-sm-12 mt-2.5 sm:mt-0">
<input type="text" name="lastname"
class="form-control sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 ps-5"
id="prenom" placeholder="Doe">
<label class="mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 " for="prenom">Prénom</label>
<div class="absolute" style="top: 15px;left: 21px;color: #a1a1a1;">
<i class="bx bxs-user-circle text-2xl"></i>
</div>
</div>
</div>
<div class="row mb-4">
<div class="form-floating mb-3 col-md-6 col-sm-12">
<input type="email" name="email"
class="block font-medium form-control p-2.5 rounded-lg sm:text-sm text-gray-900 w-full ps-5" id="email"
placeholder="name@example.com">
<label class="mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 dark:text-white" for="email">Email address</label>
<div class="absolute" style="top: 15px;left: 21px;color: #a1a1a1;">
<i class="bx bx-envelope text-2xl"></i>
</div>
</div>
<div class="form-floating col-md-6 mb-3 col-md-6">
<input type="tel" class="block sm:text-sm form-control p-2.5 rounded-lg w-full input-tel py-3" name="phone" id="phone" placeholder="1234567">
</div>
</div>
<div class="row mb-4">
<div class=" rounded p-1">
<label for="inline-radio" class="ms-2 text-sm font-medium text-gray-500 dark:text-gray-300">Genre:</label>
<div class="flex justify-between w-50 ms-2 pt-1">
<div class="form-check mb-3">
<input value="1" class="form-check-input" type="radio" name="sex"
id="formRadios1" checked>
<label class="form-check-label" for="formRadios1">
Homme
</label>
</div>
<div class="form-check mb-3">
<input value="0" class="form-check-input" type="radio" name="sex"
id="formRadios1" checked>
<label class="form-check-label" for="formRadios1">
Femme
</label>
</div>
</div>
</div>
</div>
<div class="row pb-9 text-sm">
<div class=" ">
<p for="" class="form-label font-semibold col-2 ">Biographie</p>
<div class="relative w-full">
<textarea class="form-control text-sm px-5 pe-4" name="description" placeholder="Qui suis-je ?" id="description_programe" style="height: 100px"></textarea>
<div class="absolute" style="top: 8px;left: 11px;color: #a1a1a1;">
<i class="bx bx-notepad text-2xl" style=""></i>
</div>
</div>
</div>
</div>
<h5 class="text-lg font-semibold mt-5 ">Info de payment </h5>
<p class="pb-4 text-gray-700 text-sm">Ici, vous pouvez modifier et consulter les informations de paiements. </p>
<div class="row mb-3">
<div class="form-floating col-md-6 col-sm-12 ">
<input type="text" value="FGE" name="nom-bank"
class="block sm:text-sm form-control ps-5 p-2.5 rounded-lg w-full" id="floatingInput" placeholder="JOHN DOE">
<label class="mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 " for="nom-bank">Nom de la banque</label>
<div class="absolute" style="top: 15px;left: 21px;color: #a1a1a1;">
<i class="bx bxs-bank text-2xl"></i>
</div>
</div>
<div class="form-floating col-md-6 col-sm-12 mt-2.5 mb-3 sm:mt-0">
<input type="text" value="XXXX" name="iban"
class="iban-input block sm:text-sm form-control ps-5 p-2.5 rounded-lg w-full" id="floatingInput" placeholder="XXXX">
<label class="mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 " for="iban-input">Iban</label>
<div class="absolute" style="top: 15px;left: 21px;color: #a1a1a1;">
<i class="bx bxs-info-circle text-2xl"></i>
</div>
</div>
</div>
<div class="form-floating col-md-6 col-sm-12 mt-2.5 mb-4 sm:mt-0">
<input type="text" value="XXXX" name="swift"
class="swift-input block sm:text-sm form-control ps-5 p-2.5 rounded-lg w-full" id="floatingInput" placeholder="XXXX">
<label class="mb-2 ms-2 ps-5 text-sm font-medium text-gray-900 " for="swift-input">Swift</label>
<div class="absolute" style="top: 15px;left: 21px;color: #a1a1a1;">
<i class="bx bxs-info-circle text-2xl"></i>
</div>
</div>
<h5 class="text-lg font-semibold mt-5 ">Détails de Résidence </h5>
<p class="pb-4 text-gray-700 text-sm">Ici, vous pouvez modifier et consulter l'adresse du coach. </p>
<div class="row mb-4">
<div class="mb-3 col-md-6">
<select id="countries" name="country" class=" select border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-3.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 py-3">
<option value="BE" data-capital="Brussels">Belgium</option>
<option value="CA" data-capital="Ottawa">Canada</option>
<option value="FR" data-capital="Paris" selected>France</option>
<option value="PF" data-capital="Papeete">French Polynesia</option>
<option value="LU" data-capital="Luxembourg City">Luxembourg</option>
<option value="MA" data-capital="Rabat">Morocco</option>
<option value="NL" data-capital="Amsterdam">Netherlands</option>
<option value="NZ" data-capital="Wellington">New Zealand</option>
</select>
</div>
<div class="form-floating mb-3 col-md-6" id="address">
<input type="text" name="address" class="block sm:text-sm form-control p-2.5 rounded-lg w-full mt-0" id="floatingInput" placeholder="Adresse">
<label class="mb-2 ps-4 text-sm font-medium text-gray-900 dark:text-white" for="floatingInput">Adresse
</label>
</div>
</div>
<div class="divider mt-16"></div>
<div class="flex mt-4 row">
<div class="col-md-6">
<p class="text-xs text-gray-900 mb-2">En cliquant sur le bouton de Enregistrer, vous mettez à jours les informations envoyé dans ce formulaire </p>
</div>
<div class="col-md flex justify-end">
<button type="reset" style=" color: #ffaa00; border: 1px solid;" class="font-medium h-10 py-2.5 rounded-lg text-center text-sm w-40 me-2">
Annuler</button>
<button type="submit" style=" background: #ffaa00;" class="font-medium hover:bg-primary-700 h-10 py-2.5 rounded-lg text-center text-sm text-white w-40">Enregistrer</button>
</div>
</div>
</div>
<!-- end card body -->
</div>
<!-- end card -->
</div>
<!-- end col -->
<!-- end col -->
</div>
</div> <!-- container-fluid -->
</form>
<!-- End main -->
{% endblock %}
{% block javascripts %}
<!-- apexcharts -->
<script src="{{ asset('admin/libs/parsleyjs/parsley.min.js')}}"></script>
<script src="{{ asset('admin/libs/select2/js/select2.min.js')}}"></script>
<script src="{{ asset('admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js')}}"></script>
<script src="{{ asset('admin/js/pages/form-validation.init.js')}}"></script>
<script src="{{ asset('admin/js/app.js')}}"></script>
<script>
/*
Template Name: Skote - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: themesbrand@gmail.com
File: Form Advanced Js File
*/
!function ($) {
"use strict";
var AdvancedForm = function () { };
AdvancedForm.prototype.init = function () {
// Select2
if ($('.select2').length > 0) {
$(".select2").select2();
}
if ($('.select2-tags').length > 0) {
$(".select2-tags").select2({
tags: true
});
}
if ($('.select2-limiting-3').length > 0) {
$(".select2-limiting-3").select2({
maximumSelectionLength: 3
});
}
//Bootstrap-MaxLength
$('input#defaultconfig').maxlength({
warningClass: "badge bg-info",
limitReachedClass: "badge bg-warning"
});
$('input#thresholdconfig').maxlength({
threshold: 20,
warningClass: "badge bg-info",
limitReachedClass: "badge bg-warning"
});
$('input#moreoptions').maxlength({
alwaysShow: true,
warningClass: "badge bg-success",
limitReachedClass: "badge bg-danger"
});
$('input#alloptions').maxlength({
alwaysShow: true,
warningClass: "badge bg-success",
limitReachedClass: "badge bg-danger",
separator: ' out of ',
preText: 'You typed ',
postText: ' chars available.',
validate: true
});
$('textarea#textarea').maxlength({
alwaysShow: true,
warningClass: "badge bg-info",
limitReachedClass: "badge bg-warning"
});
$('input#placement').maxlength({
alwaysShow: true,
placement: 'top-left',
warningClass: "badge bg-info",
limitReachedClass: "badge bg-warning"
});
},
//init
$.AdvancedForm = new AdvancedForm, $.AdvancedForm.Constructor = AdvancedForm
}(window.jQuery),
//Datepicker
function ($) {
"use strict";
$.AdvancedForm.init();
}(window.jQuery);
</script>
{% endblock %}