<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* @templates/Account/Register/_register_form.html.twig */
class __TwigTemplate_9ca563db760080c7de3ddd4eed5ff2b49cef163d7bccb448bd7da5c8074b13d0 extends \Twig\Template
{
private $source;
private $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 = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@templates/Account/Register/_register_form.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@templates/Account/Register/_register_form.html.twig"));
// line 1
echo "<div class=\"card my-4\">
<div class=\"card-body\">
<form id=\"registerForm\">
<div class=\"row my-2\">
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerLastName\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 7
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.last_name"), "html", null, true);
echo "
*</label>
<input placeholder=\"";
// line 9
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.last_name"), "html", null, true);
echo "*\"
name=\"customerLastName\" type=\"text\"
id=\"customerLastName\"
class=\"form-control input-custom input-custom-grey\"
required>
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerFirstName\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 17
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.first_name"), "html", null, true);
echo "
*</label>
<input placeholder=\"";
// line 19
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.first_name"), "html", null, true);
echo "*\"
name=\"customerFirstName\" type=\"text\"
id=\"customerFirstName\"
class=\"form-control input-custom input-custom-grey\"
required>
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerEmail\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 29
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.email"), "html", null, true);
echo "
*</label>
<input placeholder=\"";
// line 31
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.email"), "html", null, true);
echo "*\"
name=\"customerEmail\" type=\"email\"
id=\"customerEmail\"
class=\"form-control input-custom input-custom-grey\"
required>
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerPhoneNumber\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 39
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.phone_number"), "html", null, true);
echo "
*</label>
<input placeholder=\"";
// line 41
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.phone_number"), "html", null, true);
echo "*\"
name=\"customerPhoneNumber\" type=\"text\"
id=\"customerPhoneNumber\"
class=\"form-control input-custom input-custom-grey\"
required>
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerPassword\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.password"), "html", null, true);
echo "
*</label>
<input placeholder=\"";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.password"), "html", null, true);
echo "*\"
name=\"customerPassword\" type=\"password\"
id=\"customerPassword\"
class=\"form-control input-custom input-custom-grey\"
required>
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerConfirmationPassword\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 61
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.repeat_new_password"), "html", null, true);
echo "
*</label>
<input placeholder=\"";
// line 63
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.repeat_new_password"), "html", null, true);
echo "*\"
name=\"customerConfirmationPassword\" type=\"password\"
id=\"customerConfirmationPassword\"
class=\"form-control input-custom input-custom-grey\"
required>
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerCountry\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 73
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country"), "html", null, true);
echo "
*</label>
<select name=\"customerCountry\" id=\"customerCountry\"
class=\"form-control input-custom input-custom-grey input-country required-message-check-input\" required>
<option selected disabled hidden
value=\"\">";
// line 78
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.country"), "html", null, true);
echo "</option>
";
// line 79
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_sort_filter((isset($context["countries"]) || array_key_exists("countries", $context) ? $context["countries"] : (function () { throw new RuntimeError('Variable "countries" does not exist.', 79, $this->source); })()), function ($__a__, $__b__) use ($context, $macros) { $context["a"] = $__a__; $context["b"] = $__b__; return (twig_get_attribute($this->env, $this->source, (isset($context["a"]) || array_key_exists("a", $context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.', 79, $this->source); })()), "name", [], "any", false, false, false, 79) <=> twig_get_attribute($this->env, $this->source, (isset($context["b"]) || array_key_exists("b", $context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.', 79, $this->source); })()), "name", [], "any", false, false, false, 79)); }));
foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
// line 80
echo " <option id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "id", [], "any", false, false, false, 80), "html", null, true);
echo "\"
value=\"";
// line 81
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["country"], "code", [], "any", false, false, false, 81), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["country"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['country'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 83
echo " </select>
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerCounty\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 87
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.county"), "html", null, true);
echo "
*</label>
<select id=\"customerCounty\" name=\"customerCounty\"
class=\"form-control input-custom input-custom-grey required-message-check-input\" required>
<option class=\"option-rca-custom\" value=\"\" selected disabled
hidden>";
// line 92
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.please_select_a_county"), "html", null, true);
echo "*
</option>
</select>
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-md-6 col-sm-12 mt-sm-2 city-block\">
<label for=\"customerCity\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 100
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.city"), "html", null, true);
echo "
*</label>
<select id=\"customerCity\" name=\"customerCity\" type=\"text\"
class=\"form-control input-custom input-custom-grey required-message-check-input\" required>
<option class=\"option-rca-custom\" value=\"\" selected disabled
hidden>";
// line 105
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.city"), "html", null, true);
echo "*
</option>
</select>
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerStreet\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 111
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.street"), "html", null, true);
echo "
*</label>
<input placeholder=\"";
// line 113
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.street"), "html", null, true);
echo "*\"
id=\"customerStreet\"
type=\"text\" name=\"customerStreet\"
class=\"form-control input-custom input-custom-grey required-message-check-input\" required>
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerStreetNumber\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 122
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.number"), "html", null, true);
echo "
*</label>
<input placeholder=\"";
// line 124
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.number"), "html", null, true);
echo "*\"
name=\"customerStreetNumber\" type=\"text\"
id=\"customerStreetNumber\"
class=\"form-control input-custom input-custom-grey required-message-check-input\"
required>
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerBuilding\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 132
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.building"), "html", null, true);
echo "</label>
<input placeholder=\"";
// line 133
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.building"), "html", null, true);
echo "\"
id=\"customerBuilding\"
type=\"text\" name=\"customerBuilding\"
class=\"form-control input-custom input-custom-grey\">
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerEntrance\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 142
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.entrance"), "html", null, true);
echo "</label>
<input placeholder=\"";
// line 143
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.entrance"), "html", null, true);
echo "\"
id=\"customerEntrance\"
type=\"text\" name=\"customerEntrance\"
class=\"form-control input-custom input-custom-grey\">
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerApartment\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 150
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.apartment"), "html", null, true);
echo "</label>
<input placeholder=\"";
// line 151
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.apartment"), "html", null, true);
echo "\"
id=\"customerApartment\"
type=\"text\" name=\"customerApartment\"
class=\"form-control input-custom input-custom-grey\">
</div>
</div>
<div class=\"row\">
<div class=\"col-12\">
<div class=\"custom-control custom-checkbox mt-2 register-block\">
<input type=\"checkbox\" name=\"subscribeToNewsletter\" id=\"subscribeToNewsletter\"
class=\"custom-control-input\">
<label for=\"subscribeToNewsletter\" class=\"custom-control-label\">
<a class=\"text-dark\"
style=\"letter-spacing: 0.01em;\">";
// line 164
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.newsletter_confirmation");
echo "</a>
</label>
</div>
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-6\">
<div class=\"custom-control custom-radio d-flex justify-content-center align-items-center align-content-center text-center\"
style=\"height: 40px;\">
<input type=\"radio\" id=\"simpleCustomer\" name=\"customerType\"
class=\"custom-control-input\" value=\"0\" required checked>
<label class=\"custom-control-label\" for=\"simpleCustomer\"><h5
class=\"font-weight-normal\">";
// line 177
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.natural_person"), "html", null, true);
echo "</h5>
</label>
</div>
</div>
<div class=\"col-6 mt-sm-2\">
<div
class=\"custom-control custom-radio d-flex justify-content-center align-items-center align-content-center text-center\"
style=\"height: 40px;\">
<input type=\"radio\" id=\"companyCustomer\" name=\"customerType\"
class=\"custom-control-input\" value=\"1\">
<label class=\"custom-control-label\" for=\"companyCustomer\"><h5
class=\"font-weight-normal\">";
// line 188
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.legal_person"), "html", null, true);
echo "</h5>
</label>
</div>
</div>
</div>
<div id=\"legalCustomerBlock\" class=\"row my-3 d-none\">
<div class=\"col-6 mt-sm-2\">
<label for=\"cifCode\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 196
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.fiscal_code"), "html", null, true);
echo "
*</label>
<input placeholder=\"";
// line 198
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.fiscal_code"), "html", null, true);
echo "*\"
id=\"cifCode\"
type=\"text\" name=\"cifCode\"
class=\"form-control input-custom input-custom-grey input-cui required-message-check-input\">
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"companyName\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">";
// line 205
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.company_name"), "html", null, true);
echo "
*</label>
<input placeholder=\"";
// line 207
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.company_name"), "html", null, true);
echo "*\"
id=\"companyName\" type=\"text\"
name=\"companyName\"
class=\"form-control input-custom input-custom-grey input-company-name required-message-check-input\">
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-12\">
<span id='errorContainer'></span>
<div class=\"g-recaptcha\" data-sitekey=\"6LdFcvYZAAAAAFln0jMic-l4YTds8EuC9gn0qiBs\"
data-callback=\"recaptchaCallback\" data-expired-callback=\"recaptchaExpired\"></div>
</div>
</div>
<div class=\"row\">
<div class=\"col-12\">
<div class=\"custom-control custom-checkbox mt-2\" data-toggle='tooltip' data-placement='top' data-original-title=\"";
// line 222
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.terms_already_accepted"), "html", null, true);
echo "\">
<input type=\"checkbox\" name=\"acceptTermsAndConditions\" id=\"acceptTermsAndConditions\"
class=\"custom-control-input\"
data-title=\"1\" required>
<label for=\"acceptTermsAndConditions\" class=\"custom-control-label\">
<a class=\"text-dark\" style=\"font-size: 1em;\">
";
// line 228
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.terms_data_agreement", ["%termsAndConditions%" => (((("<a href=\"" . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_page_show", ["slug" => "termeni-si-conditii"])) . "\" target=\"_blank\">") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.terms_and_conditions")) . "</a>"), "%personalDataProtection%" => (((("<a href=\"" . $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("bitbag_sylius_cms_plugin_shop_page_show", ["slug" => "protectia-datelor"])) . "\" target=\"_blank\">") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("app.ui.personal_data_protection")) . "</a>")]);
// line 231
echo "
</a>
</label>
</div>
</div>
</div>
<input type=\"text\" id=\"recaptcha\" class=\"input-hidden\" value=\"\" required>
<div class=\"row\">
<div id=\"preventSubmit\" class=\"col-12\">
<button id=\"btnRcaVehicleDetailsSubmit\" type=\"submit\" class=\"btn btn-submit btn-primary-inactive w-100\" style=\"height: 40px\"><a>";
// line 240
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("sylius.ui.register"), "html", null, true);
echo "</a></button>
</div>
</div>
</form>
</div>
</div>
<script>
function recaptchaCallback(response) {
let gReCaptcha = \$('#g-recaptcha-response');
if (gReCaptcha.length > 0 && gReCaptcha.val() === response) {
verifyCaptcha(response);
}
}
function recaptchaExpired()
{
\$('#recaptcha').val('');
validateForm(\$('.btn-submit'));
}
function verifyCaptcha(response)
{
let result = false;
let url = Routing.generate('app_shop_verify_captcha');
\$.ajax({
url: url,
data: {
'captcha': response
},
type: 'POST',
async: false,
dataType: 'json',
success: function (data) {
if (data === true) {
\$('#recaptcha').val('1');
validateForm(\$('.btn-submit'));
}
},
error: function () {
}
});
return result;
}
/**
* Duplicat deoarece recaptcha nu vede scriptul global
* @param submitButton
*/
function validateForm(submitButton) {
let inputsAreInvalid = false;
let radioAndCheckboxAreInvalid = false;
\$('form input, form select').each(
function(){
if (\$(this).val() === null || \$(this).val() === '') {
if (\$(this).prop('required')) {
inputsAreInvalid = true;
}
}
}
);
\$('form input:radio,form input:checkbox').each(function () {
let name = \$(this).attr('name');
if (\$('input[name=\"'+ name + '\"]:checked').length < 1) {
if (\$(this).prop('required')) {
radioAndCheckboxAreInvalid = true;
}
}
});
if (inputsAreInvalid || radioAndCheckboxAreInvalid) {
submitButton.addClass('btn-primary-inactive');
submitButton.removeClass('btn-primary');
} else {
submitButton.removeClass('btn-primary-inactive');
submitButton.addClass('btn-primary');
submitButton.removeAttr('disabled');
}
}
</script>
<style>
.input-hidden{
height:0;
width:0;
visibility: hidden;
padding:0;
margin:0;
float:right;
}
</style>";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "@templates/Account/Register/_register_form.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 410 => 240, 399 => 231, 397 => 228, 388 => 222, 370 => 207, 365 => 205, 355 => 198, 350 => 196, 339 => 188, 325 => 177, 309 => 164, 293 => 151, 289 => 150, 279 => 143, 275 => 142, 263 => 133, 259 => 132, 248 => 124, 243 => 122, 231 => 113, 226 => 111, 217 => 105, 209 => 100, 198 => 92, 190 => 87, 184 => 83, 174 => 81, 169 => 80, 165 => 79, 161 => 78, 153 => 73, 140 => 63, 135 => 61, 124 => 53, 119 => 51, 106 => 41, 101 => 39, 90 => 31, 85 => 29, 72 => 19, 67 => 17, 56 => 9, 51 => 7, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"card my-4\">
<div class=\"card-body\">
<form id=\"registerForm\">
<div class=\"row my-2\">
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerLastName\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'sylius.ui.last_name' |trans }}
*</label>
<input placeholder=\"{{ 'sylius.ui.last_name'|trans }}*\"
name=\"customerLastName\" type=\"text\"
id=\"customerLastName\"
class=\"form-control input-custom input-custom-grey\"
required>
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerFirstName\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.first_name'|trans }}
*</label>
<input placeholder=\"{{ 'app.ui.first_name'|trans }}*\"
name=\"customerFirstName\" type=\"text\"
id=\"customerFirstName\"
class=\"form-control input-custom input-custom-grey\"
required>
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerEmail\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'sylius.ui.email' |trans }}
*</label>
<input placeholder=\"{{ 'sylius.ui.email'|trans }}*\"
name=\"customerEmail\" type=\"email\"
id=\"customerEmail\"
class=\"form-control input-custom input-custom-grey\"
required>
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerPhoneNumber\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'sylius.ui.phone_number'|trans }}
*</label>
<input placeholder=\"{{ 'sylius.ui.phone_number'|trans }}*\"
name=\"customerPhoneNumber\" type=\"text\"
id=\"customerPhoneNumber\"
class=\"form-control input-custom input-custom-grey\"
required>
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerPassword\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'sylius.ui.password' |trans }}
*</label>
<input placeholder=\"{{ 'sylius.ui.password'|trans }}*\"
name=\"customerPassword\" type=\"password\"
id=\"customerPassword\"
class=\"form-control input-custom input-custom-grey\"
required>
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerConfirmationPassword\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'sylius.ui.repeat_new_password'|trans }}
*</label>
<input placeholder=\"{{ 'sylius.ui.repeat_new_password'|trans }}*\"
name=\"customerConfirmationPassword\" type=\"password\"
id=\"customerConfirmationPassword\"
class=\"form-control input-custom input-custom-grey\"
required>
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerCountry\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.country'|trans }}
*</label>
<select name=\"customerCountry\" id=\"customerCountry\"
class=\"form-control input-custom input-custom-grey input-country required-message-check-input\" required>
<option selected disabled hidden
value=\"\">{{ 'app.ui.country'|trans }}</option>
{% for country in countries|sort((a, b) => a.name <=> b.name) %}
<option id=\"{{ country.id }}\"
value=\"{{ country.code }}\">{{ country }}</option>
{% endfor %}
</select>
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerCounty\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.county'|trans }}
*</label>
<select id=\"customerCounty\" name=\"customerCounty\"
class=\"form-control input-custom input-custom-grey required-message-check-input\" required>
<option class=\"option-rca-custom\" value=\"\" selected disabled
hidden>{{ 'app.ui.please_select_a_county'|trans }}*
</option>
</select>
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-md-6 col-sm-12 mt-sm-2 city-block\">
<label for=\"customerCity\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.city'|trans }}
*</label>
<select id=\"customerCity\" name=\"customerCity\" type=\"text\"
class=\"form-control input-custom input-custom-grey required-message-check-input\" required>
<option class=\"option-rca-custom\" value=\"\" selected disabled
hidden>{{ 'app.ui.city'|trans }}*
</option>
</select>
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerStreet\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.street'|trans }}
*</label>
<input placeholder=\"{{ 'app.ui.street'|trans }}*\"
id=\"customerStreet\"
type=\"text\" name=\"customerStreet\"
class=\"form-control input-custom input-custom-grey required-message-check-input\" required>
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerStreetNumber\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.number'|trans }}
*</label>
<input placeholder=\"{{ 'app.ui.number'|trans }}*\"
name=\"customerStreetNumber\" type=\"text\"
id=\"customerStreetNumber\"
class=\"form-control input-custom input-custom-grey required-message-check-input\"
required>
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerBuilding\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.building'|trans }}</label>
<input placeholder=\"{{ 'app.ui.building'|trans }}\"
id=\"customerBuilding\"
type=\"text\" name=\"customerBuilding\"
class=\"form-control input-custom input-custom-grey\">
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerEntrance\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.entrance'|trans }}</label>
<input placeholder=\"{{ 'app.ui.entrance'|trans }}\"
id=\"customerEntrance\"
type=\"text\" name=\"customerEntrance\"
class=\"form-control input-custom input-custom-grey\">
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"customerApartment\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.apartment'|trans }}</label>
<input placeholder=\"{{ 'app.ui.apartment'|trans }}\"
id=\"customerApartment\"
type=\"text\" name=\"customerApartment\"
class=\"form-control input-custom input-custom-grey\">
</div>
</div>
<div class=\"row\">
<div class=\"col-12\">
<div class=\"custom-control custom-checkbox mt-2 register-block\">
<input type=\"checkbox\" name=\"subscribeToNewsletter\" id=\"subscribeToNewsletter\"
class=\"custom-control-input\">
<label for=\"subscribeToNewsletter\" class=\"custom-control-label\">
<a class=\"text-dark\"
style=\"letter-spacing: 0.01em;\">{{ 'app.ui.newsletter_confirmation'|trans|raw }}</a>
</label>
</div>
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-6\">
<div class=\"custom-control custom-radio d-flex justify-content-center align-items-center align-content-center text-center\"
style=\"height: 40px;\">
<input type=\"radio\" id=\"simpleCustomer\" name=\"customerType\"
class=\"custom-control-input\" value=\"0\" required checked>
<label class=\"custom-control-label\" for=\"simpleCustomer\"><h5
class=\"font-weight-normal\">{{ 'app.ui.natural_person'|trans }}</h5>
</label>
</div>
</div>
<div class=\"col-6 mt-sm-2\">
<div
class=\"custom-control custom-radio d-flex justify-content-center align-items-center align-content-center text-center\"
style=\"height: 40px;\">
<input type=\"radio\" id=\"companyCustomer\" name=\"customerType\"
class=\"custom-control-input\" value=\"1\">
<label class=\"custom-control-label\" for=\"companyCustomer\"><h5
class=\"font-weight-normal\">{{ 'app.ui.legal_person'|trans }}</h5>
</label>
</div>
</div>
</div>
<div id=\"legalCustomerBlock\" class=\"row my-3 d-none\">
<div class=\"col-6 mt-sm-2\">
<label for=\"cifCode\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.fiscal_code'|trans }}
*</label>
<input placeholder=\"{{ 'app.ui.fiscal_code'|trans }}*\"
id=\"cifCode\"
type=\"text\" name=\"cifCode\"
class=\"form-control input-custom input-custom-grey input-cui required-message-check-input\">
</div>
<div class=\"col-md-6 col-sm-12 mt-sm-2\">
<label for=\"companyName\"
class=\"text-dark lbl-custom lbl-custom-grey d-none\">{{ 'app.ui.company_name'|trans }}
*</label>
<input placeholder=\"{{ 'app.ui.company_name'|trans }}*\"
id=\"companyName\" type=\"text\"
name=\"companyName\"
class=\"form-control input-custom input-custom-grey input-company-name required-message-check-input\">
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-12\">
<span id='errorContainer'></span>
<div class=\"g-recaptcha\" data-sitekey=\"6LdFcvYZAAAAAFln0jMic-l4YTds8EuC9gn0qiBs\"
data-callback=\"recaptchaCallback\" data-expired-callback=\"recaptchaExpired\"></div>
</div>
</div>
<div class=\"row\">
<div class=\"col-12\">
<div class=\"custom-control custom-checkbox mt-2\" data-toggle='tooltip' data-placement='top' data-original-title=\"{{ 'app.ui.terms_already_accepted'|trans }}\">
<input type=\"checkbox\" name=\"acceptTermsAndConditions\" id=\"acceptTermsAndConditions\"
class=\"custom-control-input\"
data-title=\"1\" required>
<label for=\"acceptTermsAndConditions\" class=\"custom-control-label\">
<a class=\"text-dark\" style=\"font-size: 1em;\">
{{ 'app.ui.terms_data_agreement'|trans({
'%termsAndConditions%': '<a href=\"' ~path('bitbag_sylius_cms_plugin_shop_page_show', {'slug' : 'termeni-si-conditii'}) ~ '\" target=\"_blank\">' ~ 'app.ui.terms_and_conditions'|trans ~ '</a>',
'%personalDataProtection%': '<a href=\"' ~path('bitbag_sylius_cms_plugin_shop_page_show', {'slug' : 'protectia-datelor'}) ~ '\" target=\"_blank\">' ~ 'app.ui.personal_data_protection'|trans ~ '</a>'
})|raw }}
</a>
</label>
</div>
</div>
</div>
<input type=\"text\" id=\"recaptcha\" class=\"input-hidden\" value=\"\" required>
<div class=\"row\">
<div id=\"preventSubmit\" class=\"col-12\">
<button id=\"btnRcaVehicleDetailsSubmit\" type=\"submit\" class=\"btn btn-submit btn-primary-inactive w-100\" style=\"height: 40px\"><a>{{ 'sylius.ui.register'|trans }}</a></button>
</div>
</div>
</form>
</div>
</div>
<script>
function recaptchaCallback(response) {
let gReCaptcha = \$('#g-recaptcha-response');
if (gReCaptcha.length > 0 && gReCaptcha.val() === response) {
verifyCaptcha(response);
}
}
function recaptchaExpired()
{
\$('#recaptcha').val('');
validateForm(\$('.btn-submit'));
}
function verifyCaptcha(response)
{
let result = false;
let url = Routing.generate('app_shop_verify_captcha');
\$.ajax({
url: url,
data: {
'captcha': response
},
type: 'POST',
async: false,
dataType: 'json',
success: function (data) {
if (data === true) {
\$('#recaptcha').val('1');
validateForm(\$('.btn-submit'));
}
},
error: function () {
}
});
return result;
}
/**
* Duplicat deoarece recaptcha nu vede scriptul global
* @param submitButton
*/
function validateForm(submitButton) {
let inputsAreInvalid = false;
let radioAndCheckboxAreInvalid = false;
\$('form input, form select').each(
function(){
if (\$(this).val() === null || \$(this).val() === '') {
if (\$(this).prop('required')) {
inputsAreInvalid = true;
}
}
}
);
\$('form input:radio,form input:checkbox').each(function () {
let name = \$(this).attr('name');
if (\$('input[name=\"'+ name + '\"]:checked').length < 1) {
if (\$(this).prop('required')) {
radioAndCheckboxAreInvalid = true;
}
}
});
if (inputsAreInvalid || radioAndCheckboxAreInvalid) {
submitButton.addClass('btn-primary-inactive');
submitButton.removeClass('btn-primary');
} else {
submitButton.removeClass('btn-primary-inactive');
submitButton.addClass('btn-primary');
submitButton.removeAttr('disabled');
}
}
</script>
<style>
.input-hidden{
height:0;
width:0;
visibility: hidden;
padding:0;
margin:0;
float:right;
}
</style>", "@templates/Account/Register/_register_form.html.twig", "/vhosts/nou.roviniete.ro/templates/Account/Register/_register_form.html.twig");
}
}