var/cache/dev/twig/02/027b07a62d9fb2b80e05c75ae7da3eee551803c923dd734c6db89c25b693c1af.php line 40

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. /* beautytada/page.register-a-salon.twig */
  14. class __TwigTemplate_85ea3abd0cc2858b054094a1410e461a8e40cb97a6e65285fb1ac90ab041a1cd 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.             'stylesheets' => [$this'block_stylesheets'],
  24.             'javascripts' => [$this'block_javascripts'],
  25.             'content' => [$this'block_content'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "beautytada/layout.postcode.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""beautytada/page.register-a-salon.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""beautytada/page.register-a-salon.twig"));
  40.         $this->parent $this->loadTemplate("beautytada/layout.postcode.twig""beautytada/page.register-a-salon.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 3
  48.     public function block_stylesheets($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  55.         // line 4
  56.         echo "    ";
  57.         $this->displayParentBlock("stylesheets"$context$blocks);
  58.         echo "
  59.     ";
  60.         // line 5
  61.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("register-a-salon");
  62.         echo "
  63. ";
  64.         
  65.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  66.         
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  68.     }
  69.     // line 8
  70.     public function block_javascripts($context, array $blocks = [])
  71.     {
  72.         $macros $this->macros;
  73.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  77.         // line 9
  78.         echo "    ";
  79.         $this->displayParentBlock("javascripts"$context$blocks);
  80.         echo "
  81.     ";
  82.         // line 10
  83.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("register-a-salon");
  84.         echo "
  85. ";
  86.         
  87.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  88.         
  89.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  90.     }
  91.     // line 13
  92.     public function block_content($context, array $blocks = [])
  93.     {
  94.         $macros $this->macros;
  95.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  96.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  97.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  98.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  99.         // line 14
  100.         echo "    <script>
  101.         TRANS['contactFormTitle'] = '";
  102.         // line 15
  103.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Register a salon", [], "messages");
  104.         echo "'
  105.         TRANS['postcode'] = '";
  106.         // line 16
  107.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Post code", [], "messages");
  108.         echo "'
  109.         TRANS['city'] = '";
  110.         // line 17
  111.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("City", [], "messages");
  112.         echo "'
  113.         TRANS['salonName'] = '";
  114.         // line 18
  115.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Salon name", [], "messages");
  116.         echo "'
  117.         WINDOW_CONFIG['registerSalonRegisterApi'] = '";
  118.         // line 20
  119.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("api_v1_register_salon_register");
  120.         echo "'
  121.         WINDOW_CONFIG['registerSalonRegisterToken'] = '";
  122.         // line 21
  123.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("register-salon"), "html"nulltrue);
  124.         echo "'
  125.         WINDOW_CONFIG['siteKey'] = '";
  126.         // line 22
  127.         echo twig_escape_filter($this->env$this->extensions['Kobizo\Component\Template\TwigExtensions\GoogleServiceProviderExtension']->getRecaptchaPublicKey(), "html"nulltrue);
  128.         echo "'
  129.     </script>
  130.     <div id=\"register-a-salon\" class=\"register-form-wrapper\">
  131.         <div class=\"k-container\">
  132.             <div class=\"form-header\">
  133.                 <h1 class=\"title\">";
  134.         // line 28
  135.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["translation"]) || array_key_exists("translation"$context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.'28$this->source); })()), "getData", [=> "Form title"], "method"falsefalsefalse28), "html"nulltrue);
  136.         echo "</h1>
  137.                 <span class=\"description\">";
  138.         // line 29
  139.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["translation"]) || array_key_exists("translation"$context) ? $context["translation"] : (function () { throw new RuntimeError('Variable "translation" does not exist.'29$this->source); })()), "getData", [=> "Form description"], "method"falsefalsefalse29), "html"nulltrue);
  140.         echo "</span>
  141.             </div>
  142.             <form ref=\"form\" class=\"register-form\" @submit.prevent=\"registerSalon\" @keydown=\"error.clear(\$event.target.name); \$forceUpdate()\">
  143.                 <div class=\"k-form-row\">
  144.                     <div class=\"k-form-group\">
  145.                         <div class=\"item-column\">
  146.                             <label for=\"name\">";
  147.         // line 36
  148.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Name", [], "messages");
  149.         echo ":</label>
  150.                             <input id=\"name\" name=\"name\" type=\"text\" class=\"k-input field\">
  151.                             <span v-if=\"error.has('name')\" class=\"k-form-notification\">
  152.                                 ";
  153.         // line 39
  154.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This is required field", [], "messages");
  155.         // line 40
  156.         echo "                            </span>
  157.                         </div>
  158.                     </div>
  159.                 </div>
  160.                 <div class=\"k-form-row k-col-lg-2\">
  161.                     <div class=\"k-form-group\">
  162.                         <div class=\"item-column\">
  163.                             <label for=\"email\">";
  164.         // line 48
  165.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Your email address", [], "messages");
  166.         echo ":</label>
  167.                             <input id=\"email\" name=\"email\" type=\"email\" class=\"k-input field\">
  168.                             <span v-if=\"error.has('email')\" class=\"k-form-notification\">
  169.                                 ";
  170.         // line 51
  171.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This is required field", [], "messages");
  172.         // line 52
  173.         echo "                            </span>
  174.                         </div>
  175.                     </div>
  176.                     <div class=\"k-form-group\">
  177.                         <div class=\"item-column\">
  178.                             <label for=\"postcode\">";
  179.         // line 58
  180.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Your Postcode", [], "messages");
  181.         echo ":</label>
  182.                             <input id=\"postcode\" name=\"postcode\" type=\"text\" class=\"k-input field\">
  183.                             <span v-if=\"error.has('postcode')\" class=\"k-form-notification\">
  184.                                 ";
  185.         // line 61
  186.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This is required field", [], "messages");
  187.         // line 62
  188.         echo "                            </span>
  189.                         </div>
  190.                     </div>
  191.                 </div>
  192.                 <div class=\"k-form-row k-col-lg-2\">
  193.                     <div class=\"k-form-group\">
  194.                         <div class=\"item-column\">
  195.                             <label for=\"salon\">";
  196.         // line 70
  197.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Salon name", [], "messages");
  198.         echo ":</label>
  199.                             <input id=\"salon\" name=\"salon\" type=\"text\" class=\"k-input field\">
  200.                             <span v-if=\"error.has('salon')\" class=\"k-form-notification\">
  201.                                 ";
  202.         // line 73
  203.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This is required field", [], "messages");
  204.         // line 74
  205.         echo "                            </span>
  206.                         </div>
  207.                     </div>
  208.                     <div class=\"k-form-group\">
  209.                         <div class=\"item-column\">
  210.                             <label for=\"city\">";
  211.         // line 80
  212.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("City", [], "messages");
  213.         echo ":</label>
  214.                             <input id=\"city\" name=\"city\" type=\"text\" class=\"k-input field\">
  215.                             <span v-if=\"error.has('city')\" class=\"k-form-notification\">
  216.                                 ";
  217.         // line 83
  218.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This is required field", [], "messages");
  219.         // line 84
  220.         echo "                            </span>
  221.                         </div>
  222.                     </div>
  223.                 </div>
  224.                 <div class=\"k-form-row\">
  225.                     <div class=\"k-form-group\">
  226.                         <div class=\"item-column\">
  227.                             <label for=\"message\">";
  228.         // line 92
  229.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Message", [], "messages");
  230.         echo ":</label>
  231.                             <textarea id=\"message\" name=\"message\" class=\"k-textarea field resize-none\" rows=\"5\"></textarea>
  232.                         </div>
  233.                     </div>
  234.                 </div>
  235.                 <button class=\"k-submit\" type=\"submit\" :disabled=\"processing\">";
  236.         // line 98
  237.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Send", [], "messages");
  238.         echo "</button>
  239.             </form>
  240.         </div>
  241.         <modal @confirm=\"showNotification = false\" @cancel=\"showNotification = false\" :is-visible=\"showNotification\">
  242.             <template #label><span v-text=\"response.success ? '";
  243.         // line 102
  244.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Hooray", [], "messages");
  245.         echo "!!' : '";
  246.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Oops", [], "messages");
  247.         echo "!!'\"></span></template>
  248.             <template #content><span v-text=\"response.message\"></span></template>
  249.         </modal>
  250.         <overlay></overlay>
  251.     </div>
  252. ";
  253.         
  254.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  255.         
  256.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  257.     }
  258.     public function getTemplateName()
  259.     {
  260.         return "beautytada/page.register-a-salon.twig";
  261.     }
  262.     public function isTraitable()
  263.     {
  264.         return false;
  265.     }
  266.     public function getDebugInfo()
  267.     {
  268.         return array (  277 => 102,  270 => 98,  261 => 92,  251 => 84,  249 => 83,  243 => 80,  235 => 74,  233 => 73,  227 => 70,  217 => 62,  215 => 61,  209 => 58,  201 => 52,  199 => 51,  193 => 48,  183 => 40,  181 => 39,  175 => 36,  165 => 29,  161 => 28,  152 => 22,  148 => 21,  144 => 20,  139 => 18,  135 => 17,  131 => 16,  127 => 15,  124 => 14,  114 => 13,  102 => 10,  97 => 9,  87 => 8,  75 => 5,  70 => 4,  60 => 3,  37 => 1,);
  269.     }
  270.     public function getSourceContext()
  271.     {
  272.         return new Source("{% extends 'beautytada/layout.postcode.twig' %}
  273. {% block stylesheets %}
  274.     {{ parent() }}
  275.     {{ encore_entry_link_tags('register-a-salon') }}
  276. {% endblock %}
  277. {% block javascripts %}
  278.     {{ parent() }}
  279.     {{ encore_entry_script_tags('register-a-salon') }}
  280. {% endblock %}
  281. {% block content %}
  282.     <script>
  283.         TRANS['contactFormTitle'] = '{% trans %}Register a salon{% endtrans %}'
  284.         TRANS['postcode'] = '{% trans %}Post code{% endtrans %}'
  285.         TRANS['city'] = '{% trans %}City{% endtrans %}'
  286.         TRANS['salonName'] = '{% trans %}Salon name{% endtrans %}'
  287.         WINDOW_CONFIG['registerSalonRegisterApi'] = '{{ path(\"api_v1_register_salon_register\") }}'
  288.         WINDOW_CONFIG['registerSalonRegisterToken'] = '{{ csrf_token(\"register-salon\") }}'
  289.         WINDOW_CONFIG['siteKey'] = '{{ k_captcha_public_key() }}'
  290.     </script>
  291.     <div id=\"register-a-salon\" class=\"register-form-wrapper\">
  292.         <div class=\"k-container\">
  293.             <div class=\"form-header\">
  294.                 <h1 class=\"title\">{{ translation.getData('Form title') }}</h1>
  295.                 <span class=\"description\">{{ translation.getData('Form description') }}</span>
  296.             </div>
  297.             <form ref=\"form\" class=\"register-form\" @submit.prevent=\"registerSalon\" @keydown=\"error.clear(\$event.target.name); \$forceUpdate()\">
  298.                 <div class=\"k-form-row\">
  299.                     <div class=\"k-form-group\">
  300.                         <div class=\"item-column\">
  301.                             <label for=\"name\">{% trans %}Name{% endtrans %}:</label>
  302.                             <input id=\"name\" name=\"name\" type=\"text\" class=\"k-input field\">
  303.                             <span v-if=\"error.has('name')\" class=\"k-form-notification\">
  304.                                 {% trans %}This is required field{% endtrans %}
  305.                             </span>
  306.                         </div>
  307.                     </div>
  308.                 </div>
  309.                 <div class=\"k-form-row k-col-lg-2\">
  310.                     <div class=\"k-form-group\">
  311.                         <div class=\"item-column\">
  312.                             <label for=\"email\">{% trans %}Your email address{% endtrans %}:</label>
  313.                             <input id=\"email\" name=\"email\" type=\"email\" class=\"k-input field\">
  314.                             <span v-if=\"error.has('email')\" class=\"k-form-notification\">
  315.                                 {% trans %}This is required field{% endtrans %}
  316.                             </span>
  317.                         </div>
  318.                     </div>
  319.                     <div class=\"k-form-group\">
  320.                         <div class=\"item-column\">
  321.                             <label for=\"postcode\">{% trans %}Your Postcode{% endtrans %}:</label>
  322.                             <input id=\"postcode\" name=\"postcode\" type=\"text\" class=\"k-input field\">
  323.                             <span v-if=\"error.has('postcode')\" class=\"k-form-notification\">
  324.                                 {% trans %}This is required field{% endtrans %}
  325.                             </span>
  326.                         </div>
  327.                     </div>
  328.                 </div>
  329.                 <div class=\"k-form-row k-col-lg-2\">
  330.                     <div class=\"k-form-group\">
  331.                         <div class=\"item-column\">
  332.                             <label for=\"salon\">{% trans %}Salon name{% endtrans %}:</label>
  333.                             <input id=\"salon\" name=\"salon\" type=\"text\" class=\"k-input field\">
  334.                             <span v-if=\"error.has('salon')\" class=\"k-form-notification\">
  335.                                 {% trans %}This is required field{% endtrans %}
  336.                             </span>
  337.                         </div>
  338.                     </div>
  339.                     <div class=\"k-form-group\">
  340.                         <div class=\"item-column\">
  341.                             <label for=\"city\">{% trans %}City{% endtrans %}:</label>
  342.                             <input id=\"city\" name=\"city\" type=\"text\" class=\"k-input field\">
  343.                             <span v-if=\"error.has('city')\" class=\"k-form-notification\">
  344.                                 {% trans %}This is required field{% endtrans %}
  345.                             </span>
  346.                         </div>
  347.                     </div>
  348.                 </div>
  349.                 <div class=\"k-form-row\">
  350.                     <div class=\"k-form-group\">
  351.                         <div class=\"item-column\">
  352.                             <label for=\"message\">{% trans %}Message{% endtrans %}:</label>
  353.                             <textarea id=\"message\" name=\"message\" class=\"k-textarea field resize-none\" rows=\"5\"></textarea>
  354.                         </div>
  355.                     </div>
  356.                 </div>
  357.                 <button class=\"k-submit\" type=\"submit\" :disabled=\"processing\">{% trans %}Send{% endtrans %}</button>
  358.             </form>
  359.         </div>
  360.         <modal @confirm=\"showNotification = false\" @cancel=\"showNotification = false\" :is-visible=\"showNotification\">
  361.             <template #label><span v-text=\"response.success ? '{% trans %}Hooray{% endtrans %}!!' : '{% trans %}Oops{% endtrans %}!!'\"></span></template>
  362.             <template #content><span v-text=\"response.message\"></span></template>
  363.         </modal>
  364.         <overlay></overlay>
  365.     </div>
  366. {% endblock %}
  367. ""beautytada/page.register-a-salon.twig""/home/btdcom/www/testing-kob26688.beautytada.com/templates/beautytada/page.register-a-salon.twig");
  368.     }
  369. }