var/cache/dev/api-edenwork.dtv-projects.com/twig/9c/9c4fd4fd854ec3c802863809867d64dd.php line 50

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* security/request.html.twig */
  15. class __TwigTemplate_5727ed1eb7716fde4266c9f8f1a7afd0 extends Template
  16. {
  17. private $source;
  18. private $macros = [];
  19. public function __construct(Environment $env)
  20. {
  21. parent::__construct($env);
  22. $this->source = $this->getSourceContext();
  23. $this->blocks = [
  24. 'bodyclass' => [$this, 'block_bodyclass'],
  25. 'content' => [$this, 'block_content'],
  26. ];
  27. }
  28. protected function doGetParent(array $context)
  29. {
  30. // line 1
  31. return "security/layout.html.twig";
  32. }
  33. protected function doDisplay(array $context, array $blocks = [])
  34. {
  35. $macros = $this->macros;
  36. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/request.html.twig"));
  38. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/request.html.twig"));
  40. $this->parent = $this->loadTemplate("security/layout.html.twig", "security/request.html.twig", 1);
  41. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44. }
  45. // line 3
  46. public function block_bodyclass($context, array $blocks = [])
  47. {
  48. $macros = $this->macros;
  49. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyclass"));
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyclass"));
  53. yield "security";
  54. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  55. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  56. return; yield '';
  57. }
  58. // line 5
  59. public function block_content($context, array $blocks = [])
  60. {
  61. $macros = $this->macros;
  62. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  63. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  64. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  65. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  66. // line 6
  67. yield " ";
  68. $context["pageData"] = false;
  69. // line 7
  70. yield " ";
  71. if ($this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.request")) {
  72. // line 8
  73. yield " ";
  74. $context["pageData"] = $this->env->getRuntime('App\Twig\YamlOrSettingRuntime')->platformFront("security.request");
  75. // line 9
  76. yield " ";
  77. }
  78. // line 10
  79. yield " ";
  80. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 10, $this->source); })()), 'form_start');
  81. yield "
  82. <div class=\"";
  83. // line 11
  84. if (((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 11, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "wrapper", [], "any", true, true, false, 11))) {
  85. yield " ";
  86. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 11, $this->source); })()), "wrapper", [], "any", false, false, false, 11), "html", null, true);
  87. }
  88. yield "\">
  89. <div class=\"col-md-6 col-lg-4 ";
  90. // line 12
  91. if (((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 12, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "container", [], "any", true, true, false, 12))) {
  92. yield " ";
  93. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 12, $this->source); })()), "container", [], "any", false, false, false, 12), "html", null, true);
  94. }
  95. yield "\">
  96. ";
  97. // line 13
  98. if (CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "title", [], "any", true, true, false, 13)) {
  99. // line 14
  100. yield " ";
  101. yield from $this->loadTemplate("@component/atom/title.html.twig", "security/request.html.twig", 14)->unwrap()->yield(CoreExtension::merge($context, ["title" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 14, $this->source); })()), "title", [], "any", false, false, false, 14)]));
  102. // line 15
  103. yield " ";
  104. } else {
  105. // line 16
  106. yield " <h1>";
  107. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), $this->extensions['App\Twig\TwigExtension']->customTrans("mot de passe oublié ?")), "html", null, true);
  108. yield "</h1>
  109. ";
  110. }
  111. // line 18
  112. yield " <div class=\"";
  113. if ((((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 18, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "form", [], "any", true, true, false, 18)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "form", [], "any", false, true, false, 18), "row", [], "any", true, true, false, 18))) {
  114. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 18, $this->source); })()), "form", [], "any", false, false, false, 18), "row", [], "any", false, false, false, 18), "html", null, true);
  115. } else {
  116. yield "col-12";
  117. }
  118. yield "\">
  119. <div class=\"";
  120. // line 19
  121. if ((((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 19, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "form", [], "any", true, true, false, 19)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "form", [], "any", false, true, false, 19), "label", [], "any", true, true, false, 19))) {
  122. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 19, $this->source); })()), "form", [], "any", false, false, false, 19), "label", [], "any", false, false, false, 19), "html", null, true);
  123. } else {
  124. yield "col-12";
  125. }
  126. yield "\">
  127. ";
  128. // line 20
  129. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 20, $this->source); })()), "email", [], "any", false, false, false, 20), 'label');
  130. yield "
  131. </div>
  132. <div class=\"";
  133. // line 22
  134. if ((((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 22, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "form", [], "any", true, true, false, 22)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "form", [], "any", false, true, false, 22), "input", [], "any", true, true, false, 22))) {
  135. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 22, $this->source); })()), "form", [], "any", false, false, false, 22), "input", [], "any", false, false, false, 22), "html", null, true);
  136. } else {
  137. yield "col-12";
  138. }
  139. yield "\">
  140. ";
  141. // line 23
  142. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 23, $this->source); })()), "email", [], "any", false, false, false, 23), 'widget');
  143. yield "
  144. </div>
  145. </div>
  146. <div class=\"";
  147. // line 26
  148. if ((((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 26, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "button", [], "any", true, true, false, 26)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "button", [], "any", false, true, false, 26), "wrapper", [], "any", true, true, false, 26))) {
  149. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 26, $this->source); })()), "button", [], "any", false, false, false, 26), "wrapper", [], "any", false, false, false, 26), "html", null, true);
  150. } else {
  151. yield "col-12";
  152. }
  153. yield "\">
  154. <input type=\"submit\"
  155. class=\"";
  156. // line 28
  157. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "button", [], "any", false, true, false, 28), "class", [], "any", true, true, false, 28)) {
  158. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 28, $this->source); })()), "button", [], "any", false, false, false, 28), "class", [], "any", false, false, false, 28), "html", null, true);
  159. } else {
  160. yield "btn btn-secondary text-uppercase";
  161. }
  162. yield "\"
  163. value=\"";
  164. // line 29
  165. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "button", [], "any", false, true, false, 29), "content", [], "any", true, true, false, 29)) {
  166. yield $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 29, $this->source); })()), "button", [], "any", false, false, false, 29), "content", [], "any", false, false, false, 29));
  167. } else {
  168. yield "Réinitialiser le mot de passe";
  169. }
  170. yield "\">
  171. </div>
  172. <div class=\"";
  173. // line 31
  174. if ((((isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 31, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "back", [], "any", true, true, false, 31)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "back", [], "any", false, true, false, 31), "wrapper", [], "any", true, true, false, 31))) {
  175. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 31, $this->source); })()), "back", [], "any", false, false, false, 31), "wrapper", [], "any", false, false, false, 31), "html", null, true);
  176. } else {
  177. yield "col-12";
  178. }
  179. yield "\">
  180. <a href=\"";
  181. // line 32
  182. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  183. yield "\"
  184. class=\"btn-security-back ";
  185. // line 33
  186. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "back", [], "any", false, true, false, 33), "class", [], "any", true, true, false, 33)) {
  187. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 33, $this->source); })()), "back", [], "any", false, false, false, 33), "class", [], "any", false, false, false, 33), "html", null, true);
  188. } else {
  189. yield "btn btn-default";
  190. }
  191. yield "\">
  192. <i class=\"fa fa-arrow-left\"></i>
  193. ";
  194. // line 35
  195. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["pageData"] ?? null), "back", [], "any", false, true, false, 35), "content", [], "any", true, true, false, 35)) {
  196. yield $this->extensions['App\Twig\TwigExtension']->customTrans(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["pageData"]) || array_key_exists("pageData", $context) ? $context["pageData"] : (function () { throw new RuntimeError('Variable "pageData" does not exist.', 35, $this->source); })()), "back", [], "any", false, false, false, 35), "content", [], "any", false, false, false, 35));
  197. } else {
  198. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), $this->extensions['App\Twig\TwigExtension']->customTrans("retour")), "html", null, true);
  199. }
  200. // line 36
  201. yield " </a>
  202. </div>
  203. </div>
  204. </div>
  205. ";
  206. // line 41
  207. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 41, $this->source); })()), 'form_end');
  208. yield "
  209. ";
  210. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  211. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  212. return; yield '';
  213. }
  214. /**
  215. * @codeCoverageIgnore
  216. */
  217. public function getTemplateName()
  218. {
  219. return "security/request.html.twig";
  220. }
  221. /**
  222. * @codeCoverageIgnore
  223. */
  224. public function isTraitable()
  225. {
  226. return false;
  227. }
  228. /**
  229. * @codeCoverageIgnore
  230. */
  231. public function getDebugInfo()
  232. {
  233. return array ( 231 => 41, 224 => 36, 218 => 35, 209 => 33, 205 => 32, 197 => 31, 188 => 29, 180 => 28, 171 => 26, 165 => 23, 157 => 22, 152 => 20, 144 => 19, 135 => 18, 129 => 16, 126 => 15, 123 => 14, 121 => 13, 114 => 12, 107 => 11, 102 => 10, 99 => 9, 96 => 8, 93 => 7, 90 => 6, 80 => 5, 60 => 3, 37 => 1,);
  234. }
  235. public function getSourceContext()
  236. {
  237. return new Source("{% extends 'security/layout.html.twig' %}
  238. {% block bodyclass %}security{% endblock %}
  239. {% block content %}
  240. {% set pageData = false %}
  241. {% if platform_front('security.request') %}
  242. {% set pageData = platform_front('security.request') %}
  243. {% endif %}
  244. {{ form_start(requestForm) }}
  245. <div class=\"{% if pageData and pageData.wrapper is defined %} {{ pageData.wrapper}}{% endif %}\">
  246. <div class=\"col-md-6 col-lg-4 {% if pageData and pageData.container is defined %} {{ pageData.container}}{% endif %}\">
  247. {% if pageData.title is defined %}
  248. {% include '@component/atom/title.html.twig' with {'title': pageData.title} %}
  249. {% else %}
  250. <h1>{{ 'mot de passe oublié ?'|trans|capitalize }}</h1>
  251. {%endif%}
  252. <div class=\"{% if pageData and pageData.form is defined and pageData.form.row is defined %}{{ pageData.form.row}}{%else%}col-12{% endif %}\">
  253. <div class=\"{% if pageData and pageData.form is defined and pageData.form.label is defined %}{{ pageData.form.label }}{% else %}col-12{% endif %}\">
  254. {{ form_label(requestForm.email) }}
  255. </div>
  256. <div class=\"{% if pageData and pageData.form is defined and pageData.form.input is defined %}{{ pageData.form.input }}{% else %}col-12{% endif %}\">
  257. {{ form_widget(requestForm.email) }}
  258. </div>
  259. </div>
  260. <div class=\"{% if pageData and pageData.button is defined and pageData.button.wrapper is defined %}{{ pageData.button.wrapper }}{% else %}col-12{% endif %}\">
  261. <input type=\"submit\"
  262. class=\"{% if pageData.button.class is defined %}{{ pageData.button.class }}{% else %}btn btn-secondary text-uppercase{% endif %}\"
  263. value=\"{% if pageData.button.content is defined %}{{ pageData.button.content|trans }}{% else %}Réinitialiser le mot de passe{% endif %}\">
  264. </div>
  265. <div class=\"{% if pageData and pageData.back is defined and pageData.back.wrapper is defined %}{{ pageData.back.wrapper }}{% else %}col-12{% endif %}\">
  266. <a href=\"{{ path('app_login') }}\"
  267. class=\"btn-security-back {% if pageData.back.class is defined %}{{ pageData.back.class }}{% else %}btn btn-default{% endif %}\">
  268. <i class=\"fa fa-arrow-left\"></i>
  269. {% if pageData.back.content is defined %}{{ pageData.back.content|trans }}{% else %}{{ 'retour'|trans|capitalize }}{% endif %}
  270. </a>
  271. </div>
  272. </div>
  273. </div>
  274. {{ form_end(requestForm) }}
  275. {% endblock content %}
  276. ", "security/request.html.twig", "/var/www/dtv-preprod/current/templates/security/request.html.twig");
  277. }
  278. }