<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* admin/coach/editCoach.html.twig */
class __TwigTemplate_352e10d3ba763ab94764ade4b37ae5fc extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'page_title' => [$this, 'block_page_title'],
'breadcump_main' => [$this, 'block_breadcump_main'],
'breadcump_subtitle' => [$this, 'block_breadcump_subtitle'],
'menu_left_sidebar' => [$this, 'block_menu_left_sidebar'],
'stylesheets' => [$this, 'block_stylesheets'],
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "admin/baseAdmin.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/coach/editCoach.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "admin/coach/editCoach.html.twig"));
$this->parent = $this->loadTemplate("admin/baseAdmin.html.twig", "admin/coach/editCoach.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_page_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));
yield "Modifier Coach";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 3
public function block_breadcump_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcump_main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcump_main"));
yield "Coach";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 4
public function block_breadcump_subtitle($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcump_subtitle"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcump_subtitle"));
yield "Modification de compte";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 5
public function block_menu_left_sidebar($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu_left_sidebar"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu_left_sidebar"));
// line 6
yield " ";
yield from $this->loadTemplate("include/menu/menuAdmin.html.twig", "admin/coach/editCoach.html.twig", 6)->unwrap()->yield(CoreExtension::merge($context, ["menu_active_event" => "2"]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 8
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 9
yield " <link href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/select2/css/select2.min.css"), "html", null, true);
yield "\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"";
// line 10
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/css/tailwind.min.css"), "html", null, true);
yield "\" rel=\"stylesheet\" type=\"text/css\">
<link href=\"";
// line 11
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/css/tailwind2.css"), "html", null, true);
yield "\" rel=\"stylesheet\" type=\"text/css\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 14
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Modifier le compte Coach"), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 15
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
yield "
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-xl-12 px-0\">
<div class=\"card\">
<div class=\"card-body\">
<form class=\"p-1 \" method=\"post\" action=\"";
// line 22
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edit_coach", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 22, $this->source); })()), "id", [], "any", false, false, false, 22)]), "html", null, true);
yield "\" enctype=\"multipart/form-data\" >
<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 dark:ring-gray-500 m-auto\" src=\"";
// line 25
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("" . CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 25, $this->source); })()), "image", [], "any", false, false, false, 25))), "html", null, true);
yield "\" 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\" value=\"";
// line 29
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 29, $this->source); })()), "image", [], "any", false, false, false, 29), "html", null, true);
yield "\" accept=\"image/*\" onchange=\"changeAvatar(event)\">
</label>
<p class=\"pb-4 text-gray-700 text-center text-sm\">Modifier 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\" value=\"";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 39, $this->source); })()), "firstName", [], "any", false, false, false, 39), "html", null, true);
yield "\"
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\" value=\"";
// line 48
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 48, $this->source); })()), "lastName", [], "any", false, false, false, 48), "html", null, true);
yield "\"
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\" value=\"";
// line 60
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 60, $this->source); })()), "lastName", [], "any", false, false, false, 60), "html", null, true);
yield "\"
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\">
<label class=\"container_check mb-0\">
<div class=\"d-flex justify-content-between\"><span>Homme</span></div>
<input type=\"radio\" value=\"1\" name=\"gender\" ";
// line 81
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 81, $this->source); })()), "gender", [], "any", false, false, false, 81) == "1")) {
yield "checked";
}
yield ">
<span class=\"custom-radio\"></span>
</label>
<label class=\"container_check\">
<div class=\"d-flex justify-content-between\"><span>Femme</span></div>
<input type=\"radio\" value=\"0\" name=\"gender\" ";
// line 87
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 87, $this->source); })()), "gender", [], "any", false, false, false, 87) == "0")) {
yield "checked";
}
yield ">
<span class=\"custom-radio\"></span>
</label>
</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\">";
// line 99
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 99, $this->source); })()), "bio", [], "any", false, false, false, 99), "html", null, true);
yield "</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 \">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\" ";
// line 114
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 114, $this->source); })()), "country", [], "any", false, false, false, 114) == "BE")) {
yield "selected";
}
yield ">Belgium</option>
<option value=\"CA\" data-capital=\"Ottawa\" ";
// line 115
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 115, $this->source); })()), "country", [], "any", false, false, false, 115) == "CA")) {
yield "selected";
}
yield ">Canada</option>
<option value=\"FR\" data-capital=\"Paris\" ";
// line 116
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 116, $this->source); })()), "country", [], "any", false, false, false, 116) == "FR")) {
yield "selected";
}
yield ">France</option>
<option value=\"PF\" data-capital=\"Papeete\" ";
// line 117
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 117, $this->source); })()), "country", [], "any", false, false, false, 117) == "PF")) {
yield "selected";
}
yield ">French Polynesia</option>
<option value=\"LU\" data-capital=\"Luxembourg City\" ";
// line 118
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 118, $this->source); })()), "country", [], "any", false, false, false, 118) == "LU")) {
yield "selected";
}
yield ">Luxembourg</option>
<option value=\"MA\" data-capital=\"Rabat\" ";
// line 119
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 119, $this->source); })()), "country", [], "any", false, false, false, 119) == "MA")) {
yield "selected";
}
yield ">Morocco</option>
<option value=\"NL\" data-capital=\"Amsterdam\" ";
// line 120
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 120, $this->source); })()), "country", [], "any", false, false, false, 120) == "NL")) {
yield "selected";
}
yield ">Netherlands</option>
<option value=\"NZ\" data-capital=\"Wellington\" ";
// line 121
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 121, $this->source); })()), "country", [], "any", false, false, false, 121) == "NZ")) {
yield "selected";
}
yield ">New Zealand</option>
</select>
</div>
<div class=\"form-floating mb-3 col-md-6\" id=\"city\">
<input type=\"text\" name=\"adresse\" value=\"";
// line 126
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["coach"]) || array_key_exists("coach", $context) ? $context["coach"] : (function () { throw new RuntimeError('Variable "coach" does not exist.', 126, $this->source); })()), "address", [], "any", false, false, false, 126), "html", null, true);
yield "\" 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>
</form>
</div>
<!-- end card body -->
</div>
<!-- end card -->
</div>
<!-- end col -->
<!-- end col -->
</div>
</div> <!-- container-fluid -->
<!-- End main -->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 163
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 164
yield " <!-- apexcharts -->
<script src=\"";
// line 165
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/parsleyjs/parsley.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 166
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/select2/js/select2.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 167
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/libs/bootstrap-maxlength/bootstrap-maxlength.min.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 169
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/pages/form-validation.init.js"), "html", null, true);
yield "\"></script>
<script src=\"";
// line 171
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("admin/js/app.js"), "html", null, true);
yield "\"></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>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "admin/coach/editCoach.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 473 => 171, 468 => 169, 463 => 167, 459 => 166, 455 => 165, 452 => 164, 442 => 163, 394 => 126, 384 => 121, 378 => 120, 372 => 119, 366 => 118, 360 => 117, 354 => 116, 348 => 115, 342 => 114, 324 => 99, 307 => 87, 296 => 81, 272 => 60, 257 => 48, 245 => 39, 232 => 29, 225 => 25, 219 => 22, 201 => 15, 181 => 14, 167 => 11, 163 => 10, 158 => 9, 148 => 8, 136 => 6, 126 => 5, 106 => 4, 86 => 3, 66 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'admin/baseAdmin.html.twig' %}
{% block page_title %}Modifier Coach{% endblock %}
{% block breadcump_main %}Coach{% endblock %}
{% block breadcump_subtitle %}Modification 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 %}{{\"Modifier le compte Coach\"|trans }}{% endblock %}
{% block content %}
<div class=\"container-fluid\">
<div class=\"row\">
<div class=\"col-xl-12 px-0\">
<div class=\"card\">
<div class=\"card-body\">
<form class=\"p-1 \" method=\"post\" action=\"{{ path('edit_coach',{'id':coach.id})}}\" enctype=\"multipart/form-data\" >
<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 dark:ring-gray-500 m-auto\" src=\"{{asset(''~coach.image) }}\" 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\" value=\"{{coach.image}}\" accept=\"image/*\" onchange=\"changeAvatar(event)\">
</label>
<p class=\"pb-4 text-gray-700 text-center text-sm\">Modifier 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\" value=\"{{coach.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\" value=\"{{coach.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\" value=\"{{coach.lastName}}\"
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\">
<label class=\"container_check mb-0\">
<div class=\"d-flex justify-content-between\"><span>Homme</span></div>
<input type=\"radio\" value=\"1\" name=\"gender\" {% if coach.gender == '1' %}checked{% endif %}>
<span class=\"custom-radio\"></span>
</label>
<label class=\"container_check\">
<div class=\"d-flex justify-content-between\"><span>Femme</span></div>
<input type=\"radio\" value=\"0\" name=\"gender\" {% if coach.gender == '0' %}checked{% endif %}>
<span class=\"custom-radio\"></span>
</label>
</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\">{{ coach.bio }}</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 \">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\" {% if coach.country == 'BE' %}selected{% endif %}>Belgium</option>
<option value=\"CA\" data-capital=\"Ottawa\" {% if coach.country == 'CA' %}selected{% endif %}>Canada</option>
<option value=\"FR\" data-capital=\"Paris\" {% if coach.country == 'FR' %}selected{% endif %}>France</option>
<option value=\"PF\" data-capital=\"Papeete\" {% if coach.country == 'PF' %}selected{% endif %}>French Polynesia</option>
<option value=\"LU\" data-capital=\"Luxembourg City\" {% if coach.country == 'LU' %}selected{% endif %}>Luxembourg</option>
<option value=\"MA\" data-capital=\"Rabat\" {% if coach.country == 'MA' %}selected{% endif %}>Morocco</option>
<option value=\"NL\" data-capital=\"Amsterdam\" {% if coach.country == 'NL' %}selected{% endif %}>Netherlands</option>
<option value=\"NZ\" data-capital=\"Wellington\" {% if coach.country == 'NZ' %}selected{% endif %}>New Zealand</option>
</select>
</div>
<div class=\"form-floating mb-3 col-md-6\" id=\"city\">
<input type=\"text\" name=\"adresse\" value=\"{{coach.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>
</form>
</div>
<!-- end card body -->
</div>
<!-- end card -->
</div>
<!-- end col -->
<!-- end col -->
</div>
</div> <!-- container-fluid -->
<!-- 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 %}", "admin/coach/editCoach.html.twig", "/home/bookoachroot/public_html/templates/admin/coach/editCoach.html.twig");
}
}