var/cache/dev/twig/11/1187eb94701583e3fc9eebc5e488184f.php line 48

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @Public/common/registration/_student_form.html.twig */
  14. class __TwigTemplate_54044bdb81bd8154cfae464c3f42d2d2 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Public/common/registration/_student_form.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Public/common/registration/_student_form.html.twig"));
  33.         // line 1
  34.         $macros["__internal_parse_0"] = $this->macros["__internal_parse_0"] = $this->loadTemplate("@Public/macro/fields.html.twig""@Public/common/registration/_student_form.html.twig"1)->unwrap();
  35.         // line 2
  36.         echo "
  37. ";
  38.         // line 3
  39.         $context["studentForm"] = $this->extensions['FMT\Application\Twig\RegistrationExtension']->getStudentRegistrationForm();
  40.         // line 4
  41.         echo "
  42. ";
  43.         // line 5
  44.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["studentForm"]) || array_key_exists("studentForm"$context) ? $context["studentForm"] : (function () { throw new RuntimeError('Variable "studentForm" does not exist.'5$this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl(twig_constant("FMT\\Application\\Controller\\Common\\RegistrationController::ROUTE_STUDENT_REGISTER"))]);
  45.         echo "
  46. ";
  47.         // line 6
  48.         echo twig_call_macro($macros["__internal_parse_0"], "macro_form_input", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["studentForm"]) || array_key_exists("studentForm"$context) ? $context["studentForm"] : (function () { throw new RuntimeError('Variable "studentForm" does not exist.'6$this->source); })()), "profile", [], "any"falsefalsefalse6), "firstName", [], "any"falsefalsefalse6)], 6$context$this->getSourceContext());
  49.         echo "
  50. ";
  51.         // line 7
  52.         echo twig_call_macro($macros["__internal_parse_0"], "macro_form_input", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["studentForm"]) || array_key_exists("studentForm"$context) ? $context["studentForm"] : (function () { throw new RuntimeError('Variable "studentForm" does not exist.'7$this->source); })()), "profile", [], "any"falsefalsefalse7), "lastName", [], "any"falsefalsefalse7)], 7$context$this->getSourceContext());
  53.         echo "
  54. ";
  55.         // line 8
  56.         echo twig_call_macro($macros["__internal_parse_0"], "macro_form_input", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["studentForm"]) || array_key_exists("studentForm"$context) ? $context["studentForm"] : (function () { throw new RuntimeError('Variable "studentForm" does not exist.'8$this->source); })()), "profile", [], "any"falsefalsefalse8), "school", [], "any"falsefalsefalse8)], 8$context$this->getSourceContext());
  57.         echo "
  58. ";
  59.         // line 9
  60.         echo twig_call_macro($macros["__internal_parse_0"], "macro_form_input", [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["studentForm"]) || array_key_exists("studentForm"$context) ? $context["studentForm"] : (function () { throw new RuntimeError('Variable "studentForm" does not exist.'9$this->source); })()), "profile", [], "any"falsefalsefalse9), "phone", [], "any"falsefalsefalse9)], 9$context$this->getSourceContext());
  61.         echo "
  62. ";
  63.         // line 10
  64.         echo twig_call_macro($macros["__internal_parse_0"], "macro_form_login_registration_input", [twig_get_attribute($this->env$this->source, (isset($context["studentForm"]) || array_key_exists("studentForm"$context) ? $context["studentForm"] : (function () { throw new RuntimeError('Variable "studentForm" does not exist.'10$this->source); })()), "login", [], "any"falsefalsefalse10)], 10$context$this->getSourceContext());
  65.         echo "
  66. <span style=\"color: gray;font-style: italic;display:none;\">";
  67.         // line 11
  68.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fmt.authentication.email_valid"), "html"nulltrue);
  69.         echo "</span>
  70. <div class=\"text-center\">
  71.     <button type=\"submit\" class=\"btn btn-primary student-reg-btn-submit\">";
  72.         // line 13
  73.         echo twig_escape_filter($this->envtwig_upper_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("fmt.form.submit")), "html"nulltrue);
  74.         echo "</button>
  75. </div>
  76. ";
  77.         // line 15
  78.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["studentForm"]) || array_key_exists("studentForm"$context) ? $context["studentForm"] : (function () { throw new RuntimeError('Variable "studentForm" does not exist.'15$this->source); })()), 'form_end');
  79.         echo "
  80. ";
  81.         
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  83.         
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  85.     }
  86.     public function getTemplateName()
  87.     {
  88.         return "@Public/common/registration/_student_form.html.twig";
  89.     }
  90.     public function isTraitable()
  91.     {
  92.         return false;
  93.     }
  94.     public function getDebugInfo()
  95.     {
  96.         return array (  87 => 15,  82 => 13,  77 => 11,  73 => 10,  69 => 9,  65 => 8,  61 => 7,  57 => 6,  53 => 5,  50 => 4,  48 => 3,  45 => 2,  43 => 1,);
  97.     }
  98.     public function getSourceContext()
  99.     {
  100.         return new Source("{% from '@Public/macro/fields.html.twig' import form_input, form_login_registration_input %}
  101. {% set studentForm = get_student_registration_form() %}
  102. {{ form_start(studentForm, {'action': url(constant('FMT\\\\Application\\\\Controller\\\\Common\\\\RegistrationController::ROUTE_STUDENT_REGISTER'))}) }}
  103. {{ form_input(studentForm.profile.firstName) }}
  104. {{ form_input(studentForm.profile.lastName) }}
  105. {{ form_input(studentForm.profile.school) }}
  106. {{ form_input(studentForm.profile.phone) }}
  107. {{ form_login_registration_input(studentForm.login) }}
  108. <span style=\"color: gray;font-style: italic;display:none;\">{{ 'fmt.authentication.email_valid'|trans }}</span>
  109. <div class=\"text-center\">
  110.     <button type=\"submit\" class=\"btn btn-primary student-reg-btn-submit\">{{ 'fmt.form.submit'|trans|upper }}</button>
  111. </div>
  112. {{ form_end(studentForm) }}
  113. ""@Public/common/registration/_student_form.html.twig""/home/fmt/public_html/templates/common/registration/_student_form.html.twig");
  114.     }
  115. }