var/cache/dev/twig/b7/b7b391bbc536f00b8359352d59a928070bee7a59f9a6b5a0feb9037191b9a13a.php line 55

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. /* Registration/index.html.twig */
  14. class __TwigTemplate_0158a108229b4c576fc600d8ac995b83c48551fb85631825a24fd6c168aa55a1 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'page_id' => [$this'block_page_id'],
  24.             'javascripts' => [$this'block_javascripts'],
  25.             'content' => [$this'block_content'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "layout_public.html.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""Registration/index.html.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""Registration/index.html.twig"));
  40.         // line 2
  41.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Common/macros.html.twig""Registration/index.html.twig"2)->unwrap();
  42.         // line 3
  43.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'3$this->source); })()), "Common/form_theme.html.twig"true);
  44.         // line 1
  45.         $this->parent $this->loadTemplate("layout_public.html.twig""Registration/index.html.twig"1);
  46.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 5
  53.     public function block_page_id($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_id"));
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_id"));
  60.         echo "user-registration";
  61.         
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  63.         
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  65.     }
  66.     // line 7
  67.     public function block_javascripts($context, array $blocks = [])
  68.     {
  69.         $macros $this->macros;
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  74.         // line 8
  75.         echo "    ";
  76.         $this->displayParentBlock("javascripts"$context$blocks);
  77.         echo "
  78.     <style>
  79.         div.switch-conteiner div.on-off-switch {
  80.             float: right;
  81.         }
  82.     </style>
  83.     <script type=\"text/javascript\">
  84.         require(['app'], function() {
  85.             require(['jquery', 'app/pages/userForm', 'app/pages/registrationForm'], function(\$, UserForm, RegistrationForm) {
  86.                 \$(function() {
  87.                     new UserForm({
  88.                         countryUsName: '";
  89.         // line 19
  90.         echo twig_escape_filter($this->envtwig_constant("App\\ValueObject\\Country::US_NAME"), "html"nulltrue);
  91.         echo "'
  92.                     });
  93.                     new RegistrationForm(
  94.                         \$('#user_form_registerAsIndividual'),
  95.                         \$('#user_form_requestedOrganization')
  96.                     );
  97.                 });
  98.             });
  99.         });
  100.     </script>
  101. ";
  102.         
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  104.         
  105.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  106.     }
  107.     // line 31
  108.     public function block_content($context, array $blocks = [])
  109.     {
  110.         $macros $this->macros;
  111.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  112.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  113.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  114.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  115.         // line 32
  116.         echo "    <div>
  117.         <div class=\"page\" id=\"security-registration\">
  118.             <div class=\"registration-content\">
  119.                 <div class=\"container-form-register\">
  120.                     <div class=\"error\">";
  121.         // line 37
  122.         echo twig_call_macro($macros["macros"], "macro_form_general_errors", [(isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'37$this->source); })())], 37$context$this->getSourceContext());
  123.         echo "</div>
  124.                     <div class=\"logo-content\">
  125.                         <div class=\"LogoSecurity\">
  126.                             <img src=\"";
  127.         // line 40
  128.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/app/security/"), "html"nulltrue);
  129.         echo "munireg-finallogo.svg\" alt=\"\" >
  130.                         </div>
  131.                         <p>Create New Account</p>
  132.                         <span>Are you a municipal official looking to benefit from a partnership with MuniReg?<br/> Please contact info@munireg.com for assistance with creating an account.</span>
  133.                         <div>
  134.                             <a>
  135.                                 Already have an account?
  136.                                 <a href=\"";
  137.         // line 47
  138.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_home");
  139.         echo "\">Log in</a>
  140.                             </a>
  141.                         </div>
  142.                     </div>
  143.                     <div class=\"form-registration-content\" id=\"user-form\">
  144.                         <input type=\"hidden\" id=\"otherRegPartyId\" value=\"";
  145.         // line 52
  146.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["otherRegParty"]) || array_key_exists("otherRegParty"$context) ? $context["otherRegParty"] : (function () { throw new RuntimeError('Variable "otherRegParty" does not exist.'52$this->source); })()), "id", [], "any"falsefalsefalse52), "html"nulltrue);
  147.         echo "\">
  148.                         ";
  149.         // line 53
  150.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'53$this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_registration_index")]);
  151.         echo "
  152. \t\t\t\t\t\t";
  153.         // line 54
  154.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'54$this->source); })()), "_token", [], "any"falsefalsefalse54), 'widget');
  155.         echo "
  156.                             <div class=\"formItemsContainer\">
  157.                                 <div class=\"item-doble\">
  158.                                     ";
  159.         // line 57
  160.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'57$this->source); })()), "registeringOrganization", [], "any"falsefalsefalse57), 'row');
  161.         echo "
  162.                                 </div>
  163.                                 <div class=\"item-doble\">
  164.                                     ";
  165.         // line 60
  166.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'60$this->source); })()), "isHomeOwner", [], "any"falsefalsefalse60), 'row');
  167.         echo "
  168.                                 </div>
  169. ";
  170.         // line 66
  171.         echo "                                <div class=\"item-doble\">
  172.                                     ";
  173.         // line 67
  174.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'67$this->source); })()), "firstname", [], "any"falsefalsefalse67), 'row');
  175.         echo "
  176.                                 </div>
  177.                                 <div class=\"item-doble\">
  178.                                     ";
  179.         // line 70
  180.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'70$this->source); })()), "lastname", [], "any"falsefalsefalse70), 'row');
  181.         echo "
  182.                                 </div>
  183.                                 <div class=\"item-doble\">
  184.                                     ";
  185.         // line 73
  186.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'73$this->source); })()), "phone", [], "any"falsefalsefalse73), 'row');
  187.         echo "
  188.                                 </div>
  189.                                 <div class=\"item-doble\">
  190.                                     ";
  191.         // line 76
  192.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'76$this->source); })()), "email", [], "any"falsefalsefalse76), 'row');
  193.         echo "
  194.                                 </div>
  195.                                 <div class=\"item-doble\">
  196.                                     ";
  197.         // line 79
  198.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'79$this->source); })()), "password", [], "any"falsefalsefalse79), "first", [], "any"falsefalsefalse79), 'row');
  199.         echo "
  200.                                 </div>
  201.                                 <div class=\"item-doble\">
  202.                                     ";
  203.         // line 82
  204.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'82$this->source); })()), "password", [], "any"falsefalsefalse82), "second", [], "any"falsefalsefalse82), 'row');
  205.         echo "
  206.                                 </div>
  207.                                 <div class=\"item-doble\">
  208.                                     ";
  209.         // line 85
  210.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'85$this->source); })()), "organization", [], "any"falsefalsefalse85), 'row');
  211.         echo "
  212.                                 </div>
  213.                                 <div class=\"item-doble\">
  214.                                     ";
  215.         // line 88
  216.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'88$this->source); })()), "department", [], "any"falsefalsefalse88), 'row');
  217.         echo "
  218.                                 </div>
  219.                                 <div class=\"item-single\">
  220.                                     ";
  221.         // line 91
  222.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'91$this->source); })()), "requestedOrganization", [], "any"falsefalsefalse91), 'row');
  223.         echo "
  224.                                 </div>
  225.                                 <div class=\"item-single\">
  226.                                     ";
  227.         // line 94
  228.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'94$this->source); })()), "addressFirst", [], "any"falsefalsefalse94), 'row');
  229.         echo "
  230.                                 </div>
  231.                                 <div class=\"item-single\">
  232.                                     ";
  233.         // line 97
  234.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'97$this->source); })()), "addressSecond", [], "any"falsefalsefalse97), 'row');
  235.         echo "
  236.                                 </div>
  237.                                 <div class=\"item-doble\">
  238.                                     ";
  239.         // line 100
  240.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'100$this->source); })()), "city", [], "any"falsefalsefalse100), 'row');
  241.         echo "
  242.                                 </div>
  243.                                 <div class=\"item-doble\">
  244.                                     ";
  245.         // line 103
  246.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'103$this->source); })()), "zipCode", [], "any"falsefalsefalse103), 'row');
  247.         echo "
  248.                                 </div>
  249.                                 <div class=\"item-doble\">
  250.                                     ";
  251.         // line 106
  252.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'106$this->source); })()), "state", [], "any"falsefalsefalse106), 'row', ["attr" => ["class" => "state-select"]]);
  253.         echo "
  254.                                     ";
  255.         // line 107
  256.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'107$this->source); })()), "stateName", [], "any"falsefalsefalse107), 'row', ["attr" => ["class" => "state-input"], "row_classes" => "hidden"]);
  257.         echo "
  258.                                 </div>
  259.                                 <div class=\"item-doble\">
  260.                                     ";
  261.         // line 110
  262.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'110$this->source); })()), "country", [], "any"falsefalsefalse110), 'row', ["attr" => ["class" => "country-select"], "value" => $this->extensions['App\Twig\AppExtension']->defaultCountryId()]);
  263.         echo "
  264.                                 </div>
  265.                                 <div class=\"item-doble\" style=\"padding: 0px\">
  266.                                     ";
  267.         // line 113
  268.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'113$this->source); })()), "captcha", [], "any"falsefalsefalse113), 'row');
  269.         echo "
  270.                                 </div>
  271.                                 <input type=\"hidden\" name=\"registerAsIndividual\" value=\"1\" id=\"user_form_registerAsIndividual\">
  272.                                 <button type=\"submit\" class=\"btn-green-big\">Create Account</button>
  273.                         </div>
  274.                         ";
  275.         // line 118
  276.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'118$this->source); })()), 'form_end', ["render_rest" => false]);
  277.         echo "
  278.                     </div>
  279.                 </div>
  280.             </div>
  281.         </div>
  282.     </div>
  283. ";
  284.         
  285.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  286.         
  287.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  288.     }
  289.     public function getTemplateName()
  290.     {
  291.         return "Registration/index.html.twig";
  292.     }
  293.     public function isTraitable()
  294.     {
  295.         return false;
  296.     }
  297.     public function getDebugInfo()
  298.     {
  299.         return array (  301 => 118,  293 => 113,  287 => 110,  281 => 107,  277 => 106,  271 => 103,  265 => 100,  259 => 97,  253 => 94,  247 => 91,  241 => 88,  235 => 85,  229 => 82,  223 => 79,  217 => 76,  211 => 73,  205 => 70,  199 => 67,  196 => 66,  191 => 60,  185 => 57,  179 => 54,  175 => 53,  171 => 52,  163 => 47,  153 => 40,  147 => 37,  140 => 32,  130 => 31,  109 => 19,  94 => 8,  84 => 7,  65 => 5,  54 => 1,  52 => 3,  50 => 2,  37 => 1,);
  300.     }
  301.     public function getSourceContext()
  302.     {
  303.         return new Source("{% extends 'layout_public.html.twig' %}
  304. {% import \"Common/macros.html.twig\" as macros %}
  305. {% form_theme form with 'Common/form_theme.html.twig' %}
  306. {% block page_id %}user-registration{% endblock %}
  307. {% block javascripts %}
  308.     {{ parent() }}
  309.     <style>
  310.         div.switch-conteiner div.on-off-switch {
  311.             float: right;
  312.         }
  313.     </style>
  314.     <script type=\"text/javascript\">
  315.         require(['app'], function() {
  316.             require(['jquery', 'app/pages/userForm', 'app/pages/registrationForm'], function(\$, UserForm, RegistrationForm) {
  317.                 \$(function() {
  318.                     new UserForm({
  319.                         countryUsName: '{{ constant('App\\\\ValueObject\\\\Country::US_NAME') }}'
  320.                     });
  321.                     new RegistrationForm(
  322.                         \$('#user_form_registerAsIndividual'),
  323.                         \$('#user_form_requestedOrganization')
  324.                     );
  325.                 });
  326.             });
  327.         });
  328.     </script>
  329. {% endblock %}
  330. {% block content %}
  331.     <div>
  332.         <div class=\"page\" id=\"security-registration\">
  333.             <div class=\"registration-content\">
  334.                 <div class=\"container-form-register\">
  335.                     <div class=\"error\">{{ macros.form_general_errors(form) }}</div>
  336.                     <div class=\"logo-content\">
  337.                         <div class=\"LogoSecurity\">
  338.                             <img src=\"{{ asset('images/app/security/') }}munireg-finallogo.svg\" alt=\"\" >
  339.                         </div>
  340.                         <p>Create New Account</p>
  341.                         <span>Are you a municipal official looking to benefit from a partnership with MuniReg?<br/> Please contact info@munireg.com for assistance with creating an account.</span>
  342.                         <div>
  343.                             <a>
  344.                                 Already have an account?
  345.                                 <a href=\"{{ path('app_home') }}\">Log in</a>
  346.                             </a>
  347.                         </div>
  348.                     </div>
  349.                     <div class=\"form-registration-content\" id=\"user-form\">
  350.                         <input type=\"hidden\" id=\"otherRegPartyId\" value=\"{{ otherRegParty.id }}\">
  351.                         {{ form_start(form, { 'action': path('app_registration_index')}) }}
  352. \t\t\t\t\t\t{{ form_widget(form._token) }}
  353.                             <div class=\"formItemsContainer\">
  354.                                 <div class=\"item-doble\">
  355.                                     {{ form_row(form.registeringOrganization) }}
  356.                                 </div>
  357.                                 <div class=\"item-doble\">
  358.                                     {{ form_row(form.isHomeOwner) }}
  359.                                 </div>
  360. {#                                <div class=\"item-doble\">#}
  361. {#                                    {{ form_row(form.organization, { 'attr': { 'class': 'requested-organization' } }) }}#}
  362. {#                                    {{ form_row(form.requestedOrganization, { 'attr': { 'class': 'requested-organization' } }) }}#}
  363. {#                                </div>#}
  364.                                 <div class=\"item-doble\">
  365.                                     {{ form_row(form.firstname) }}
  366.                                 </div>
  367.                                 <div class=\"item-doble\">
  368.                                     {{ form_row(form.lastname) }}
  369.                                 </div>
  370.                                 <div class=\"item-doble\">
  371.                                     {{ form_row(form.phone) }}
  372.                                 </div>
  373.                                 <div class=\"item-doble\">
  374.                                     {{ form_row(form.email) }}
  375.                                 </div>
  376.                                 <div class=\"item-doble\">
  377.                                     {{ form_row(form.password.first) }}
  378.                                 </div>
  379.                                 <div class=\"item-doble\">
  380.                                     {{ form_row(form.password.second) }}
  381.                                 </div>
  382.                                 <div class=\"item-doble\">
  383.                                     {{ form_row(form.organization) }}
  384.                                 </div>
  385.                                 <div class=\"item-doble\">
  386.                                     {{ form_row(form.department) }}
  387.                                 </div>
  388.                                 <div class=\"item-single\">
  389.                                     {{ form_row(form.requestedOrganization) }}
  390.                                 </div>
  391.                                 <div class=\"item-single\">
  392.                                     {{ form_row(form.addressFirst) }}
  393.                                 </div>
  394.                                 <div class=\"item-single\">
  395.                                     {{ form_row(form.addressSecond) }}
  396.                                 </div>
  397.                                 <div class=\"item-doble\">
  398.                                     {{ form_row(form.city) }}
  399.                                 </div>
  400.                                 <div class=\"item-doble\">
  401.                                     {{ form_row(form.zipCode) }}
  402.                                 </div>
  403.                                 <div class=\"item-doble\">
  404.                                     {{ form_row(form.state, { 'attr': { 'class': 'state-select' } }) }}
  405.                                     {{ form_row(form.stateName, { 'attr': { 'class': 'state-input' }, 'row_classes': 'hidden' }) }}
  406.                                 </div>
  407.                                 <div class=\"item-doble\">
  408.                                     {{ form_row(form.country, { 'attr': { 'class': 'country-select' }, 'value' : defaultCountryId() }) }}
  409.                                 </div>
  410.                                 <div class=\"item-doble\" style=\"padding: 0px\">
  411.                                     {{ form_row(form.captcha) }}
  412.                                 </div>
  413.                                 <input type=\"hidden\" name=\"registerAsIndividual\" value=\"1\" id=\"user_form_registerAsIndividual\">
  414.                                 <button type=\"submit\" class=\"btn-green-big\">Create Account</button>
  415.                         </div>
  416.                         {{ form_end(form, {'render_rest': false}) }}
  417.                     </div>
  418.                 </div>
  419.             </div>
  420.         </div>
  421.     </div>
  422. {% endblock %}
  423. ""Registration/index.html.twig""/var/www/app-dev-munireg/templates/Registration/index.html.twig");
  424.     }
  425. }