var/cache/dev/twig/6e/6e1f113b9d3bada7baa7f228952e8c2479a1e5f6f3da1f73162c2bc7617316d5.php line 48

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* auth/register.html.twig */
  14. class __TwigTemplate_8613ccedbb709a8c3e1de792e8243813c619cbc7dee60e90317899562043822b extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source = $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this, 'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "layout.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros = $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "auth/register.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "auth/register.html.twig"));
  38.         $this->parent = $this->loadTemplate("layout.html.twig", "auth/register.html.twig", 1);
  39.         $this->parent->display($context, array_merge($this->blocks, $blocks));
  40.         
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  42.         
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  44.     }
  45.     // line 3
  46.     public function block_content($context, array $blocks = [])
  47.     {
  48.         $macros = $this->macros;
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  53.         // line 4
  54.         echo "<main id=\"main\" role=\"main\">
  55.     <section id=\"connexion-page\" class=\"apk-connexion\">
  56.         <div class=\"uk-container apk-container-600\">
  57.             <div class=\"uk-text-center\">
  58.                 <h1 class=\"uk-h2\">";
  59.         // line 8
  60.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Inscription"), "html", null, true);
  61.         echo "</h1>                            
  62.             </div>
  63.             <div class=\"apk-auth-card\">
  64.             ";
  65.         // line 11
  66.         if (array_key_exists("message", $context)) {
  67.             // line 12
  68.             echo "                
  69.                     <div class=\"uk-alert-success\" uk-alert>
  70.                         ";
  71.             // line 14
  72.             echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 14, $this->source); })()));
  73.             echo "
  74.                     </div>
  75.             ";
  76.         } else {
  77.             // line 17
  78.             echo "                    
  79.                 <form class=\"uk-margin-medium-top\" action=\"";
  80.             // line 18
  81.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register");
  82.             echo "\" method=\"post\" id=\"register\">
  83.                     ";
  84.             // line 20
  85.             if (array_key_exists("error", $context)) {
  86.                 // line 21
  87.                 echo "                        <div class=\"uk-alert-danger uk-margin-bottom\" uk-alert>
  88.                             ";
  89.                 // line 22
  90.                 echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 22, $this->source); })())), "html", null, true);
  91.                 echo "
  92.                         </div>
  93.                     ";
  94.             }
  95.             // line 24
  96.             echo "                
  97.                     <div>
  98.                         <label for=\"gender\">";
  99.             // line 26
  100.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Civilité"), "html", null, true);
  101.             echo "</label>
  102.                         <select class=\"uk-select uk-margin-small-top\" name=\"gender\" id=\"gender\">
  103.                             <option value=\"\">";
  104.             // line 28
  105.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Sélectionnez une option"), "html", null, true);
  106.             echo "</option>
  107.                             <option value=\"female\" ";
  108.             // line 29
  109.             echo (((twig_get_attribute($this->env, $this->source, (isset($context["previousValues"]) || array_key_exists("previousValues", $context) ? $context["previousValues"] : (function () { throw new RuntimeError('Variable "previousValues" does not exist.', 29, $this->source); })()), "gender", [], "array", false, false, false, 29) == "female")) ? ("selected") : (""));
  110.             echo ">
  111.                                 ";
  112.             // line 30
  113.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Madame"), "html", null, true);
  114.             echo "
  115.                             </option>
  116.                             <option value=\"male\" ";
  117.             // line 32
  118.             echo (((twig_get_attribute($this->env, $this->source, (isset($context["previousValues"]) || array_key_exists("previousValues", $context) ? $context["previousValues"] : (function () { throw new RuntimeError('Variable "previousValues" does not exist.', 32, $this->source); })()), "gender", [], "array", false, false, false, 32) == "male")) ? ("selected") : (""));
  119.             echo ">
  120.                                 ";
  121.             // line 33
  122.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Monsieur"), "html", null, true);
  123.             echo "
  124.                             </option>
  125.                             <option value=\"other\" ";
  126.             // line 35
  127.             echo (((twig_get_attribute($this->env, $this->source, (isset($context["previousValues"]) || array_key_exists("previousValues", $context) ? $context["previousValues"] : (function () { throw new RuntimeError('Variable "previousValues" does not exist.', 35, $this->source); })()), "gender", [], "array", false, false, false, 35) == "other")) ? ("selected") : (""));
  128.             echo ">
  129.                                 ";
  130.             // line 36
  131.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Autre"), "html", null, true);
  132.             echo "
  133.                             </option>
  134.                         </select>
  135.                     </div>
  136.                     <div class=\"uk-margin-top\">
  137.                         <label for=\"firstname\">";
  138.             // line 41
  139.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Prénom"), "html", null, true);
  140.             echo "</label>
  141.                         <input class=\"uk-input uk-margin-small-top\" type=\"text\" name=\"firstname\" value=\"";
  142.             // line 42
  143.             (((twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "firstname", [], "array", true, true, false, 42) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "firstname", [], "array", false, false, false, 42)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "firstname", [], "array", false, false, false, 42), "html", null, true))) : (print (null)));
  144.             echo "\" id=\"firstname\">
  145.                     </div>
  146.                     <div class=\"uk-margin-top\">
  147.                         <label for=\"lastname\">";
  148.             // line 45
  149.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nom"), "html", null, true);
  150.             echo "</label>
  151.                         <input class=\"uk-input uk-margin-small-top\" type=\"text\" name=\"lastname\" value=\"";
  152.             // line 46
  153.             (((twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "lastname", [], "array", true, true, false, 46) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "lastname", [], "array", false, false, false, 46)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "lastname", [], "array", false, false, false, 46), "html", null, true))) : (print (null)));
  154.             echo "\" id=\"lastname\">
  155.                     </div>
  156.                     <div class=\"uk-margin-top\">
  157.                         <label for=\"phone\">";
  158.             // line 49
  159.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Téléphone"), "html", null, true);
  160.             echo "</label>
  161.                         <input class=\"uk-input uk-margin-small-top\" type=\"phone\" name=\"phone\" value=\"";
  162.             // line 50
  163.             (((twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "phone", [], "array", true, true, false, 50) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "phone", [], "array", false, false, false, 50)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "phone", [], "array", false, false, false, 50), "html", null, true))) : (print (null)));
  164.             echo "\" id=\"phone\">
  165.                     </div>
  166.                     <div class=\"uk-margin-top\">
  167.                         <label for=\"email\">";
  168.             // line 53
  169.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email"), "html", null, true);
  170.             echo "</label>
  171.                         <input class=\"uk-input uk-margin-small-top\" type=\"email\" name=\"email\" value=\"";
  172.             // line 54
  173.             (((twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "email", [], "array", true, true, false, 54) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "email", [], "array", false, false, false, 54)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "email", [], "array", false, false, false, 54), "html", null, true))) : (print (null)));
  174.             echo "\" id=\"email\">
  175.                     </div>
  176.                     <div class=\"uk-margin-top\">
  177.                         <label for=\"confirm-email\">";
  178.             // line 57
  179.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Confirmer Email"), "html", null, true);
  180.             echo "</label>
  181.                         <input class=\"uk-input uk-margin-small-top\" type=\"confirm-email\" name=\"confirm-email\" value=\"";
  182.             // line 58
  183.             (((twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "confirm-email", [], "array", true, true, false, 58) &&  !(null === twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "confirm-email", [], "array", false, false, false, 58)))) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["previousValues"] ?? null), "confirm-email", [], "array", false, false, false, 58), "html", null, true))) : (print (null)));
  184.             echo "\" id=\"confirm-email\">
  185.                     </div>
  186.                     
  187.                     <div class=\"uk-margin-top\">
  188.                         <label for=\"password\">";
  189.             // line 62
  190.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Mot de passe"), "html", null, true);
  191.             echo "</label>
  192.                         <input class=\"uk-input uk-margin-small-top\" type=\"password\" name=\"password\" id=\"password\">
  193.                     </div>
  194.                     <div class=\"uk-margin-top\">
  195.                         <label for=\"confirm-password\">";
  196.             // line 66
  197.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Confirmer mot de passe"), "html", null, true);
  198.             echo "</label>
  199.                         <input class=\"uk-input uk-margin-small-top\" type=\"password\" name=\"confirm-password\" id=\"confirm-password\">
  200.                     </div>
  201.                     <div class=\"uk-margin-top uk-flex\">
  202.                         <div class=\"uk-width-auto\">
  203.                             <input type=\"checkbox\" class=\"uk-checkbox\" id=\"gdpr\" name=\"gdpr\" required />
  204.                         </div>
  205.                         <div class=\"uk-width-expand\">
  206.                             <label for=\"gdpr\">";
  207.             // line 75
  208.             echo "J'accepte que mes données soient enreigstrées à des fins non-marketing.";
  209.             echo "</label>
  210.                         </div>
  211.                         
  212.                     </div>
  213.                     <div class=\"uk-margin-medium-top uk-text-center\">
  214.                         <button class=\"uk-button uk-button-blue1 uk-button-large uk-text-uppercase\" type=\"submit\">";
  215.             // line 81
  216.             echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("S'inscrire"), "html", null, true);
  217.             echo "</button>
  218.                     </div>
  219.                 </form>
  220.             ";
  221.         }
  222.         // line 86
  223.         echo "            </div>
  224.         </div>
  225.     </section>
  226. </main>
  227. ";
  228.         
  229.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  230.         
  231.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  232.     }
  233.     public function getTemplateName()
  234.     {
  235.         return "auth/register.html.twig";
  236.     }
  237.     public function isTraitable()
  238.     {
  239.         return false;
  240.     }
  241.     public function getDebugInfo()
  242.     {
  243.         return array (  241 => 86,  233 => 81,  224 => 75,  212 => 66,  205 => 62,  198 => 58,  194 => 57,  188 => 54,  184 => 53,  178 => 50,  174 => 49,  168 => 46,  164 => 45,  158 => 42,  154 => 41,  146 => 36,  142 => 35,  137 => 33,  133 => 32,  128 => 30,  124 => 29,  120 => 28,  115 => 26,  111 => 24,  105 => 22,  102 => 21,  100 => 20,  95 => 18,  92 => 17,  86 => 14,  82 => 12,  80 => 11,  74 => 8,  68 => 4,  58 => 3,  35 => 1,);
  244.     }
  245.     public function getSourceContext()
  246.     {
  247.         return new Source("{% extends 'layout.html.twig' %}
  248. {% block content %}
  249. <main id=\"main\" role=\"main\">
  250.     <section id=\"connexion-page\" class=\"apk-connexion\">
  251.         <div class=\"uk-container apk-container-600\">
  252.             <div class=\"uk-text-center\">
  253.                 <h1 class=\"uk-h2\">{{'Inscription' |trans}}</h1>                            
  254.             </div>
  255.             <div class=\"apk-auth-card\">
  256.             {% if message is defined %}
  257.                 
  258.                     <div class=\"uk-alert-success\" uk-alert>
  259.                         {{message |trans|raw}}
  260.                     </div>
  261.             {% else %}
  262.                     
  263.                 <form class=\"uk-margin-medium-top\" action=\"{{path('register')}}\" method=\"post\" id=\"register\">
  264.                     {% if error is defined %}
  265.                         <div class=\"uk-alert-danger uk-margin-bottom\" uk-alert>
  266.                             {{error |trans}}
  267.                         </div>
  268.                     {% endif %}                
  269.                     <div>
  270.                         <label for=\"gender\">{{'Civilité' |trans}}</label>
  271.                         <select class=\"uk-select uk-margin-small-top\" name=\"gender\" id=\"gender\">
  272.                             <option value=\"\">{{'Sélectionnez une option' |trans}}</option>
  273.                             <option value=\"female\" {{previousValues['gender'] == 'female' ? 'selected' : ''}}>
  274.                                 {{'Madame'|trans}}
  275.                             </option>
  276.                             <option value=\"male\" {{previousValues['gender'] == 'male' ? 'selected' : ''}}>
  277.                                 {{'Monsieur'|trans }}
  278.                             </option>
  279.                             <option value=\"other\" {{previousValues['gender'] == 'other' ? 'selected' : ''}}>
  280.                                 {{'Autre'|trans }}
  281.                             </option>
  282.                         </select>
  283.                     </div>
  284.                     <div class=\"uk-margin-top\">
  285.                         <label for=\"firstname\">{{'Prénom'|trans}}</label>
  286.                         <input class=\"uk-input uk-margin-small-top\" type=\"text\" name=\"firstname\" value=\"{{previousValues[\"firstname\"] ?? null}}\" id=\"firstname\">
  287.                     </div>
  288.                     <div class=\"uk-margin-top\">
  289.                         <label for=\"lastname\">{{'Nom' |trans}}</label>
  290.                         <input class=\"uk-input uk-margin-small-top\" type=\"text\" name=\"lastname\" value=\"{{previousValues[\"lastname\"] ?? null}}\" id=\"lastname\">
  291.                     </div>
  292.                     <div class=\"uk-margin-top\">
  293.                         <label for=\"phone\">{{'Téléphone'| trans}}</label>
  294.                         <input class=\"uk-input uk-margin-small-top\" type=\"phone\" name=\"phone\" value=\"{{previousValues[\"phone\"] ?? null}}\" id=\"phone\">
  295.                     </div>
  296.                     <div class=\"uk-margin-top\">
  297.                         <label for=\"email\">{{'Email' | trans}}</label>
  298.                         <input class=\"uk-input uk-margin-small-top\" type=\"email\" name=\"email\" value=\"{{previousValues[\"email\"] ?? null}}\" id=\"email\">
  299.                     </div>
  300.                     <div class=\"uk-margin-top\">
  301.                         <label for=\"confirm-email\">{{'Confirmer Email' | trans}}</label>
  302.                         <input class=\"uk-input uk-margin-small-top\" type=\"confirm-email\" name=\"confirm-email\" value=\"{{previousValues[\"confirm-email\"] ?? null}}\" id=\"confirm-email\">
  303.                     </div>
  304.                     
  305.                     <div class=\"uk-margin-top\">
  306.                         <label for=\"password\">{{'Mot de passe'|trans}}</label>
  307.                         <input class=\"uk-input uk-margin-small-top\" type=\"password\" name=\"password\" id=\"password\">
  308.                     </div>
  309.                     <div class=\"uk-margin-top\">
  310.                         <label for=\"confirm-password\">{{'Confirmer mot de passe'|trans}}</label>
  311.                         <input class=\"uk-input uk-margin-small-top\" type=\"password\" name=\"confirm-password\" id=\"confirm-password\">
  312.                     </div>
  313.                     <div class=\"uk-margin-top uk-flex\">
  314.                         <div class=\"uk-width-auto\">
  315.                             <input type=\"checkbox\" class=\"uk-checkbox\" id=\"gdpr\" name=\"gdpr\" required />
  316.                         </div>
  317.                         <div class=\"uk-width-expand\">
  318.                             <label for=\"gdpr\">{{ \"J'accepte que mes données soient enreigstrées à des fins non-marketing.\" }}</label>
  319.                         </div>
  320.                         
  321.                     </div>
  322.                     <div class=\"uk-margin-medium-top uk-text-center\">
  323.                         <button class=\"uk-button uk-button-blue1 uk-button-large uk-text-uppercase\" type=\"submit\">{{'S\\'inscrire'|trans}}</button>
  324.                     </div>
  325.                 </form>
  326.             {% endif %}
  327.             </div>
  328.         </div>
  329.     </section>
  330. </main>
  331. {%  endblock %}", "auth/register.html.twig", "/var/www/mynursery.apik-pp.be/www/templates/auth/register.html.twig");
  332.     }
  333. }