<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* account/edit.html.twig */
class __TwigTemplate_5cd4b222740d0bc3f12d5e8593507b91 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'content' => [$this, 'block_content'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout/backEndLayout.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", "account/edit.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "account/edit.html.twig"));
$this->parent = $this->loadTemplate("layout/backEndLayout.html.twig", "account/edit.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
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 5
echo " \t ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
<link rel=\"stylesheet\" href=\"";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/css/bootstrap-datepicker.css"), "html", null, true);
echo "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 10
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"));
// line 11
echo " ";
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 11, $this->source); })()), ["bootstrap_4_layout.html.twig"], true);
// line 12
echo "<div class=\"container bootstrap snippets bootdey\">
<h1 class=\"text-primary\"></h1>
";
// line 14
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 14, $this->source); })()), 'form_start');
echo "
<hr>
\t<div class=\"row\">
<!-- left column -->
<div class=\"col-md-3\">
<div class=\"text-center\">
<img src=\"";
// line 21
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 21, $this->source); })()), "user", [], "any", false, false, false, 21), "avatar", [75], "method", false, false, false, 21), "html", null, true);
echo "\" class=\"shadow rounded-circle\" alt=\"avatar\">
<span class=\"glyphicon glyphicon-user\"></span>Choose your image or profile icon by clicking
<a class=\"btn btn-secondary fw-bold \" href=\"https://fr.gravatar.com/\">
here
</a>
</div>
</div>
<!-- edit form column -->
<div class=\"col-md-9 personal-info\">
<h3 class=\" card-header text-center\">Personal info</h3>
<form class=\"form-horizontal mx-auto\" role=\"form\">
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 39
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 39, $this->source); })()), "fullName", [], "any", false, false, false, 39), 'row');
echo "
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 45
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 45, $this->source); })()), "phoneNumber", [], "any", false, false, false, 45), 'row');
echo "
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 51
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 51, $this->source); })()), "birthday", [], "any", false, false, false, 51), 'row');
echo "
</div>
</div>
";
// line 54
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 55
echo " <div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 58
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 58, $this->source); })()), "email", [], "any", false, false, false, 58), 'row');
echo "
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 64
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 64, $this->source); })()), "status", [], "any", false, false, false, 64), 'row');
echo "
</div>
</div>
";
}
// line 68
echo " <div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 71
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 71, $this->source); })()), "domain", [], "any", false, false, false, 71), 'row');
echo "
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 78
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 78, $this->source); })()), "nationality", [], "any", false, false, false, 78), 'row');
echo "
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 84
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 84, $this->source); })()), "birthplace", [], "any", false, false, false, 84), 'row');
echo "
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 90
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 90, $this->source); })()), "region", [], "any", false, false, false, 90), 'row');
echo "
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 96
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 96, $this->source); })()), "department", [], "any", false, false, false, 96), 'row');
echo "
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 101
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 101, $this->source); })()), "location", [], "any", false, false, false, 101), 'row');
echo "
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 106
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 106, $this->source); })()), "academicLevel", [], "any", false, false, false, 106), 'row');
echo "
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 111
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 111, $this->source); })()), "gender", [], "any", false, false, false, 111), 'row');
echo "
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 116
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 116, $this->source); })()), "numCni", [], "any", false, false, false, 116), 'row');
echo "
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 121
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 121, $this->source); })()), "securityQuestion", [], "any", false, false, false, 121), 'row');
echo "
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
";
// line 126
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 126, $this->source); })()), "securityAnswer", [], "any", false, false, false, 126), 'row');
echo "
</div>
</div>
<br/>
<div class=\"form-group mx-auto\">
<div class=\"col-lg-6\">
<button class=\"btn btn-lg btn-primary btn-block\" type=\"submit\">Apply changes</button>
</div>
</div>
</div>
</div>
</div>
<hr>
";
// line 143
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 143, $this->source); })()), 'form_end');
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 146
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 147
echo " \t ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"";
// line 148
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/js/bootstrap-datepicker.min.js"), "html", null, true);
echo "\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "account/edit.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 320 => 148, 315 => 147, 305 => 146, 293 => 143, 273 => 126, 265 => 121, 257 => 116, 249 => 111, 241 => 106, 233 => 101, 225 => 96, 216 => 90, 207 => 84, 198 => 78, 188 => 71, 183 => 68, 176 => 64, 167 => 58, 162 => 55, 160 => 54, 154 => 51, 145 => 45, 136 => 39, 115 => 21, 105 => 14, 101 => 12, 98 => 11, 88 => 10, 75 => 6, 70 => 5, 60 => 4, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"layout/backEndLayout.html.twig\" %}
{% block stylesheets %}
\t {{parent()}}
<link rel=\"stylesheet\" href=\"{{ asset('//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/css/bootstrap-datepicker.css') }}\">
{% endblock %}
{% block content %}
{% form_theme form 'bootstrap_4_layout.html.twig' %}
<div class=\"container bootstrap snippets bootdey\">
<h1 class=\"text-primary\"></h1>
{{ form_start(form ) }}
<hr>
\t<div class=\"row\">
<!-- left column -->
<div class=\"col-md-3\">
<div class=\"text-center\">
<img src=\"{{ app.user.avatar(75) }}\" class=\"shadow rounded-circle\" alt=\"avatar\">
<span class=\"glyphicon glyphicon-user\"></span>Choose your image or profile icon by clicking
<a class=\"btn btn-secondary fw-bold \" href=\"https://fr.gravatar.com/\">
here
</a>
</div>
</div>
<!-- edit form column -->
<div class=\"col-md-9 personal-info\">
<h3 class=\" card-header text-center\">Personal info</h3>
<form class=\"form-horizontal mx-auto\" role=\"form\">
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.fullName)}}
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.phoneNumber)}}
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.birthday)}}
</div>
</div>
{% if is_granted('ROLE_ADMIN') %}
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.email)}}
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.status)}}
</div>
</div>
{% endif %}
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.domain)}}
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.nationality)}}
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.birthplace)}}
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.region)}}
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.department)}}
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.location)}}
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.academicLevel)}}
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.gender)}}
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.numCni)}}
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.securityQuestion)}}
</div>
</div>
<div class=\"form-group\">
<div class=\"col-lg-8\">
{{form_row(form.securityAnswer)}}
</div>
</div>
<br/>
<div class=\"form-group mx-auto\">
<div class=\"col-lg-6\">
<button class=\"btn btn-lg btn-primary btn-block\" type=\"submit\">Apply changes</button>
</div>
</div>
</div>
</div>
</div>
<hr>
{{ form_end(form ) }}
{% endblock %}
{% block javascripts %}
\t {{parent()}}
<script src=\"{{ asset('//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/js/bootstrap-datepicker.min.js') }}\"></script>
{% endblock %}", "account/edit.html.twig", "/var/www/prod/current/templates/account/edit.html.twig");
}
}