<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* @FOSUser/Registration/register_content_email_form.html.twig */
class __TwigTemplate_37e78b9b400aa0e265660b3bef618234 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FOSUser/Registration/register_content_email_form.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FOSUser/Registration/register_content_email_form.html.twig"));
// line 2
yield "
<style>
/* Living Styleguide Styles für das E-Mail-Eingabefeld */
#fos_user_registration_form_email_first {
display: block;
width: 100%;
border-radius: 0.75rem;
border: 0;
padding: 0.375rem 0.75rem;
color: #1f2937;
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
outline: none;
transition: all 150ms;
background-color: #FAFAFA;
/* Ring effect */
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 0 1px #d1d5db inset;
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
#fos_user_registration_form_email_first:focus {
background-color: white;
--tw-ring-shadow: 0 0 0 2px #6b7280 inset;
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
#fos_user_registration_form_email_first::placeholder {
color: #9ca3af;
}
</style>
<div class=\"col-md-6 mb-4\">
<div class=\"jlls-card\">
<div class=\"jlls-card-title\" style=\"background-color: #CE99F2;\">
<span class=\"jlls-card-title-text\" style=\"color: white;\">
";
// line 37
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"))) {
// line 38
yield " ";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registration.headline_register_now_jobofferer", [], "FOSUserBundle");
yield "
";
} else {
// line 40
yield " ";
yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registration.headline_register_now_jobseeker", [], "FOSUserBundle");
yield "
";
}
// line 42
yield " </span>
</div>
<div class=\"tw-p-6\">
<p class=\"jlls-text tw-mb-4\">
";
// line 46
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"))) {
// line 47
yield " ";
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);
yield "
";
} else {
// line 49
yield " ";
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);
yield "
";
}
// line 51
yield " </p>
";
// line 52
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"]]);
yield "
";
// line 53
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"]]);
yield "
<div class=\"tw-mb-3\">
";
// line 55
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');
yield "
</div>
<div class=\"tw-flex tw-flex-col tw-gap-4 tw-mt-6\">
";
// line 59
yield $this->extensions['App\Twig\AppExtension']->captchaJavascriptFunction("register-form", "submit-button");
yield "
<div class=\"";
// line 61
yield $this->extensions['App\Twig\AppExtension']->captchaSubmitClassFunction();
yield "\" ";
yield $this->extensions['App\Twig\AppExtension']->captchaSubmitDataAttributesFunction();
yield "></div>
<button type=\"submit\" class=\"submit-button jlls-button-tertiary tw-w-full tw-justify-center\" data-testid=\"registration-submit-button\">
";
// line 64
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registration.submit", [], "FOSUserBundle"), "html", null, true);
yield "
</button>
";
// line 67
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)) {
// line 68
yield " ";
// line 69
yield "
";
// line 70
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"))) {
// line 71
yield " <div class=\"jlls-text tw-text-center\">
<span>oder</span>
</div>
<a class=\"jlls-link-as-button-secondary tw-inline-flex tw-items-center tw-justify-center tw-gap-2 tw-w-full\"
href=\"";
// line 75
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);
yield "\"
>
<img width=\"20px\"
alt=\"Google sign-in\"
src=\"";
// line 79
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);
yield "\"
/>
<span>";
// line 81
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registration.register_via_google", [], "FOSUserBundle"), "html", null, true);
yield "</span>
</a>
";
}
// line 84
yield " ";
}
// line 85
yield "
</div>
";
// line 87
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');
yield "
";
// line 88
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');
yield "
</div>
</div>
";
// line 91
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"))) {
// line 92
yield " <div class=\"tw-mt-6\">
<h2 class=\"jlls-h4 tw-text-center tw-mb-4\">";
// line 93
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("registration.subline_two.jobofferer", [], "FOSUserBundle"), "html", null, true);
yield "</h2>
<div class=\"jlls-card tw-overflow-hidden tw-p-0\">
<img
src=\"";
// line 96
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);
yield "\"
alt=\"";
// line 97
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("homepage.headline_seals", [], "FOSUserBundle"), "html", null, true);
yield "\"
width=\"100%\"
class=\"tw-block\"
>
</div>
</div>
";
}
// line 104
yield "</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@FOSUser/Registration/register_content_email_form.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% trans_default_domain 'FOSUserBundle' %}
<style>
/* Living Styleguide Styles für das E-Mail-Eingabefeld */
#fos_user_registration_form_email_first {
display: block;
width: 100%;
border-radius: 0.75rem;
border: 0;
padding: 0.375rem 0.75rem;
color: #1f2937;
box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
outline: none;
transition: all 150ms;
background-color: #FAFAFA;
/* Ring effect */
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 0 1px #d1d5db inset;
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
#fos_user_registration_form_email_first:focus {
background-color: white;
--tw-ring-shadow: 0 0 0 2px #6b7280 inset;
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
#fos_user_registration_form_email_first::placeholder {
color: #9ca3af;
}
</style>
<div class=\"col-md-6 mb-4\">
<div class=\"jlls-card\">
<div class=\"jlls-card-title\" style=\"background-color: #CE99F2;\">
<span class=\"jlls-card-title-text\" style=\"color: white;\">
{% if createWithRole == constant('App\\\\Entity\\\\User::ROLE_NAME_JOBOFFERER') %}
{{ 'registration.headline_register_now_jobofferer'|trans|raw }}
{% else %}
{{ 'registration.headline_register_now_jobseeker'|trans|raw }}
{% endif %}
</span>
</div>
<div class=\"tw-p-6\">
<p class=\"jlls-text tw-mb-4\">
{% if createWithRole == constant('App\\\\Entity\\\\User::ROLE_NAME_JOBOFFERER') %}
{{ 'registration.please_fill_out.jobofferer'|trans }}
{% else %}
{{ 'registration.please_fill_out.jobseeker'|trans }}
{% endif %}
</p>
{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register', {'createWithRole': createWithRole}), 'attr': {'class': 'fos_user_registration_register', 'id': 'register-form'}}) }}
{{ form_widget(form.email, {'attr': {'class': 'jlls-text'}}) }}
<div class=\"tw-mb-3\">
{{ form_row(form.acceptedTermsAndConditions) }}
</div>
<div class=\"tw-flex tw-flex-col tw-gap-4 tw-mt-6\">
{{ captchaJavascript('register-form', 'submit-button') }}
<div class=\"{{ captchaSubmitClass() }}\" {{ captchaSubmitDataAttributes() }}></div>
<button type=\"submit\" class=\"submit-button jlls-button-tertiary tw-w-full tw-justify-center\" data-testid=\"registration-submit-button\">
{{ 'registration.submit'|trans }}
</button>
{% if feature_flag_service.featureEnabledForRequest(constant('App\\\\Service\\\\FeatureFlagService::FEATURE_REGISTER_VIA_GOOGLE_IDENTITY'), app.request) %}
{# Google Identity - OAuth2 - Call to Action #}
{% if createWithRole is same as constant('App\\\\Entity\\\\User::ROLE_NAME_JOBSEEKER') %}
<div class=\"jlls-text tw-text-center\">
<span>oder</span>
</div>
<a class=\"jlls-link-as-button-secondary tw-inline-flex tw-items-center tw-justify-center tw-gap-2 tw-w-full\"
href=\"{{ google_identity_service.getJobseekerOAuth2TargetUrl() }}\"
>
<img width=\"20px\"
alt=\"Google sign-in\"
src=\"{{ asset('assets/images/Google_G_Logo.svg.png')|cdnifyUri }}\"
/>
<span>{{ 'registration.register_via_google'|trans }}</span>
</a>
{% endif %}
{% endif %}
</div>
{{ form_row(form._token) }}
{{ form_end(form) }}
</div>
</div>
{% if createWithRole is same as constant('App\\\\Entity\\\\User::ROLE_NAME_JOBOFFERER') %}
<div class=\"tw-mt-6\">
<h2 class=\"jlls-h4 tw-text-center tw-mb-4\">{{ 'registration.subline_two.jobofferer'|trans }}</h2>
<div class=\"jlls-card tw-overflow-hidden tw-p-0\">
<img
src=\"{{ asset('assets/images/default/homepage/referenzkunden-mobil.png')|cdnifyUri }}\"
alt=\"{{ 'homepage.headline_seals'|trans }}\"
width=\"100%\"
class=\"tw-block\"
>
</div>
</div>
{% endif %}
</div>
", "@FOSUser/Registration/register_content_email_form.html.twig", "/workspace/backend-app/templates/bundles/FOSUserBundle/Registration/register_content_email_form.html.twig");
}
}