var/cache/dev/twig/03/033f22f0718ee63532a725abdd8afe49.php line 172

Open in your IDE?
  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. /* @FOSUser/Registration/register_content_email_form.html.twig */
  16. class __TwigTemplate_37e78b9b400aa0e265660b3bef618234 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->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FOSUser/Registration/register_content_email_form.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FOSUser/Registration/register_content_email_form.html.twig"));
  38. // line 2
  39. yield "
  40. <style>
  41. /* Living Styleguide Styles für das E-Mail-Eingabefeld */
  42. #fos_user_registration_form_email_first {
  43. display: block;
  44. width: 100%;
  45. border-radius: 0.75rem;
  46. border: 0;
  47. padding: 0.375rem 0.75rem;
  48. color: #1f2937;
  49. box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  50. outline: none;
  51. transition: all 150ms;
  52. background-color: #FAFAFA;
  53. /* Ring effect */
  54. --tw-ring-offset-shadow: 0 0 #0000;
  55. --tw-ring-shadow: 0 0 0 1px #d1d5db inset;
  56. box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 1px 2px 0 rgb(0 0 0 / 0.05);
  57. }
  58. #fos_user_registration_form_email_first:focus {
  59. background-color: white;
  60. --tw-ring-shadow: 0 0 0 2px #6b7280 inset;
  61. box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 1px 2px 0 rgb(0 0 0 / 0.05);
  62. }
  63. #fos_user_registration_form_email_first::placeholder {
  64. color: #9ca3af;
  65. }
  66. </style>
  67. <div class=\"col-md-6 mb-4\">
  68. <div class=\"jlls-card\">
  69. <div class=\"jlls-card-title\" style=\"background-color: #CE99F2;\">
  70. <span class=\"jlls-card-title-text\" style=\"color: white;\">
  71. ";
  72. // line 37
  73. if (((isset($context["createWithRole"]) || array_key_exists("createWithRole", $context) ? $context["createWithRole"] : (function () { throw new RuntimeError('Variable "createWithRole" does not exist.', 37, $this->source); })()) == Twig\Extension\CoreExtension::constant("App\\Entity\\User::ROLE_NAME_JOBOFFERER"))) {
  74. // line 38
  75. yield " ";
  76. yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registration.headline_register_now_jobofferer", [], "FOSUserBundle");
  77. yield "
  78. ";
  79. } else {
  80. // line 40
  81. yield " ";
  82. yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registration.headline_register_now_jobseeker", [], "FOSUserBundle");
  83. yield "
  84. ";
  85. }
  86. // line 42
  87. yield " </span>
  88. </div>
  89. <div class=\"tw-p-6\">
  90. <p class=\"jlls-text tw-mb-4\">
  91. ";
  92. // line 46
  93. if (((isset($context["createWithRole"]) || array_key_exists("createWithRole", $context) ? $context["createWithRole"] : (function () { throw new RuntimeError('Variable "createWithRole" does not exist.', 46, $this->source); })()) == Twig\Extension\CoreExtension::constant("App\\Entity\\User::ROLE_NAME_JOBOFFERER"))) {
  94. // line 47
  95. yield " ";
  96. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registration.please_fill_out.jobofferer", [], "FOSUserBundle"), "html", null, true);
  97. yield "
  98. ";
  99. } else {
  100. // line 49
  101. yield " ";
  102. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registration.please_fill_out.jobseeker", [], "FOSUserBundle"), "html", null, true);
  103. yield "
  104. ";
  105. }
  106. // line 51
  107. yield " </p>
  108. ";
  109. // line 52
  110. yield $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.', 52, $this->source); })()), 'form_start', ["method" => "post", "action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_registration_register", ["createWithRole" => (isset($context["createWithRole"]) || array_key_exists("createWithRole", $context) ? $context["createWithRole"] : (function () { throw new RuntimeError('Variable "createWithRole" does not exist.', 52, $this->source); })())]), "attr" => ["class" => "fos_user_registration_register", "id" => "register-form"]]);
  111. yield "
  112. ";
  113. // line 53
  114. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 53, $this->source); })()), "email", [], "any", false, false, false, 53), 'widget', ["attr" => ["class" => "jlls-text"]]);
  115. yield "
  116. <div class=\"tw-mb-3\">
  117. ";
  118. // line 55
  119. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 55, $this->source); })()), "acceptedTermsAndConditions", [], "any", false, false, false, 55), 'row');
  120. yield "
  121. </div>
  122. <div class=\"tw-flex tw-flex-col tw-gap-4 tw-mt-6\">
  123. ";
  124. // line 59
  125. yield $this->extensions['App\Twig\AppExtension']->captchaJavascriptFunction("register-form", "submit-button");
  126. yield "
  127. <div class=\"";
  128. // line 61
  129. yield $this->extensions['App\Twig\AppExtension']->captchaSubmitClassFunction();
  130. yield "\" ";
  131. yield $this->extensions['App\Twig\AppExtension']->captchaSubmitDataAttributesFunction();
  132. yield "></div>
  133. <button type=\"submit\" class=\"submit-button jlls-button-tertiary tw-w-full tw-justify-center\" data-testid=\"registration-submit-button\">
  134. ";
  135. // line 64
  136. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registration.submit", [], "FOSUserBundle"), "html", null, true);
  137. yield "
  138. </button>
  139. ";
  140. // line 67
  141. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["feature_flag_service"]) || array_key_exists("feature_flag_service", $context) ? $context["feature_flag_service"] : (function () { throw new RuntimeError('Variable "feature_flag_service" does not exist.', 67, $this->source); })()), "featureEnabledForRequest", [Twig\Extension\CoreExtension::constant("App\\Service\\FeatureFlagService::FEATURE_REGISTER_VIA_GOOGLE_IDENTITY"), CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 67, $this->source); })()), "request", [], "any", false, false, false, 67)], "method", false, false, false, 67)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  142. // line 68
  143. yield " ";
  144. // line 69
  145. yield "
  146. ";
  147. // line 70
  148. if (((isset($context["createWithRole"]) || array_key_exists("createWithRole", $context) ? $context["createWithRole"] : (function () { throw new RuntimeError('Variable "createWithRole" does not exist.', 70, $this->source); })()) === Twig\Extension\CoreExtension::constant("App\\Entity\\User::ROLE_NAME_JOBSEEKER"))) {
  149. // line 71
  150. yield " <div class=\"jlls-text tw-text-center\">
  151. <span>oder</span>
  152. </div>
  153. <a class=\"jlls-link-as-button-secondary tw-inline-flex tw-items-center tw-justify-center tw-gap-2 tw-w-full\"
  154. href=\"";
  155. // line 75
  156. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["google_identity_service"]) || array_key_exists("google_identity_service", $context) ? $context["google_identity_service"] : (function () { throw new RuntimeError('Variable "google_identity_service" does not exist.', 75, $this->source); })()), "getJobseekerOAuth2TargetUrl", [], "method", false, false, false, 75), "html", null, true);
  157. yield "\"
  158. >
  159. <img width=\"20px\"
  160. alt=\"Google sign-in\"
  161. src=\"";
  162. // line 79
  163. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->cdnifyUri($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/Google_G_Logo.svg.png")), "html", null, true);
  164. yield "\"
  165. />
  166. <span>";
  167. // line 81
  168. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registration.register_via_google", [], "FOSUserBundle"), "html", null, true);
  169. yield "</span>
  170. </a>
  171. ";
  172. }
  173. // line 84
  174. yield " ";
  175. }
  176. // line 85
  177. yield "
  178. </div>
  179. ";
  180. // line 87
  181. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 87, $this->source); })()), "_token", [], "any", false, false, false, 87), 'row');
  182. yield "
  183. ";
  184. // line 88
  185. yield $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.', 88, $this->source); })()), 'form_end');
  186. yield "
  187. </div>
  188. </div>
  189. ";
  190. // line 91
  191. if (((isset($context["createWithRole"]) || array_key_exists("createWithRole", $context) ? $context["createWithRole"] : (function () { throw new RuntimeError('Variable "createWithRole" does not exist.', 91, $this->source); })()) === Twig\Extension\CoreExtension::constant("App\\Entity\\User::ROLE_NAME_JOBOFFERER"))) {
  192. // line 92
  193. yield " <div class=\"tw-mt-6\">
  194. <h2 class=\"jlls-h4 tw-text-center tw-mb-4\">";
  195. // line 93
  196. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registration.subline_two.jobofferer", [], "FOSUserBundle"), "html", null, true);
  197. yield "</h2>
  198. <div class=\"jlls-card tw-overflow-hidden tw-p-0\">
  199. <img
  200. src=\"";
  201. // line 96
  202. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->cdnifyUri($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/images/default/homepage/referenzkunden-mobil.png")), "html", null, true);
  203. yield "\"
  204. alt=\"";
  205. // line 97
  206. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.headline_seals", [], "FOSUserBundle"), "html", null, true);
  207. yield "\"
  208. width=\"100%\"
  209. class=\"tw-block\"
  210. >
  211. </div>
  212. </div>
  213. ";
  214. }
  215. // line 104
  216. yield "</div>
  217. ";
  218. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  219. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  220. yield from [];
  221. }
  222. /**
  223. * @codeCoverageIgnore
  224. */
  225. public function getTemplateName(): string
  226. {
  227. return "@FOSUser/Registration/register_content_email_form.html.twig";
  228. }
  229. /**
  230. * @codeCoverageIgnore
  231. */
  232. public function isTraitable(): bool
  233. {
  234. return false;
  235. }
  236. /**
  237. * @codeCoverageIgnore
  238. */
  239. public function getDebugInfo(): array
  240. {
  241. return array ( 232 => 104, 222 => 97, 218 => 96, 212 => 93, 209 => 92, 207 => 91, 201 => 88, 197 => 87, 193 => 85, 190 => 84, 184 => 81, 179 => 79, 172 => 75, 166 => 71, 164 => 70, 161 => 69, 159 => 68, 157 => 67, 151 => 64, 143 => 61, 138 => 59, 131 => 55, 126 => 53, 122 => 52, 119 => 51, 113 => 49, 107 => 47, 105 => 46, 99 => 42, 93 => 40, 87 => 38, 85 => 37, 48 => 2,);
  242. }
  243. public function getSourceContext(): Source
  244. {
  245. return new Source("{% trans_default_domain 'FOSUserBundle' %}
  246. <style>
  247. /* Living Styleguide Styles für das E-Mail-Eingabefeld */
  248. #fos_user_registration_form_email_first {
  249. display: block;
  250. width: 100%;
  251. border-radius: 0.75rem;
  252. border: 0;
  253. padding: 0.375rem 0.75rem;
  254. color: #1f2937;
  255. box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  256. outline: none;
  257. transition: all 150ms;
  258. background-color: #FAFAFA;
  259. /* Ring effect */
  260. --tw-ring-offset-shadow: 0 0 #0000;
  261. --tw-ring-shadow: 0 0 0 1px #d1d5db inset;
  262. box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 1px 2px 0 rgb(0 0 0 / 0.05);
  263. }
  264. #fos_user_registration_form_email_first:focus {
  265. background-color: white;
  266. --tw-ring-shadow: 0 0 0 2px #6b7280 inset;
  267. box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 1px 2px 0 rgb(0 0 0 / 0.05);
  268. }
  269. #fos_user_registration_form_email_first::placeholder {
  270. color: #9ca3af;
  271. }
  272. </style>
  273. <div class=\"col-md-6 mb-4\">
  274. <div class=\"jlls-card\">
  275. <div class=\"jlls-card-title\" style=\"background-color: #CE99F2;\">
  276. <span class=\"jlls-card-title-text\" style=\"color: white;\">
  277. {% if createWithRole == constant('App\\\\Entity\\\\User::ROLE_NAME_JOBOFFERER') %}
  278. {{ 'registration.headline_register_now_jobofferer'|trans|raw }}
  279. {% else %}
  280. {{ 'registration.headline_register_now_jobseeker'|trans|raw }}
  281. {% endif %}
  282. </span>
  283. </div>
  284. <div class=\"tw-p-6\">
  285. <p class=\"jlls-text tw-mb-4\">
  286. {% if createWithRole == constant('App\\\\Entity\\\\User::ROLE_NAME_JOBOFFERER') %}
  287. {{ 'registration.please_fill_out.jobofferer'|trans }}
  288. {% else %}
  289. {{ 'registration.please_fill_out.jobseeker'|trans }}
  290. {% endif %}
  291. </p>
  292. {{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register', {'createWithRole': createWithRole}), 'attr': {'class': 'fos_user_registration_register', 'id': 'register-form'}}) }}
  293. {{ form_widget(form.email, {'attr': {'class': 'jlls-text'}}) }}
  294. <div class=\"tw-mb-3\">
  295. {{ form_row(form.acceptedTermsAndConditions) }}
  296. </div>
  297. <div class=\"tw-flex tw-flex-col tw-gap-4 tw-mt-6\">
  298. {{ captchaJavascript('register-form', 'submit-button') }}
  299. <div class=\"{{ captchaSubmitClass() }}\" {{ captchaSubmitDataAttributes() }}></div>
  300. <button type=\"submit\" class=\"submit-button jlls-button-tertiary tw-w-full tw-justify-center\" data-testid=\"registration-submit-button\">
  301. {{ 'registration.submit'|trans }}
  302. </button>
  303. {% if feature_flag_service.featureEnabledForRequest(constant('App\\\\Service\\\\FeatureFlagService::FEATURE_REGISTER_VIA_GOOGLE_IDENTITY'), app.request) %}
  304. {# Google Identity - OAuth2 - Call to Action #}
  305. {% if createWithRole is same as constant('App\\\\Entity\\\\User::ROLE_NAME_JOBSEEKER') %}
  306. <div class=\"jlls-text tw-text-center\">
  307. <span>oder</span>
  308. </div>
  309. <a class=\"jlls-link-as-button-secondary tw-inline-flex tw-items-center tw-justify-center tw-gap-2 tw-w-full\"
  310. href=\"{{ google_identity_service.getJobseekerOAuth2TargetUrl() }}\"
  311. >
  312. <img width=\"20px\"
  313. alt=\"Google sign-in\"
  314. src=\"{{ asset('assets/images/Google_G_Logo.svg.png')|cdnifyUri }}\"
  315. />
  316. <span>{{ 'registration.register_via_google'|trans }}</span>
  317. </a>
  318. {% endif %}
  319. {% endif %}
  320. </div>
  321. {{ form_row(form._token) }}
  322. {{ form_end(form) }}
  323. </div>
  324. </div>
  325. {% if createWithRole is same as constant('App\\\\Entity\\\\User::ROLE_NAME_JOBOFFERER') %}
  326. <div class=\"tw-mt-6\">
  327. <h2 class=\"jlls-h4 tw-text-center tw-mb-4\">{{ 'registration.subline_two.jobofferer'|trans }}</h2>
  328. <div class=\"jlls-card tw-overflow-hidden tw-p-0\">
  329. <img
  330. src=\"{{ asset('assets/images/default/homepage/referenzkunden-mobil.png')|cdnifyUri }}\"
  331. alt=\"{{ 'homepage.headline_seals'|trans }}\"
  332. width=\"100%\"
  333. class=\"tw-block\"
  334. >
  335. </div>
  336. </div>
  337. {% endif %}
  338. </div>
  339. ", "@FOSUser/Registration/register_content_email_form.html.twig", "/workspace/backend-app/templates/bundles/FOSUserBundle/Registration/register_content_email_form.html.twig");
  340. }
  341. }