var/cache/dev/twig/ec/ec531cf10a03c9dee8c5506bf41a94cd1be701ec637b26481d7551a8ab41c4ab.php line 166

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. /* @templates/Account/Register/_register_form.html.twig */
  14. class __TwigTemplate_9ca563db760080c7de3ddd4eed5ff2b49cef163d7bccb448bd7da5c8074b13d0 extends \Twig\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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@templates/Account/Register/_register_form.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@templates/Account/Register/_register_form.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"card my-4\">
  35.     <div class=\"card-body\">
  36.         <form id=\"registerForm\">
  37.             <div class=\"row my-2\">
  38.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  39.                     <label for=\"customerLastName\"
  40.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  41.         // line 7
  42.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.last_name"), "html"nulltrue);
  43.         echo "
  44.                         *</label>
  45.                     <input placeholder=\"";
  46.         // line 9
  47.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.last_name"), "html"nulltrue);
  48.         echo "*\"
  49.                            name=\"customerLastName\" type=\"text\"
  50.                            id=\"customerLastName\"
  51.                            class=\"form-control input-custom input-custom-grey\"
  52.                            required>
  53.                 </div>
  54.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  55.                     <label for=\"customerFirstName\"
  56.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  57.         // line 17
  58.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.first_name"), "html"nulltrue);
  59.         echo "
  60.                         *</label>
  61.                     <input placeholder=\"";
  62.         // line 19
  63.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.first_name"), "html"nulltrue);
  64.         echo "*\"
  65.                            name=\"customerFirstName\" type=\"text\"
  66.                            id=\"customerFirstName\"
  67.                            class=\"form-control input-custom input-custom-grey\"
  68.                            required>
  69.                 </div>
  70.             </div>
  71.             <div class=\"row my-3\">
  72.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  73.                     <label for=\"customerEmail\"
  74.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  75.         // line 29
  76.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.email"), "html"nulltrue);
  77.         echo "
  78.                         *</label>
  79.                     <input placeholder=\"";
  80.         // line 31
  81.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.email"), "html"nulltrue);
  82.         echo "*\"
  83.                            name=\"customerEmail\" type=\"email\"
  84.                            id=\"customerEmail\"
  85.                            class=\"form-control input-custom input-custom-grey\"
  86.                            required>
  87.                 </div>
  88.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  89.                     <label for=\"customerPhoneNumber\"
  90.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  91.         // line 39
  92.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.phone_number"), "html"nulltrue);
  93.         echo "
  94.                         *</label>
  95.                     <input placeholder=\"";
  96.         // line 41
  97.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.phone_number"), "html"nulltrue);
  98.         echo "*\"
  99.                            name=\"customerPhoneNumber\" type=\"text\"
  100.                            id=\"customerPhoneNumber\"
  101.                            class=\"form-control input-custom input-custom-grey\"
  102.                            required>
  103.                 </div>
  104.             </div>
  105.             <div class=\"row my-3\">
  106.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  107.                     <label for=\"customerPassword\"
  108.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  109.         // line 51
  110.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.password"), "html"nulltrue);
  111.         echo "
  112.                         *</label>
  113.                     <input placeholder=\"";
  114.         // line 53
  115.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.password"), "html"nulltrue);
  116.         echo "*\"
  117.                            name=\"customerPassword\" type=\"password\"
  118.                            id=\"customerPassword\"
  119.                            class=\"form-control input-custom input-custom-grey\"
  120.                            required>
  121.                 </div>
  122.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  123.                     <label for=\"customerConfirmationPassword\"
  124.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  125.         // line 61
  126.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.repeat_new_password"), "html"nulltrue);
  127.         echo "
  128.                         *</label>
  129.                     <input placeholder=\"";
  130.         // line 63
  131.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.repeat_new_password"), "html"nulltrue);
  132.         echo "*\"
  133.                            name=\"customerConfirmationPassword\" type=\"password\"
  134.                            id=\"customerConfirmationPassword\"
  135.                            class=\"form-control input-custom input-custom-grey\"
  136.                            required>
  137.                 </div>
  138.             </div>
  139.             <div class=\"row my-3\">
  140.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  141.                     <label for=\"customerCountry\"
  142.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  143.         // line 73
  144.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country"), "html"nulltrue);
  145.         echo "
  146.                         *</label>
  147.                     <select name=\"customerCountry\" id=\"customerCountry\"
  148.                             class=\"form-control input-custom input-custom-grey input-country required-message-check-input\" required>
  149.                         <option selected disabled hidden
  150.                                 value=\"\">";
  151.         // line 78
  152.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country"), "html"nulltrue);
  153.         echo "</option>
  154.                         ";
  155.         // line 79
  156.         $context['_parent'] = $context;
  157.         $context['_seq'] = twig_ensure_traversable(twig_sort_filter((isset($context["countries"]) || array_key_exists("countries"$context) ? $context["countries"] : (function () { throw new RuntimeError('Variable "countries" does not exist.'79$this->source); })()), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'79$this->source); })()), "name", [], "any"falsefalsefalse79) <=> twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'79$this->source); })()), "name", [], "any"falsefalsefalse79)); }));
  158.         foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
  159.             // line 80
  160.             echo "                            <option id=\"";
  161.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["country"], "id", [], "any"falsefalsefalse80), "html"nulltrue);
  162.             echo "\"
  163.                                     value=\"";
  164.             // line 81
  165.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["country"], "code", [], "any"falsefalsefalse81), "html"nulltrue);
  166.             echo "\">";
  167.             echo twig_escape_filter($this->env$context["country"], "html"nulltrue);
  168.             echo "</option>
  169.                         ";
  170.         }
  171.         $_parent $context['_parent'];
  172.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['country'], $context['_parent'], $context['loop']);
  173.         $context array_intersect_key($context$_parent) + $_parent;
  174.         // line 83
  175.         echo "                    </select>
  176.                 </div>
  177.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  178.                     <label for=\"customerCounty\"
  179.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  180.         // line 87
  181.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.county"), "html"nulltrue);
  182.         echo "
  183.                         *</label>
  184.                     <select id=\"customerCounty\" name=\"customerCounty\"
  185.                             class=\"form-control input-custom input-custom-grey required-message-check-input\" required>
  186.                         <option class=\"option-rca-custom\" value=\"\" selected disabled
  187.                                 hidden>";
  188.         // line 92
  189.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.please_select_a_county"), "html"nulltrue);
  190.         echo "*
  191.                         </option>
  192.                     </select>
  193.                 </div>
  194.             </div>
  195.             <div class=\"row my-3\">
  196.                 <div class=\"col-md-6 col-sm-12 mt-sm-2 city-block\">
  197.                     <label for=\"customerCity\"
  198.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  199.         // line 100
  200.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.city"), "html"nulltrue);
  201.         echo "
  202.                         *</label>
  203.                     <select id=\"customerCity\" name=\"customerCity\" type=\"text\"
  204.                             class=\"form-control input-custom input-custom-grey required-message-check-input\" required>
  205.                         <option class=\"option-rca-custom\" value=\"\" selected disabled
  206.                                 hidden>";
  207.         // line 105
  208.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.city"), "html"nulltrue);
  209.         echo "*
  210.                         </option>
  211.                     </select>
  212.                 </div>
  213.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  214.                     <label for=\"customerStreet\"
  215.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  216.         // line 111
  217.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.street"), "html"nulltrue);
  218.         echo "
  219.                         *</label>
  220.                     <input placeholder=\"";
  221.         // line 113
  222.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.street"), "html"nulltrue);
  223.         echo "*\"
  224.                            id=\"customerStreet\"
  225.                            type=\"text\" name=\"customerStreet\"
  226.                            class=\"form-control input-custom input-custom-grey required-message-check-input\" required>
  227.                 </div>
  228.             </div>
  229.             <div class=\"row my-3\">
  230.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  231.                     <label for=\"customerStreetNumber\"
  232.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  233.         // line 122
  234.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.number"), "html"nulltrue);
  235.         echo "
  236.                         *</label>
  237.                     <input placeholder=\"";
  238.         // line 124
  239.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.number"), "html"nulltrue);
  240.         echo "*\"
  241.                            name=\"customerStreetNumber\" type=\"text\"
  242.                            id=\"customerStreetNumber\"
  243.                            class=\"form-control input-custom input-custom-grey required-message-check-input\"
  244.                            required>
  245.                 </div>
  246.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  247.                     <label for=\"customerBuilding\"
  248.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  249.         // line 132
  250.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.building"), "html"nulltrue);
  251.         echo "</label>
  252.                     <input placeholder=\"";
  253.         // line 133
  254.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.building"), "html"nulltrue);
  255.         echo "\"
  256.                            id=\"customerBuilding\"
  257.                            type=\"text\" name=\"customerBuilding\"
  258.                            class=\"form-control input-custom input-custom-grey\">
  259.                 </div>
  260.             </div>
  261.             <div class=\"row my-3\">
  262.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  263.                     <label for=\"customerEntrance\"
  264.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  265.         // line 142
  266.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.entrance"), "html"nulltrue);
  267.         echo "</label>
  268.                     <input placeholder=\"";
  269.         // line 143
  270.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.entrance"), "html"nulltrue);
  271.         echo "\"
  272.                            id=\"customerEntrance\"
  273.                            type=\"text\" name=\"customerEntrance\"
  274.                            class=\"form-control input-custom input-custom-grey\">
  275.                 </div>
  276.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  277.                     <label for=\"customerApartment\"
  278.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  279.         // line 150
  280.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.apartment"), "html"nulltrue);
  281.         echo "</label>
  282.                     <input placeholder=\"";
  283.         // line 151
  284.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.apartment"), "html"nulltrue);
  285.         echo "\"
  286.                            id=\"customerApartment\"
  287.                            type=\"text\" name=\"customerApartment\"
  288.                            class=\"form-control input-custom input-custom-grey\">
  289.                 </div>
  290.             </div>
  291.             <div class=\"row\">
  292.                 <div class=\"col-12\">
  293.                     <div class=\"custom-control custom-checkbox mt-2 register-block\">
  294.                         <input type=\"checkbox\" name=\"subscribeToNewsletter\" id=\"subscribeToNewsletter\"
  295.                                class=\"custom-control-input\">
  296.                         <label for=\"subscribeToNewsletter\" class=\"custom-control-label\">
  297.                             <a class=\"text-dark\"
  298.                                style=\"letter-spacing: 0.01em;\">";
  299.         // line 164
  300.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.newsletter_confirmation");
  301.         echo "</a>
  302.                         </label>
  303.                     </div>
  304.                 </div>
  305.             </div>
  306.             <div class=\"row my-3\">
  307.                 <div class=\"col-6\">
  308.                     <div class=\"custom-control custom-radio d-flex justify-content-center align-items-center align-content-center text-center\"
  309.                          style=\"height: 40px;\">
  310.                         <input type=\"radio\" id=\"simpleCustomer\" name=\"customerType\"
  311.                                class=\"custom-control-input\" value=\"0\" required checked>
  312.                         <label class=\"custom-control-label\" for=\"simpleCustomer\"><h5
  313.                                     class=\"font-weight-normal\">";
  314.         // line 177
  315.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.natural_person"), "html"nulltrue);
  316.         echo "</h5>
  317.                         </label>
  318.                     </div>
  319.                 </div>
  320.                 <div class=\"col-6 mt-sm-2\">
  321.                     <div
  322.                             class=\"custom-control custom-radio d-flex justify-content-center align-items-center align-content-center text-center\"
  323.                             style=\"height: 40px;\">
  324.                         <input type=\"radio\" id=\"companyCustomer\" name=\"customerType\"
  325.                                class=\"custom-control-input\" value=\"1\">
  326.                         <label class=\"custom-control-label\" for=\"companyCustomer\"><h5
  327.                                     class=\"font-weight-normal\">";
  328.         // line 188
  329.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.legal_person"), "html"nulltrue);
  330.         echo "</h5>
  331.                         </label>
  332.                     </div>
  333.                 </div>
  334.             </div>
  335.             <div id=\"legalCustomerBlock\" class=\"row my-3 d-none\">
  336.                 <div class=\"col-6 mt-sm-2\">
  337.                     <label for=\"cifCode\"
  338.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  339.         // line 196
  340.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.fiscal_code"), "html"nulltrue);
  341.         echo "
  342.                         *</label>
  343.                     <input placeholder=\"";
  344.         // line 198
  345.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.fiscal_code"), "html"nulltrue);
  346.         echo "*\"
  347.                            id=\"cifCode\"
  348.                            type=\"text\" name=\"cifCode\"
  349.                            class=\"form-control input-custom input-custom-grey input-cui required-message-check-input\">
  350.                 </div>
  351.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  352.                     <label for=\"companyName\"
  353.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
  354.         // line 205
  355.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.company_name"), "html"nulltrue);
  356.         echo "
  357.                         *</label>
  358.                     <input placeholder=\"";
  359.         // line 207
  360.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.company_name"), "html"nulltrue);
  361.         echo "*\"
  362.                            id=\"companyName\" type=\"text\"
  363.                            name=\"companyName\"
  364.                            class=\"form-control input-custom input-custom-grey input-company-name required-message-check-input\">
  365.                 </div>
  366.             </div>
  367.             <div class=\"row my-3\">
  368.                 <div class=\"col-12\">
  369.                     <span id='errorContainer'></span>
  370.                     <div class=\"g-recaptcha\" data-sitekey=\"6LdFcvYZAAAAAFln0jMic-l4YTds8EuC9gn0qiBs\"
  371.                          data-callback=\"recaptchaCallback\" data-expired-callback=\"recaptchaExpired\"></div>
  372.                 </div>
  373.             </div>
  374.             <div class=\"row\">
  375.                 <div class=\"col-12\">
  376.                     <div class=\"custom-control custom-checkbox mt-2\" data-toggle='tooltip' data-placement='top' data-original-title=\"";
  377.         // line 222
  378.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.terms_already_accepted"), "html"nulltrue);
  379.         echo "\">
  380.                         <input type=\"checkbox\" name=\"acceptTermsAndConditions\" id=\"acceptTermsAndConditions\"
  381.                                class=\"custom-control-input\"
  382.                                data-title=\"1\" required>
  383.                         <label for=\"acceptTermsAndConditions\" class=\"custom-control-label\">
  384.                             <a class=\"text-dark\" style=\"font-size: 1em;\">
  385.                                 ";
  386.         // line 228
  387.         echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.terms_data_agreement", ["%termsAndConditions%" => (((("<a href=\"" $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_page_show", ["slug" => "termeni-si-conditii"])) . "\" target=\"_blank\">") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.terms_and_conditions")) . "</a>"), "%personalDataProtection%" => (((("<a href=\"" $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_page_show", ["slug" => "protectia-datelor"])) . "\" target=\"_blank\">") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.personal_data_protection")) . "</a>")]);
  388.         // line 231
  389.         echo "
  390.                             </a>
  391.                         </label>
  392.                     </div>
  393.                 </div>
  394.             </div>
  395.             <input type=\"text\" id=\"recaptcha\" class=\"input-hidden\" value=\"\" required>
  396.             <div class=\"row\">
  397.                 <div id=\"preventSubmit\" class=\"col-12\">
  398.                     <button id=\"btnRcaVehicleDetailsSubmit\" type=\"submit\" class=\"btn btn-submit btn-primary-inactive w-100\" style=\"height: 40px\"><a>";
  399.         // line 240
  400.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.register"), "html"nulltrue);
  401.         echo "</a></button>
  402.                 </div>
  403.             </div>
  404.         </form>
  405.     </div>
  406. </div>
  407. <script>
  408.     function recaptchaCallback(response) {
  409.         let gReCaptcha = \$('#g-recaptcha-response');
  410.         if (gReCaptcha.length > 0 && gReCaptcha.val() === response) {
  411.             verifyCaptcha(response);
  412.         }
  413.     }
  414.     function recaptchaExpired()
  415.     {
  416.        \$('#recaptcha').val('');
  417.        validateForm(\$('.btn-submit'));
  418.     }
  419.     function verifyCaptcha(response)
  420.     {
  421.         let result = false;
  422.         let url = Routing.generate('app_shop_verify_captcha');
  423.         \$.ajax({
  424.             url: url,
  425.             data: {
  426.                 'captcha': response
  427.             },
  428.             type: 'POST',
  429.             async: false,
  430.             dataType: 'json',
  431.             success: function (data) {
  432.                 if (data === true) {
  433.                     \$('#recaptcha').val('1');
  434.                     validateForm(\$('.btn-submit'));
  435.                 }
  436.             },
  437.             error: function () {
  438.             }
  439.         });
  440.         return result;
  441.     }
  442.     /**
  443.      * Duplicat deoarece recaptcha nu vede scriptul global
  444.      * @param submitButton
  445.      */
  446.     function validateForm(submitButton) {
  447.         let inputsAreInvalid = false;
  448.         let radioAndCheckboxAreInvalid = false;
  449.         \$('form input, form select').each(
  450.             function(){
  451.                 if (\$(this).val() === null ||  \$(this).val() === '') {
  452.                     if (\$(this).prop('required')) {
  453.                         inputsAreInvalid = true;
  454.                     }
  455.                 }
  456.             }
  457.         );
  458.         \$('form input:radio,form input:checkbox').each(function () {
  459.             let name = \$(this).attr('name');
  460.             if (\$('input[name=\"'+ name + '\"]:checked').length < 1) {
  461.                 if (\$(this).prop('required')) {
  462.                     radioAndCheckboxAreInvalid = true;
  463.                 }
  464.             }
  465.         });
  466.         if (inputsAreInvalid || radioAndCheckboxAreInvalid) {
  467.             submitButton.addClass('btn-primary-inactive');
  468.             submitButton.removeClass('btn-primary');
  469.         } else {
  470.             submitButton.removeClass('btn-primary-inactive');
  471.             submitButton.addClass('btn-primary');
  472.             submitButton.removeAttr('disabled');
  473.         }
  474.     }
  475. </script>
  476. <style>
  477.     .input-hidden{
  478.         height:0;
  479.         width:0;
  480.         visibility: hidden;
  481.         padding:0;
  482.         margin:0;
  483.         float:right;
  484.     }
  485. </style>";
  486.         
  487.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  488.         
  489.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  490.     }
  491.     public function getTemplateName()
  492.     {
  493.         return "@templates/Account/Register/_register_form.html.twig";
  494.     }
  495.     public function isTraitable()
  496.     {
  497.         return false;
  498.     }
  499.     public function getDebugInfo()
  500.     {
  501.         return array (  410 => 240,  399 => 231,  397 => 228,  388 => 222,  370 => 207,  365 => 205,  355 => 198,  350 => 196,  339 => 188,  325 => 177,  309 => 164,  293 => 151,  289 => 150,  279 => 143,  275 => 142,  263 => 133,  259 => 132,  248 => 124,  243 => 122,  231 => 113,  226 => 111,  217 => 105,  209 => 100,  198 => 92,  190 => 87,  184 => 83,  174 => 81,  169 => 80,  165 => 79,  161 => 78,  153 => 73,  140 => 63,  135 => 61,  124 => 53,  119 => 51,  106 => 41,  101 => 39,  90 => 31,  85 => 29,  72 => 19,  67 => 17,  56 => 9,  51 => 7,  43 => 1,);
  502.     }
  503.     public function getSourceContext()
  504.     {
  505.         return new Source("<div class=\"card my-4\">
  506.     <div class=\"card-body\">
  507.         <form id=\"registerForm\">
  508.             <div class=\"row my-2\">
  509.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  510.                     <label for=\"customerLastName\"
  511.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'sylius.ui.last_name' |trans }}
  512.                         *</label>
  513.                     <input placeholder=\"{{ 'sylius.ui.last_name'|trans }}*\"
  514.                            name=\"customerLastName\" type=\"text\"
  515.                            id=\"customerLastName\"
  516.                            class=\"form-control input-custom input-custom-grey\"
  517.                            required>
  518.                 </div>
  519.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  520.                     <label for=\"customerFirstName\"
  521.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.first_name'|trans }}
  522.                         *</label>
  523.                     <input placeholder=\"{{ 'app.ui.first_name'|trans }}*\"
  524.                            name=\"customerFirstName\" type=\"text\"
  525.                            id=\"customerFirstName\"
  526.                            class=\"form-control input-custom input-custom-grey\"
  527.                            required>
  528.                 </div>
  529.             </div>
  530.             <div class=\"row my-3\">
  531.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  532.                     <label for=\"customerEmail\"
  533.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'sylius.ui.email' |trans }}
  534.                         *</label>
  535.                     <input placeholder=\"{{ 'sylius.ui.email'|trans }}*\"
  536.                            name=\"customerEmail\" type=\"email\"
  537.                            id=\"customerEmail\"
  538.                            class=\"form-control input-custom input-custom-grey\"
  539.                            required>
  540.                 </div>
  541.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  542.                     <label for=\"customerPhoneNumber\"
  543.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'sylius.ui.phone_number'|trans }}
  544.                         *</label>
  545.                     <input placeholder=\"{{ 'sylius.ui.phone_number'|trans }}*\"
  546.                            name=\"customerPhoneNumber\" type=\"text\"
  547.                            id=\"customerPhoneNumber\"
  548.                            class=\"form-control input-custom input-custom-grey\"
  549.                            required>
  550.                 </div>
  551.             </div>
  552.             <div class=\"row my-3\">
  553.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  554.                     <label for=\"customerPassword\"
  555.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'sylius.ui.password' |trans }}
  556.                         *</label>
  557.                     <input placeholder=\"{{ 'sylius.ui.password'|trans }}*\"
  558.                            name=\"customerPassword\" type=\"password\"
  559.                            id=\"customerPassword\"
  560.                            class=\"form-control input-custom input-custom-grey\"
  561.                            required>
  562.                 </div>
  563.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  564.                     <label for=\"customerConfirmationPassword\"
  565.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'sylius.ui.repeat_new_password'|trans }}
  566.                         *</label>
  567.                     <input placeholder=\"{{ 'sylius.ui.repeat_new_password'|trans }}*\"
  568.                            name=\"customerConfirmationPassword\" type=\"password\"
  569.                            id=\"customerConfirmationPassword\"
  570.                            class=\"form-control input-custom input-custom-grey\"
  571.                            required>
  572.                 </div>
  573.             </div>
  574.             <div class=\"row my-3\">
  575.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  576.                     <label for=\"customerCountry\"
  577.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.country'|trans }}
  578.                         *</label>
  579.                     <select name=\"customerCountry\" id=\"customerCountry\"
  580.                             class=\"form-control input-custom input-custom-grey input-country required-message-check-input\" required>
  581.                         <option selected disabled hidden
  582.                                 value=\"\">{{ 'app.ui.country'|trans }}</option>
  583.                         {% for country in countries|sort((a, b) => a.name <=> b.name) %}
  584.                             <option id=\"{{ country.id }}\"
  585.                                     value=\"{{ country.code }}\">{{ country }}</option>
  586.                         {% endfor %}
  587.                     </select>
  588.                 </div>
  589.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  590.                     <label for=\"customerCounty\"
  591.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.county'|trans }}
  592.                         *</label>
  593.                     <select id=\"customerCounty\" name=\"customerCounty\"
  594.                             class=\"form-control input-custom input-custom-grey required-message-check-input\" required>
  595.                         <option class=\"option-rca-custom\" value=\"\" selected disabled
  596.                                 hidden>{{ 'app.ui.please_select_a_county'|trans }}*
  597.                         </option>
  598.                     </select>
  599.                 </div>
  600.             </div>
  601.             <div class=\"row my-3\">
  602.                 <div class=\"col-md-6 col-sm-12 mt-sm-2 city-block\">
  603.                     <label for=\"customerCity\"
  604.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.city'|trans }}
  605.                         *</label>
  606.                     <select id=\"customerCity\" name=\"customerCity\" type=\"text\"
  607.                             class=\"form-control input-custom input-custom-grey required-message-check-input\" required>
  608.                         <option class=\"option-rca-custom\" value=\"\" selected disabled
  609.                                 hidden>{{ 'app.ui.city'|trans }}*
  610.                         </option>
  611.                     </select>
  612.                 </div>
  613.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  614.                     <label for=\"customerStreet\"
  615.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.street'|trans }}
  616.                         *</label>
  617.                     <input placeholder=\"{{ 'app.ui.street'|trans }}*\"
  618.                            id=\"customerStreet\"
  619.                            type=\"text\" name=\"customerStreet\"
  620.                            class=\"form-control input-custom input-custom-grey required-message-check-input\" required>
  621.                 </div>
  622.             </div>
  623.             <div class=\"row my-3\">
  624.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  625.                     <label for=\"customerStreetNumber\"
  626.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.number'|trans }}
  627.                         *</label>
  628.                     <input placeholder=\"{{ 'app.ui.number'|trans }}*\"
  629.                            name=\"customerStreetNumber\" type=\"text\"
  630.                            id=\"customerStreetNumber\"
  631.                            class=\"form-control input-custom input-custom-grey required-message-check-input\"
  632.                            required>
  633.                 </div>
  634.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  635.                     <label for=\"customerBuilding\"
  636.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.building'|trans }}</label>
  637.                     <input placeholder=\"{{ 'app.ui.building'|trans }}\"
  638.                            id=\"customerBuilding\"
  639.                            type=\"text\" name=\"customerBuilding\"
  640.                            class=\"form-control input-custom input-custom-grey\">
  641.                 </div>
  642.             </div>
  643.             <div class=\"row my-3\">
  644.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  645.                     <label for=\"customerEntrance\"
  646.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.entrance'|trans }}</label>
  647.                     <input placeholder=\"{{ 'app.ui.entrance'|trans }}\"
  648.                            id=\"customerEntrance\"
  649.                            type=\"text\" name=\"customerEntrance\"
  650.                            class=\"form-control input-custom input-custom-grey\">
  651.                 </div>
  652.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  653.                     <label for=\"customerApartment\"
  654.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.apartment'|trans }}</label>
  655.                     <input placeholder=\"{{ 'app.ui.apartment'|trans }}\"
  656.                            id=\"customerApartment\"
  657.                            type=\"text\" name=\"customerApartment\"
  658.                            class=\"form-control input-custom input-custom-grey\">
  659.                 </div>
  660.             </div>
  661.             <div class=\"row\">
  662.                 <div class=\"col-12\">
  663.                     <div class=\"custom-control custom-checkbox mt-2 register-block\">
  664.                         <input type=\"checkbox\" name=\"subscribeToNewsletter\" id=\"subscribeToNewsletter\"
  665.                                class=\"custom-control-input\">
  666.                         <label for=\"subscribeToNewsletter\" class=\"custom-control-label\">
  667.                             <a class=\"text-dark\"
  668.                                style=\"letter-spacing: 0.01em;\">{{ 'app.ui.newsletter_confirmation'|trans|raw }}</a>
  669.                         </label>
  670.                     </div>
  671.                 </div>
  672.             </div>
  673.             <div class=\"row my-3\">
  674.                 <div class=\"col-6\">
  675.                     <div class=\"custom-control custom-radio d-flex justify-content-center align-items-center align-content-center text-center\"
  676.                          style=\"height: 40px;\">
  677.                         <input type=\"radio\" id=\"simpleCustomer\" name=\"customerType\"
  678.                                class=\"custom-control-input\" value=\"0\" required checked>
  679.                         <label class=\"custom-control-label\" for=\"simpleCustomer\"><h5
  680.                                     class=\"font-weight-normal\">{{ 'app.ui.natural_person'|trans }}</h5>
  681.                         </label>
  682.                     </div>
  683.                 </div>
  684.                 <div class=\"col-6 mt-sm-2\">
  685.                     <div
  686.                             class=\"custom-control custom-radio d-flex justify-content-center align-items-center align-content-center text-center\"
  687.                             style=\"height: 40px;\">
  688.                         <input type=\"radio\" id=\"companyCustomer\" name=\"customerType\"
  689.                                class=\"custom-control-input\" value=\"1\">
  690.                         <label class=\"custom-control-label\" for=\"companyCustomer\"><h5
  691.                                     class=\"font-weight-normal\">{{ 'app.ui.legal_person'|trans }}</h5>
  692.                         </label>
  693.                     </div>
  694.                 </div>
  695.             </div>
  696.             <div id=\"legalCustomerBlock\" class=\"row my-3 d-none\">
  697.                 <div class=\"col-6 mt-sm-2\">
  698.                     <label for=\"cifCode\"
  699.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.fiscal_code'|trans }}
  700.                         *</label>
  701.                     <input placeholder=\"{{ 'app.ui.fiscal_code'|trans }}*\"
  702.                            id=\"cifCode\"
  703.                            type=\"text\" name=\"cifCode\"
  704.                            class=\"form-control input-custom input-custom-grey input-cui required-message-check-input\">
  705.                 </div>
  706.                 <div class=\"col-md-6 col-sm-12 mt-sm-2\">
  707.                     <label for=\"companyName\"
  708.                            class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.company_name'|trans }}
  709.                         *</label>
  710.                     <input placeholder=\"{{ 'app.ui.company_name'|trans }}*\"
  711.                            id=\"companyName\" type=\"text\"
  712.                            name=\"companyName\"
  713.                            class=\"form-control input-custom input-custom-grey input-company-name required-message-check-input\">
  714.                 </div>
  715.             </div>
  716.             <div class=\"row my-3\">
  717.                 <div class=\"col-12\">
  718.                     <span id='errorContainer'></span>
  719.                     <div class=\"g-recaptcha\" data-sitekey=\"6LdFcvYZAAAAAFln0jMic-l4YTds8EuC9gn0qiBs\"
  720.                          data-callback=\"recaptchaCallback\" data-expired-callback=\"recaptchaExpired\"></div>
  721.                 </div>
  722.             </div>
  723.             <div class=\"row\">
  724.                 <div class=\"col-12\">
  725.                     <div class=\"custom-control custom-checkbox mt-2\" data-toggle='tooltip' data-placement='top' data-original-title=\"{{ 'app.ui.terms_already_accepted'|trans }}\">
  726.                         <input type=\"checkbox\" name=\"acceptTermsAndConditions\" id=\"acceptTermsAndConditions\"
  727.                                class=\"custom-control-input\"
  728.                                data-title=\"1\" required>
  729.                         <label for=\"acceptTermsAndConditions\" class=\"custom-control-label\">
  730.                             <a class=\"text-dark\" style=\"font-size: 1em;\">
  731.                                 {{ 'app.ui.terms_data_agreement'|trans({
  732.                                     '%termsAndConditions%': '<a href=\"' ~path('bitbag_sylius_cms_plugin_shop_page_show', {'slug' : 'termeni-si-conditii'}) ~ '\" target=\"_blank\">' ~ 'app.ui.terms_and_conditions'|trans ~ '</a>',
  733.                                     '%personalDataProtection%': '<a href=\"' ~path('bitbag_sylius_cms_plugin_shop_page_show', {'slug' : 'protectia-datelor'}) ~ '\" target=\"_blank\">' ~ 'app.ui.personal_data_protection'|trans ~ '</a>'
  734.                                 })|raw }}
  735.                             </a>
  736.                         </label>
  737.                     </div>
  738.                 </div>
  739.             </div>
  740.             <input type=\"text\" id=\"recaptcha\" class=\"input-hidden\" value=\"\" required>
  741.             <div class=\"row\">
  742.                 <div id=\"preventSubmit\" class=\"col-12\">
  743.                     <button id=\"btnRcaVehicleDetailsSubmit\" type=\"submit\" class=\"btn btn-submit btn-primary-inactive w-100\" style=\"height: 40px\"><a>{{ 'sylius.ui.register'|trans }}</a></button>
  744.                 </div>
  745.             </div>
  746.         </form>
  747.     </div>
  748. </div>
  749. <script>
  750.     function recaptchaCallback(response) {
  751.         let gReCaptcha = \$('#g-recaptcha-response');
  752.         if (gReCaptcha.length > 0 && gReCaptcha.val() === response) {
  753.             verifyCaptcha(response);
  754.         }
  755.     }
  756.     function recaptchaExpired()
  757.     {
  758.        \$('#recaptcha').val('');
  759.        validateForm(\$('.btn-submit'));
  760.     }
  761.     function verifyCaptcha(response)
  762.     {
  763.         let result = false;
  764.         let url = Routing.generate('app_shop_verify_captcha');
  765.         \$.ajax({
  766.             url: url,
  767.             data: {
  768.                 'captcha': response
  769.             },
  770.             type: 'POST',
  771.             async: false,
  772.             dataType: 'json',
  773.             success: function (data) {
  774.                 if (data === true) {
  775.                     \$('#recaptcha').val('1');
  776.                     validateForm(\$('.btn-submit'));
  777.                 }
  778.             },
  779.             error: function () {
  780.             }
  781.         });
  782.         return result;
  783.     }
  784.     /**
  785.      * Duplicat deoarece recaptcha nu vede scriptul global
  786.      * @param submitButton
  787.      */
  788.     function validateForm(submitButton) {
  789.         let inputsAreInvalid = false;
  790.         let radioAndCheckboxAreInvalid = false;
  791.         \$('form input, form select').each(
  792.             function(){
  793.                 if (\$(this).val() === null ||  \$(this).val() === '') {
  794.                     if (\$(this).prop('required')) {
  795.                         inputsAreInvalid = true;
  796.                     }
  797.                 }
  798.             }
  799.         );
  800.         \$('form input:radio,form input:checkbox').each(function () {
  801.             let name = \$(this).attr('name');
  802.             if (\$('input[name=\"'+ name + '\"]:checked').length < 1) {
  803.                 if (\$(this).prop('required')) {
  804.                     radioAndCheckboxAreInvalid = true;
  805.                 }
  806.             }
  807.         });
  808.         if (inputsAreInvalid || radioAndCheckboxAreInvalid) {
  809.             submitButton.addClass('btn-primary-inactive');
  810.             submitButton.removeClass('btn-primary');
  811.         } else {
  812.             submitButton.removeClass('btn-primary-inactive');
  813.             submitButton.addClass('btn-primary');
  814.             submitButton.removeAttr('disabled');
  815.         }
  816.     }
  817. </script>
  818. <style>
  819.     .input-hidden{
  820.         height:0;
  821.         width:0;
  822.         visibility: hidden;
  823.         padding:0;
  824.         margin:0;
  825.         float:right;
  826.     }
  827. </style>""@templates/Account/Register/_register_form.html.twig""/vhosts/newrca.roviniete.ro/templates/Account/Register/_register_form.html.twig");
  828.     }
  829. }