<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* beautytada/page.register-a-salon.twig */
class __TwigTemplate_85ea3abd0cc2858b054094a1410e461a8e40cb97a6e65285fb1ac90ab041a1cd extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "beautytada/layout.postcode.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "beautytada/page.register-a-salon.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "beautytada/page.register-a-salon.twig"));
$this->parent = $this->loadTemplate("beautytada/layout.postcode.twig", "beautytada/page.register-a-salon.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_stylesheets($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 4
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
// line 5
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("register-a-salon");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 8
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 9
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
// line 10
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("register-a-salon");
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 13
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 14
echo " <script>
TRANS['contactFormTitle'] = '";
// line 15
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Register a salon", [], "messages");
echo "'
TRANS['postcode'] = '";
// line 16
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Post code", [], "messages");
echo "'
TRANS['city'] = '";
// line 17
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("City", [], "messages");
echo "'
TRANS['salonName'] = '";
// line 18
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Salon name", [], "messages");
echo "'
WINDOW_CONFIG['registerSalonRegisterApi'] = '";
// line 20
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("api_v1_register_salon_register");
echo "'
WINDOW_CONFIG['registerSalonRegisterToken'] = '";
// line 21
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("register-salon"), "html", null, true);
echo "'
WINDOW_CONFIG['siteKey'] = '";
// line 22
echo twig_escape_filter($this->env, $this->extensions['Kobizo\Component\Template\TwigExtensions\GoogleServiceProviderExtension']->getRecaptchaPublicKey(), "html", null, true);
echo "'
</script>
<div id=\"register-a-salon\" class=\"register-form-wrapper\">
<div class=\"k-container\">
<div class=\"form-header\">
<h1 class=\"title\">";
// line 28
echo twig_escape_filter($this->env, twig_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", [0 => "Form title"], "method", false, false, false, 28), "html", null, true);
echo "</h1>
<span class=\"description\">";
// line 29
echo twig_escape_filter($this->env, twig_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", [0 => "Form description"], "method", false, false, false, 29), "html", null, true);
echo "</span>
</div>
<form ref=\"form\" class=\"register-form\" @submit.prevent=\"registerSalon\" @keydown=\"error.clear(\$event.target.name); \$forceUpdate()\">
<div class=\"k-form-row\">
<div class=\"k-form-group\">
<div class=\"item-column\">
<label for=\"name\">";
// line 36
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Name", [], "messages");
echo ":</label>
<input id=\"name\" name=\"name\" type=\"text\" class=\"k-input field\">
<span v-if=\"error.has('name')\" class=\"k-form-notification\">
";
// line 39
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This is required field", [], "messages");
// line 40
echo " </span>
</div>
</div>
</div>
<div class=\"k-form-row k-col-lg-2\">
<div class=\"k-form-group\">
<div class=\"item-column\">
<label for=\"email\">";
// line 48
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Your email address", [], "messages");
echo ":</label>
<input id=\"email\" name=\"email\" type=\"email\" class=\"k-input field\">
<span v-if=\"error.has('email')\" class=\"k-form-notification\">
";
// line 51
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This is required field", [], "messages");
// line 52
echo " </span>
</div>
</div>
<div class=\"k-form-group\">
<div class=\"item-column\">
<label for=\"postcode\">";
// line 58
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Your Postcode", [], "messages");
echo ":</label>
<input id=\"postcode\" name=\"postcode\" type=\"text\" class=\"k-input field\">
<span v-if=\"error.has('postcode')\" class=\"k-form-notification\">
";
// line 61
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This is required field", [], "messages");
// line 62
echo " </span>
</div>
</div>
</div>
<div class=\"k-form-row k-col-lg-2\">
<div class=\"k-form-group\">
<div class=\"item-column\">
<label for=\"salon\">";
// line 70
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Salon name", [], "messages");
echo ":</label>
<input id=\"salon\" name=\"salon\" type=\"text\" class=\"k-input field\">
<span v-if=\"error.has('salon')\" class=\"k-form-notification\">
";
// line 73
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This is required field", [], "messages");
// line 74
echo " </span>
</div>
</div>
<div class=\"k-form-group\">
<div class=\"item-column\">
<label for=\"city\">";
// line 80
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("City", [], "messages");
echo ":</label>
<input id=\"city\" name=\"city\" type=\"text\" class=\"k-input field\">
<span v-if=\"error.has('city')\" class=\"k-form-notification\">
";
// line 83
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("This is required field", [], "messages");
// line 84
echo " </span>
</div>
</div>
</div>
<div class=\"k-form-row\">
<div class=\"k-form-group\">
<div class=\"item-column\">
<label for=\"message\">";
// line 92
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Message", [], "messages");
echo ":</label>
<textarea id=\"message\" name=\"message\" class=\"k-textarea field resize-none\" rows=\"5\"></textarea>
</div>
</div>
</div>
<button class=\"k-submit\" type=\"submit\" :disabled=\"processing\">";
// line 98
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Send", [], "messages");
echo "</button>
</form>
</div>
<modal @confirm=\"showNotification = false\" @cancel=\"showNotification = false\" :is-visible=\"showNotification\">
<template #label><span v-text=\"response.success ? '";
// line 102
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Hooray", [], "messages");
echo "!!' : '";
echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Oops", [], "messages");
echo "!!'\"></span></template>
<template #content><span v-text=\"response.message\"></span></template>
</modal>
<overlay></overlay>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "beautytada/page.register-a-salon.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'beautytada/layout.postcode.twig' %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('register-a-salon') }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('register-a-salon') }}
{% endblock %}
{% block content %}
<script>
TRANS['contactFormTitle'] = '{% trans %}Register a salon{% endtrans %}'
TRANS['postcode'] = '{% trans %}Post code{% endtrans %}'
TRANS['city'] = '{% trans %}City{% endtrans %}'
TRANS['salonName'] = '{% trans %}Salon name{% endtrans %}'
WINDOW_CONFIG['registerSalonRegisterApi'] = '{{ path(\"api_v1_register_salon_register\") }}'
WINDOW_CONFIG['registerSalonRegisterToken'] = '{{ csrf_token(\"register-salon\") }}'
WINDOW_CONFIG['siteKey'] = '{{ k_captcha_public_key() }}'
</script>
<div id=\"register-a-salon\" class=\"register-form-wrapper\">
<div class=\"k-container\">
<div class=\"form-header\">
<h1 class=\"title\">{{ translation.getData('Form title') }}</h1>
<span class=\"description\">{{ translation.getData('Form description') }}</span>
</div>
<form ref=\"form\" class=\"register-form\" @submit.prevent=\"registerSalon\" @keydown=\"error.clear(\$event.target.name); \$forceUpdate()\">
<div class=\"k-form-row\">
<div class=\"k-form-group\">
<div class=\"item-column\">
<label for=\"name\">{% trans %}Name{% endtrans %}:</label>
<input id=\"name\" name=\"name\" type=\"text\" class=\"k-input field\">
<span v-if=\"error.has('name')\" class=\"k-form-notification\">
{% trans %}This is required field{% endtrans %}
</span>
</div>
</div>
</div>
<div class=\"k-form-row k-col-lg-2\">
<div class=\"k-form-group\">
<div class=\"item-column\">
<label for=\"email\">{% trans %}Your email address{% endtrans %}:</label>
<input id=\"email\" name=\"email\" type=\"email\" class=\"k-input field\">
<span v-if=\"error.has('email')\" class=\"k-form-notification\">
{% trans %}This is required field{% endtrans %}
</span>
</div>
</div>
<div class=\"k-form-group\">
<div class=\"item-column\">
<label for=\"postcode\">{% trans %}Your Postcode{% endtrans %}:</label>
<input id=\"postcode\" name=\"postcode\" type=\"text\" class=\"k-input field\">
<span v-if=\"error.has('postcode')\" class=\"k-form-notification\">
{% trans %}This is required field{% endtrans %}
</span>
</div>
</div>
</div>
<div class=\"k-form-row k-col-lg-2\">
<div class=\"k-form-group\">
<div class=\"item-column\">
<label for=\"salon\">{% trans %}Salon name{% endtrans %}:</label>
<input id=\"salon\" name=\"salon\" type=\"text\" class=\"k-input field\">
<span v-if=\"error.has('salon')\" class=\"k-form-notification\">
{% trans %}This is required field{% endtrans %}
</span>
</div>
</div>
<div class=\"k-form-group\">
<div class=\"item-column\">
<label for=\"city\">{% trans %}City{% endtrans %}:</label>
<input id=\"city\" name=\"city\" type=\"text\" class=\"k-input field\">
<span v-if=\"error.has('city')\" class=\"k-form-notification\">
{% trans %}This is required field{% endtrans %}
</span>
</div>
</div>
</div>
<div class=\"k-form-row\">
<div class=\"k-form-group\">
<div class=\"item-column\">
<label for=\"message\">{% trans %}Message{% endtrans %}:</label>
<textarea id=\"message\" name=\"message\" class=\"k-textarea field resize-none\" rows=\"5\"></textarea>
</div>
</div>
</div>
<button class=\"k-submit\" type=\"submit\" :disabled=\"processing\">{% trans %}Send{% endtrans %}</button>
</form>
</div>
<modal @confirm=\"showNotification = false\" @cancel=\"showNotification = false\" :is-visible=\"showNotification\">
<template #label><span v-text=\"response.success ? '{% trans %}Hooray{% endtrans %}!!' : '{% trans %}Oops{% endtrans %}!!'\"></span></template>
<template #content><span v-text=\"response.message\"></span></template>
</modal>
<overlay></overlay>
</div>
{% endblock %}
", "beautytada/page.register-a-salon.twig", "/home/btdcom/www/testing-kob26688.beautytada.com/templates/beautytada/page.register-a-salon.twig");
}
}