var/cache/dev/twig/74/74ac7dfac934408105e2635b3af20eef.php line 95

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* registration/register.html.twig */
  16. class __TwigTemplate_2214d2f4fdd30f8bc09929f1ac491629 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'title' => [$this'block_title'],
  29.             'body' => [$this'block_body'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""registration/register.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""registration/register.html.twig"));
  44.         // line 2
  45.         $macros["inputMacro"] = $this->macros["inputMacro"] = $this->load("macros/form-input.html.twig"2)->unwrap();
  46.         // line 3
  47.         $macros["docUpload"] = $this->macros["docUpload"] = $this->load("macros/doc-upload.html.twig"3)->unwrap();
  48.         // line 1
  49.         $this->parent $this->load("base.html.twig"1);
  50.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  53.         
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  55.     }
  56.     // line 5
  57.     /**
  58.      * @return iterable<null|scalar|\Stringable>
  59.      */
  60.     public function block_title(array $context, array $blocks = []): iterable
  61.     {
  62.         $macros $this->macros;
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  67.         yield "Register";
  68.         
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  70.         
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  72.         yield from [];
  73.     }
  74.     // line 7
  75.     /**
  76.      * @return iterable<null|scalar|\Stringable>
  77.      */
  78.     public function block_body(array $context, array $blocks = []): iterable
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  85.         // line 8
  86.         yield "    <div class=\"w-full max-w-screen-2xl py-16 mx-auto px-6\">
  87.       <h1 class=\"md:text-4xl text-3xl font-bold text-gray-800 text-center\">
  88.         Membership Application Form
  89.       </h1>
  90.       <p class=\"text-lg text-gray-800 text-center my-5\">
  91.         Please fill up the form below to apply for membership.
  92.       </p>
  93.       <div class=\"w-full max-w-lg mx-auto my-5 py-5\">
  94.         ";
  95.         // line 16
  96.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'16$this->source); })()), 'form_start', ["attr" => ["autocomplete" => "off""id" => "js-registration_form"]]);
  97.         yield "
  98.           <div class=\"w-full flex flex-col gap-4\">
  99.             <h3 class=\"text-base text-gray-800 font-semibold mb-2\">
  100.               Gender
  101.             </h3>
  102.             <div class=\"grid lg:grid-cols-3 gap-3\">
  103.               <div class=\"lg:col-span-2\">
  104.                 <div class=\"w-full flex md:flex-row flex-col md:items-center mb-4 gap-3\">
  105.                   <div class=\"inline-flex items-center gap-x-2\">
  106.                     <input
  107.                       id=\"male\"
  108.                       name=\"";
  109.         // line 27
  110.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env$this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'27$this->source); })()), "gender", [], "any"falsefalsefalse27)), "html"nulltrue);
  111.         yield "\"
  112.                       value=\"M\"
  113.                       type=\"radio\"
  114.                       class=\"
  115.                         inline-block
  116.                         w-4
  117.                         h-4
  118.                         rounded
  119.                         accent-brand
  120.                         border-brand
  121.                         focus:ring-0
  122.                         active:ring-0
  123.                       \"
  124.                       required
  125.                     >
  126.                     <label
  127.                       for=\"male\"
  128.                       class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\"
  129.                     >
  130.                       Male
  131.                     </label>
  132.                   </div>
  133.                   <div class=\"inline-flex items-center gap-x-2\">
  134.                     <input
  135.                       id=\"female\"
  136.                       name=\"";
  137.         // line 52
  138.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env$this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'52$this->source); })()), "gender", [], "any"falsefalsefalse52)), "html"nulltrue);
  139.         yield "\"
  140.                       value=\"F\"
  141.                       type=\"radio\"
  142.                       class=\"
  143.                         inline-block
  144.                         w-4
  145.                         h-4
  146.                         rounded
  147.                         accent-brand
  148.                         border-brand
  149.                         focus:ring-0
  150.                         active:ring-0
  151.                       \"
  152.                       required
  153.                     >
  154.                     <label
  155.                       for=\"female\"
  156.                       class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\"
  157.                     >
  158.                       Female
  159.                     </label>
  160.                   </div>
  161.                   <div class=\"inline-flex items-center gap-x-2\">
  162.                     <input
  163.                       id=\"other\"
  164.                       name=\"";
  165.         // line 77
  166.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env$this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'77$this->source); })()), "gender", [], "any"falsefalsefalse77)), "html"nulltrue);
  167.         yield "\"
  168.                       value=\"O\"
  169.                       type=\"radio\"
  170.                       class=\"
  171.                         inline-block
  172.                         w-4
  173.                         h-4
  174.                         rounded
  175.                         accent-brand
  176.                         border-brand
  177.                         focus:ring-0
  178.                         active:ring-0
  179.                       \"
  180.                       required
  181.                     >
  182.                     <label
  183.                       for=\"other\"
  184.                       class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\"
  185.                     >
  186.                       Other
  187.                     </label>
  188.                   </div>
  189.                 </div>
  190.                 ";
  191.         // line 100
  192.         yield $macros["inputMacro"]->getTemplateForMacro("macro_input"$context100$this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env$this->source,         // line 102
  193. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'102$this->source); })()), "email", [], "any"falsefalsefalse102)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env$this->source,         // line 103
  194. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'103$this->source); })()), "email", [], "any"falsefalsefalse103)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldLabel(CoreExtension::getAttribute($this->env$this->source,         // line 104
  195. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'104$this->source); })()), "email", [], "any"falsefalsefalse104)), "email"truetruefalse"email"]);
  196.         // line 111
  197.         yield "
  198.                 ";
  199.         // line 112
  200.         yield $macros["inputMacro"]->getTemplateForMacro("macro_input"$context112$this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env$this->source,         // line 114
  201. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'114$this->source); })()), "phoneNo", [], "any"falsefalsefalse114)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env$this->source,         // line 115
  202. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'115$this->source); })()), "phoneNo", [], "any"falsefalsefalse115)), "Phone No.""tel"truefalsefalse"phone"]);
  203.         // line 123
  204.         yield "
  205.               </div>
  206.               <div class=\"lg:col-span-1 flex lg:justify-end\">
  207.                 ";
  208.         // line 126
  209.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["uploadForm"]) || array_key_exists("uploadForm"$context) ? $context["uploadForm"] : (function () { throw new RuntimeError('Variable "uploadForm" does not exist.'126$this->source); })()), 'form_start', ["attr" => ["id" => "profile-image"]]);
  210.         // line 131
  211.         yield "
  212.                   <div class=\"w-36 h-36 rounded-lg bg-gray-100 relative overflow-hidden\">
  213.                     <div class=\"profile-img-result absolute w-full h-full bg-gray-100 inline-flex items-center justify-center\">
  214.                       <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"w-8 h-8 fill-gray-400\" viewBox=\"0 0 24 24\">
  215.                         <path d=\"M19,4h-.508L16.308,1.168A3.023,3.023,0,0,0,13.932,0H10.068A3.023,3.023,0,0,0,7.692,1.168L5.508,4H5A5.006,5.006,0,0,0,0,9V19a5.006,5.006,0,0,0,5,5H19a5.006,5.006,0,0,0,5-5V9A5.006,5.006,0,0,0,19,4ZM9.276,2.39A1.006,1.006,0,0,1,10.068,2h3.864a1.008,1.008,0,0,1,.792.39L15.966,4H8.034ZM22,19a3,3,0,0,1-3,3H5a3,3,0,0,1-3-3V9A3,3,0,0,1,5,6H19a3,3,0,0,1,3,3Z\"/>
  216.                         <path d=\"M12,8a6,6,0,1,0,6,6A6.006,6.006,0,0,0,12,8Zm0,10a4,4,0,1,1,4-4A4,4,0,0,1,12,18Z\"/>
  217.                       </svg>
  218.                     </div>
  219.                     <div class=\"relative opacity-0 w-full h-full\">
  220.                       <input type=\"file\" id=\"profile-image-input\" name=\"";
  221.         // line 140
  222.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env$this->source, (isset($context["uploadForm"]) || array_key_exists("uploadForm"$context) ? $context["uploadForm"] : (function () { throw new RuntimeError('Variable "uploadForm" does not exist.'140$this->source); })()), "media", [], "any"falsefalsefalse140)), "html"nulltrue);
  223.         yield "\" accept=\".png,.jpg,.jpeg\" class=\"block opacity-0 w-full h-full cursor-pointer py-2\" />
  224.                     </div>
  225.                     <div class=\"absolute w-full py-1.5 text-xs text-center bottom-0 bg-black text-white\">
  226.                       Upload
  227.                     </div>
  228.                   </div>
  229.                 ";
  230.         // line 146
  231.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["uploadForm"]) || array_key_exists("uploadForm"$context) ? $context["uploadForm"] : (function () { throw new RuntimeError('Variable "uploadForm" does not exist.'146$this->source); })()), 'form_end');
  232.         yield "
  233.               </div>
  234.             </div>
  235.             <div class=\"grid lg:grid-cols-2 gap-3\">
  236.               <div class=\"lg:col-span-1\">
  237.                 ";
  238.         // line 151
  239.         yield $macros["inputMacro"]->getTemplateForMacro("macro_input"$context151$this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env$this->source,         // line 153
  240. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'153$this->source); })()), "firstName", [], "any"falsefalsefalse153)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env$this->source,         // line 154
  241. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'154$this->source); })()), "firstName", [], "any"falsefalsefalse154)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldLabel(CoreExtension::getAttribute($this->env$this->source,         // line 155
  242. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'155$this->source); })()), "firstName", [], "any"falsefalsefalse155)), "text"truefalsefalse"fname"]);
  243.         // line 162
  244.         yield "
  245.               </div>
  246.               <div class=\"lg:col-span-1\">
  247.                 ";
  248.         // line 165
  249.         yield $macros["inputMacro"]->getTemplateForMacro("macro_input"$context165$this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env$this->source,         // line 167
  250. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'167$this->source); })()), "lastName", [], "any"falsefalsefalse167)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env$this->source,         // line 168
  251. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'168$this->source); })()), "lastName", [], "any"falsefalsefalse168)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldLabel(CoreExtension::getAttribute($this->env$this->source,         // line 169
  252. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'169$this->source); })()), "lastName", [], "any"falsefalsefalse169)), "text"truefalsefalse"lname"]);
  253.         // line 176
  254.         yield "
  255.               </div>
  256.             </div>
  257.             <div class=\"grid lg:grid-cols-3 gap-3\">
  258.               <div class=\"lg:col-span-1\">
  259.             ";
  260.         // line 182
  261.         yield $macros["inputMacro"]->getTemplateForMacro("macro_input"$context182$this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env$this->source,         // line 184
  262. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'184$this->source); })()), "houseNumber", [], "any"falsefalsefalse184)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env$this->source,         // line 185
  263. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'185$this->source); })()), "houseNumber", [], "any"falsefalsefalse185)), "House Number""text"truefalsefalse"houseNumber"]);
  264.         // line 193
  265.         yield "
  266.             </div>
  267.             <div class=\"lg:col-span-1\">
  268.             ";
  269.         // line 196
  270.         yield $macros["inputMacro"]->getTemplateForMacro("macro_input"$context196$this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env$this->source,         // line 198
  271. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'198$this->source); })()), "street", [], "any"falsefalsefalse198)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env$this->source,         // line 199
  272. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'199$this->source); })()), "street", [], "any"falsefalsefalse199)), "Street""text"truefalsefalse"street"]);
  273.         // line 207
  274.         yield "
  275.             </div>
  276.             <div class=\"lg:col-span-1\">
  277.             ";
  278.         // line 210
  279.         yield $macros["inputMacro"]->getTemplateForMacro("macro_input"$context210$this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env$this->source,         // line 212
  280. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'212$this->source); })()), "postCode", [], "any"falsefalsefalse212)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env$this->source,         // line 213
  281. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'213$this->source); })()), "postCode", [], "any"falsefalsefalse213)), "postCode""text"truefalsefalse"postCode"]);
  282.         // line 221
  283.         yield "
  284.             </div>
  285.             </div>
  286.             ";
  287.         // line 225
  288.         yield $macros["inputMacro"]->getTemplateForMacro("macro_input"$context225$this->getSourceContext())->macro_input(...[$this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env$this->source,         // line 227
  289. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'227$this->source); })()), "plainPassword", [], "any"falsefalsefalse227)), $this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env$this->source,         // line 228
  290. (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'228$this->source); })()), "plainPassword", [], "any"falsefalsefalse228)), "Password""password"truefalsefalse"password"]);
  291.         // line 236
  292.         yield "
  293.             <div class=\"w-full flex items-center mt-4 mb-8\">
  294.               <input
  295.                       id=\"agree\"
  296.                       name=\"";
  297.         // line 243
  298.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldName(CoreExtension::getAttribute($this->env$this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'243$this->source); })()), "agreeTerms", [], "any"falsefalsefalse243)), "html"nulltrue);
  299.         yield "\"
  300.                       value=\"";
  301.         // line 244
  302.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\FormExtension']->getFieldValue(CoreExtension::getAttribute($this->env$this->source, (isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'244$this->source); })()), "agreeTerms", [], "any"falsefalsefalse244)), "html"nulltrue);
  303.         yield "\"
  304.                       type=\"checkbox\"
  305.                       class=\"
  306.                 inline-block
  307.                 w-4
  308.                 h-4
  309.                 rounded
  310.                 accent-brand
  311.                 border-brand
  312.                 focus:ring-0
  313.                 active:ring-0
  314.               \"
  315.                       required
  316.               >
  317.               <label
  318.                       for=\"agree\"
  319.                       class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\"
  320.               >
  321.                 Agree
  322.               </label>
  323.             </div>
  324.             <input type=\"hidden\" name=\"imageType\" value=\"LG\">
  325.             <input type=\"hidden\" name=\"imageMetadata\" class=\"metadata-profile\">
  326.             <div class=\"w-full text-center mt-4\">
  327.               <button
  328.                 type=\"submit\"
  329.                 class=\"
  330.                   next
  331.                   rounded-full
  332.                   bg-transparent
  333.                   border
  334.                   border-brand
  335.                   px-12
  336.                   py-3
  337.                   inline-flex
  338.                   items-center
  339.                   justify-center
  340.                   text-base
  341.                   group
  342.                   font-semibold
  343.                   transition-all
  344.                   duration-500
  345.                   relative
  346.                   overflow-hidden
  347.                   after:content=['']
  348.                   after:w-0
  349.                   after:h-full
  350.                   after:absolute
  351.                   after:block
  352.                   after:inset-0
  353.                   hover:after:w-full
  354.                   after:transition-all
  355.                   after:duration-500
  356.                   after:bg-brand
  357.                   after:text-white
  358.                 \"
  359.               >
  360.                 <span class=\"z-10 group-hover:text-white text-brand transition-all duration-700\">
  361.                   Submit
  362.                 </span>
  363.               </button>
  364.             </div>
  365.           </div>
  366.         ";
  367.         // line 307
  368.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["registrationForm"]) || array_key_exists("registrationForm"$context) ? $context["registrationForm"] : (function () { throw new RuntimeError('Variable "registrationForm" does not exist.'307$this->source); })()), 'form_end');
  369.         yield "
  370.       </div>
  371.     </div>
  372.     <script>
  373.       function registerUser(){
  374.         const registrationForm =  document.querySelector('#js-registration_form');
  375.         const registrationFormData = new FormData(registrationForm);
  376.         \$.ajax({
  377.           url: '";
  378.         // line 316
  379.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
  380.         yield "',
  381.           method: 'POST',
  382.           data: registrationFormData,
  383.           processData: false,
  384.           contentType: false,
  385.           success: function(r) {
  386.             const response = JSON.parse(r)
  387.             if (response.status =='success'){
  388.               console.log(response)
  389.             } else {
  390.               return displayToast(response.message, 'error', 3000)
  391.             }
  392.           },
  393.           error: function (e) {
  394.             const error = JSON.parse(e)
  395.             return displayToast(error.message, 'error', 3000)
  396.           }
  397.         });
  398.       }
  399.       document.getElementById(\"profile-image-input\").onchange = function(){
  400.         const uploadedImage = URL.createObjectURL(this.files[0])
  401.         
  402.         const formData = new FormData()
  403.         formData.append('mediaType', 'LG')
  404.         formData.append('upload_form[media]', this.files[0], this.files[0].name)
  405.         formData.append('upload_form[_token]', \$('#upload_form__token').val())
  406.         \$('.profile-img-result').html(`
  407.           <img src=\"\${uploadedImage}\" class=\"w-full h-full object-cover object-center\">
  408.         `)
  409.         \$.ajax({
  410.             url: '";
  411.         // line 349
  412.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("image_upload_post");
  413.         yield "',
  414.             method: 'POST',
  415.             data: formData,
  416.             processData: false,
  417.             contentType: false,
  418.             success: function(r) {
  419.               const response = JSON.parse(r)
  420.               \$('.metadata-profile').val(response.imageMetadataUid)
  421.             },
  422.             error: function (e) {
  423.               const error = JSON.parse(e)
  424.               return displayToast(error.message, 'error', 3000)
  425.             }
  426.           })
  427.       }
  428.     </script>
  429. ";
  430.         
  431.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  432.         
  433.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  434.         yield from [];
  435.     }
  436.     /**
  437.      * @codeCoverageIgnore
  438.      */
  439.     public function getTemplateName(): string
  440.     {
  441.         return "registration/register.html.twig";
  442.     }
  443.     /**
  444.      * @codeCoverageIgnore
  445.      */
  446.     public function isTraitable(): bool
  447.     {
  448.         return false;
  449.     }
  450.     /**
  451.      * @codeCoverageIgnore
  452.      */
  453.     public function getDebugInfo(): array
  454.     {
  455.         return array (  440 => 349,  404 => 316,  392 => 307,  326 => 244,  322 => 243,  313 => 236,  311 => 228,  310 => 227,  309 => 225,  303 => 221,  301 => 213,  300 => 212,  299 => 210,  294 => 207,  292 => 199,  291 => 198,  290 => 196,  285 => 193,  283 => 185,  282 => 184,  281 => 182,  273 => 176,  271 => 169,  270 => 168,  269 => 167,  268 => 165,  263 => 162,  261 => 155,  260 => 154,  259 => 153,  258 => 151,  250 => 146,  241 => 140,  230 => 131,  228 => 126,  223 => 123,  221 => 115,  220 => 114,  219 => 112,  216 => 111,  214 => 104,  213 => 103,  212 => 102,  211 => 100,  185 => 77,  157 => 52,  129 => 27,  115 => 16,  105 => 8,  92 => 7,  69 => 5,  58 => 1,  56 => 3,  54 => 2,  41 => 1,);
  456.     }
  457.     public function getSourceContext(): Source
  458.     {
  459.         return new Source("{% extends 'base.html.twig' %}
  460. {% import \"macros/form-input.html.twig\" as inputMacro %}
  461. {% import 'macros/doc-upload.html.twig' as docUpload %}
  462. {% block title %}Register{% endblock %}
  463. {% block body %}
  464.     <div class=\"w-full max-w-screen-2xl py-16 mx-auto px-6\">
  465.       <h1 class=\"md:text-4xl text-3xl font-bold text-gray-800 text-center\">
  466.         Membership Application Form
  467.       </h1>
  468.       <p class=\"text-lg text-gray-800 text-center my-5\">
  469.         Please fill up the form below to apply for membership.
  470.       </p>
  471.       <div class=\"w-full max-w-lg mx-auto my-5 py-5\">
  472.         {{ form_start(registrationForm, { 'attr': {'autocomplete': 'off','id':'js-registration_form'}}) }}
  473.           <div class=\"w-full flex flex-col gap-4\">
  474.             <h3 class=\"text-base text-gray-800 font-semibold mb-2\">
  475.               Gender
  476.             </h3>
  477.             <div class=\"grid lg:grid-cols-3 gap-3\">
  478.               <div class=\"lg:col-span-2\">
  479.                 <div class=\"w-full flex md:flex-row flex-col md:items-center mb-4 gap-3\">
  480.                   <div class=\"inline-flex items-center gap-x-2\">
  481.                     <input
  482.                       id=\"male\"
  483.                       name=\"{{ field_name(registrationForm.gender) }}\"
  484.                       value=\"M\"
  485.                       type=\"radio\"
  486.                       class=\"
  487.                         inline-block
  488.                         w-4
  489.                         h-4
  490.                         rounded
  491.                         accent-brand
  492.                         border-brand
  493.                         focus:ring-0
  494.                         active:ring-0
  495.                       \"
  496.                       required
  497.                     >
  498.                     <label
  499.                       for=\"male\"
  500.                       class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\"
  501.                     >
  502.                       Male
  503.                     </label>
  504.                   </div>
  505.                   <div class=\"inline-flex items-center gap-x-2\">
  506.                     <input
  507.                       id=\"female\"
  508.                       name=\"{{ field_name(registrationForm.gender) }}\"
  509.                       value=\"F\"
  510.                       type=\"radio\"
  511.                       class=\"
  512.                         inline-block
  513.                         w-4
  514.                         h-4
  515.                         rounded
  516.                         accent-brand
  517.                         border-brand
  518.                         focus:ring-0
  519.                         active:ring-0
  520.                       \"
  521.                       required
  522.                     >
  523.                     <label
  524.                       for=\"female\"
  525.                       class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\"
  526.                     >
  527.                       Female
  528.                     </label>
  529.                   </div>
  530.                   <div class=\"inline-flex items-center gap-x-2\">
  531.                     <input
  532.                       id=\"other\"
  533.                       name=\"{{ field_name(registrationForm.gender) }}\"
  534.                       value=\"O\"
  535.                       type=\"radio\"
  536.                       class=\"
  537.                         inline-block
  538.                         w-4
  539.                         h-4
  540.                         rounded
  541.                         accent-brand
  542.                         border-brand
  543.                         focus:ring-0
  544.                         active:ring-0
  545.                       \"
  546.                       required
  547.                     >
  548.                     <label
  549.                       for=\"other\"
  550.                       class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\"
  551.                     >
  552.                       Other
  553.                     </label>
  554.                   </div>
  555.                 </div>
  556.                 {{ inputMacro.input
  557.                     (
  558.                       field_name(registrationForm.email),
  559.                       field_value(registrationForm.email),
  560.                       field_label(registrationForm.email),
  561.                       'email',
  562.                       true,
  563.                       true,
  564.                       false,
  565.                       'email'
  566.                     )
  567.                 }}
  568.                 {{ inputMacro.input
  569.                   (
  570.                     field_name(registrationForm.phoneNo),
  571.                     field_value(registrationForm.phoneNo),
  572.                     'Phone No.',
  573.                     'tel',
  574.                     true,
  575.                     false,
  576.                     false,
  577.                     'phone'
  578.                   )
  579.                 }}
  580.               </div>
  581.               <div class=\"lg:col-span-1 flex lg:justify-end\">
  582.                 {{ form_start(uploadForm,
  583.                   {'attr': {
  584.                     'id': 'profile-image'
  585.                     }
  586.                   })
  587.                 }}
  588.                   <div class=\"w-36 h-36 rounded-lg bg-gray-100 relative overflow-hidden\">
  589.                     <div class=\"profile-img-result absolute w-full h-full bg-gray-100 inline-flex items-center justify-center\">
  590.                       <svg xmlns=\"http://www.w3.org/2000/svg\" class=\"w-8 h-8 fill-gray-400\" viewBox=\"0 0 24 24\">
  591.                         <path d=\"M19,4h-.508L16.308,1.168A3.023,3.023,0,0,0,13.932,0H10.068A3.023,3.023,0,0,0,7.692,1.168L5.508,4H5A5.006,5.006,0,0,0,0,9V19a5.006,5.006,0,0,0,5,5H19a5.006,5.006,0,0,0,5-5V9A5.006,5.006,0,0,0,19,4ZM9.276,2.39A1.006,1.006,0,0,1,10.068,2h3.864a1.008,1.008,0,0,1,.792.39L15.966,4H8.034ZM22,19a3,3,0,0,1-3,3H5a3,3,0,0,1-3-3V9A3,3,0,0,1,5,6H19a3,3,0,0,1,3,3Z\"/>
  592.                         <path d=\"M12,8a6,6,0,1,0,6,6A6.006,6.006,0,0,0,12,8Zm0,10a4,4,0,1,1,4-4A4,4,0,0,1,12,18Z\"/>
  593.                       </svg>
  594.                     </div>
  595.                     <div class=\"relative opacity-0 w-full h-full\">
  596.                       <input type=\"file\" id=\"profile-image-input\" name=\"{{ field_name(uploadForm.media) }}\" accept=\".png,.jpg,.jpeg\" class=\"block opacity-0 w-full h-full cursor-pointer py-2\" />
  597.                     </div>
  598.                     <div class=\"absolute w-full py-1.5 text-xs text-center bottom-0 bg-black text-white\">
  599.                       Upload
  600.                     </div>
  601.                   </div>
  602.                 {{ form_end(uploadForm) }}
  603.               </div>
  604.             </div>
  605.             <div class=\"grid lg:grid-cols-2 gap-3\">
  606.               <div class=\"lg:col-span-1\">
  607.                 {{ inputMacro.input
  608.                     (
  609.                       field_name(registrationForm.firstName),
  610.                       field_value(registrationForm.firstName),
  611.                       field_label(registrationForm.firstName),
  612.                       'text',
  613.                       true,
  614.                       false,
  615.                       false,
  616.                       'fname'
  617.                     )
  618.                 }}
  619.               </div>
  620.               <div class=\"lg:col-span-1\">
  621.                 {{ inputMacro.input
  622.                     (
  623.                       field_name(registrationForm.lastName),
  624.                       field_value(registrationForm.lastName),
  625.                       field_label(registrationForm.lastName),
  626.                       'text',
  627.                       true,
  628.                       false,
  629.                       false,
  630.                       'lname'
  631.                     )
  632.                 }}
  633.               </div>
  634.             </div>
  635.             <div class=\"grid lg:grid-cols-3 gap-3\">
  636.               <div class=\"lg:col-span-1\">
  637.             {{ inputMacro.input
  638.               (
  639.                 field_name(registrationForm.houseNumber),
  640.                 field_value(registrationForm.houseNumber),
  641.                 'House Number',
  642.                 'text',
  643.                 true,
  644.                 false,
  645.                 false,
  646.                 'houseNumber'
  647.               )
  648.             }}
  649.             </div>
  650.             <div class=\"lg:col-span-1\">
  651.             {{ inputMacro.input
  652.               (
  653.                 field_name(registrationForm.street),
  654.                 field_value(registrationForm.street),
  655.                 'Street',
  656.                 'text',
  657.                 true,
  658.                 false,
  659.                 false,
  660.                 'street'
  661.               )
  662.             }}
  663.             </div>
  664.             <div class=\"lg:col-span-1\">
  665.             {{ inputMacro.input
  666.               (
  667.                 field_name(registrationForm.postCode),
  668.                 field_value(registrationForm.postCode),
  669.                 'postCode',
  670.                 'text',
  671.                 true,
  672.                 false,
  673.                 false,
  674.                 'postCode'
  675.               )
  676.             }}
  677.             </div>
  678.             </div>
  679.             {{ inputMacro.input
  680.                 (
  681.                   field_name(registrationForm.plainPassword),
  682.                   field_value(registrationForm.plainPassword),
  683.                   'Password',
  684.                   'password',
  685.                   true,
  686.                   false,
  687.                   false,
  688.                   'password'
  689.                 )
  690.             }}
  691.             <div class=\"w-full flex items-center mt-4 mb-8\">
  692.               <input
  693.                       id=\"agree\"
  694.                       name=\"{{ field_name(registrationForm.agreeTerms) }}\"
  695.                       value=\"{{ field_value(registrationForm.agreeTerms) }}\"
  696.                       type=\"checkbox\"
  697.                       class=\"
  698.                 inline-block
  699.                 w-4
  700.                 h-4
  701.                 rounded
  702.                 accent-brand
  703.                 border-brand
  704.                 focus:ring-0
  705.                 active:ring-0
  706.               \"
  707.                       required
  708.               >
  709.               <label
  710.                       for=\"agree\"
  711.                       class=\"grow ml-2 font-normal text-gray-700 cursor-pointer text-base\"
  712.               >
  713.                 Agree
  714.               </label>
  715.             </div>
  716.             <input type=\"hidden\" name=\"imageType\" value=\"LG\">
  717.             <input type=\"hidden\" name=\"imageMetadata\" class=\"metadata-profile\">
  718.             <div class=\"w-full text-center mt-4\">
  719.               <button
  720.                 type=\"submit\"
  721.                 class=\"
  722.                   next
  723.                   rounded-full
  724.                   bg-transparent
  725.                   border
  726.                   border-brand
  727.                   px-12
  728.                   py-3
  729.                   inline-flex
  730.                   items-center
  731.                   justify-center
  732.                   text-base
  733.                   group
  734.                   font-semibold
  735.                   transition-all
  736.                   duration-500
  737.                   relative
  738.                   overflow-hidden
  739.                   after:content=['']
  740.                   after:w-0
  741.                   after:h-full
  742.                   after:absolute
  743.                   after:block
  744.                   after:inset-0
  745.                   hover:after:w-full
  746.                   after:transition-all
  747.                   after:duration-500
  748.                   after:bg-brand
  749.                   after:text-white
  750.                 \"
  751.               >
  752.                 <span class=\"z-10 group-hover:text-white text-brand transition-all duration-700\">
  753.                   Submit
  754.                 </span>
  755.               </button>
  756.             </div>
  757.           </div>
  758.         {{ form_end(registrationForm) }}
  759.       </div>
  760.     </div>
  761.     <script>
  762.       function registerUser(){
  763.         const registrationForm =  document.querySelector('#js-registration_form');
  764.         const registrationFormData = new FormData(registrationForm);
  765.         \$.ajax({
  766.           url: '{{ path('app_register') }}',
  767.           method: 'POST',
  768.           data: registrationFormData,
  769.           processData: false,
  770.           contentType: false,
  771.           success: function(r) {
  772.             const response = JSON.parse(r)
  773.             if (response.status =='success'){
  774.               console.log(response)
  775.             } else {
  776.               return displayToast(response.message, 'error', 3000)
  777.             }
  778.           },
  779.           error: function (e) {
  780.             const error = JSON.parse(e)
  781.             return displayToast(error.message, 'error', 3000)
  782.           }
  783.         });
  784.       }
  785.       document.getElementById(\"profile-image-input\").onchange = function(){
  786.         const uploadedImage = URL.createObjectURL(this.files[0])
  787.         
  788.         const formData = new FormData()
  789.         formData.append('mediaType', 'LG')
  790.         formData.append('upload_form[media]', this.files[0], this.files[0].name)
  791.         formData.append('upload_form[_token]', \$('#upload_form__token').val())
  792.         \$('.profile-img-result').html(`
  793.           <img src=\"\${uploadedImage}\" class=\"w-full h-full object-cover object-center\">
  794.         `)
  795.         \$.ajax({
  796.             url: '{{ path('image_upload_post') }}',
  797.             method: 'POST',
  798.             data: formData,
  799.             processData: false,
  800.             contentType: false,
  801.             success: function(r) {
  802.               const response = JSON.parse(r)
  803.               \$('.metadata-profile').val(response.imageMetadataUid)
  804.             },
  805.             error: function (e) {
  806.               const error = JSON.parse(e)
  807.               return displayToast(error.message, 'error', 3000)
  808.             }
  809.           })
  810.       }
  811.     </script>
  812. {% endblock %}
  813. ""registration/register.html.twig""/home/u642250512/domains/demo.onld.co.uk/public_html/templates/registration/register.html.twig");
  814.     }
  815. }