<?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;
/* Entry/index.twig */
class __TwigTemplate_94679c1b840b8b51034bb42dd413b76a extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'stylesheet' => [$this, 'block_stylesheet'],
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 4
return "default_frame.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "Entry/index.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Entry/index.twig"));
// line 6
$context["body_class"] = "registration_page";
// line 8
$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.', 8, $this->source); })()), [0 => "Form/form_div_layout.twig"], true);
// line 4
$this->parent = $this->loadTemplate("default_frame.twig", "Entry/index.twig", 4);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 10
public function block_stylesheet($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 11
echo "<style>
#entry_company_name {
width: 100%;
}
.form_comments {
font-size: 12px;
color: #525263;
margin: 3px 0px 3px 0px;
font-weight: normal;
line-height: 2;
}
.ec-checkbox label {
font-weight: normal;
}
.ec-registerRole .ec-registerRole__actions {
text-align: left;
padding-top: 0px;
}
.related_line {
background-color: #F5F5F5;
padding: 16px 10px;
font-size: 14px;
margin: 12px 0px 24px 0px;
}
.progress_bar_step {
margin: 0 auto;
max-width: 280px;
padding: 18px 0;
}
@media only screen and (max-width: 767px) {
.progress_bar_step {
max-width: 230px;
}
}
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 50
public function block_javascript($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 51
echo " <script>
\$(function() {
var userAgent = navigator.userAgent.toLowerCase();
var isInstagramOrFacebook = userAgent.includes(\"instagram\") || userAgent.includes(\"facebook\");
const passwordField = document.getElementById(\"entry_plain_password\");
const toggleLink = document.getElementById(\"show_password\");
if (passwordField && toggleLink) {
toggleLink.addEventListener(\"click\", function(event) {
event.preventDefault();
if (passwordField.type === \"password\") {
passwordField.type = \"text\";
toggleLink.textContent = \"パスワードを非表示\";
} else {
passwordField.type = \"password\";
toggleLink.textContent = \"パスワードを表示\";
}
});
}
var hasValue = false;
\$(\"input[type='text']\").each(function() {
if (\$(this).val().trim() !== \"\") {
hasValue = true;
return false; // ループを抜ける
}
});
";
// line 81
$context["current_domain"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 81, $this->source); })()), "request", [], "any", false, false, true, 81), "getHost", [], "method", false, false, true, 81);
// line 82
echo "
";
// line 83
$context["is_prod"] = twig_in_filter("web-order.shikomel.com", (isset($context["current_domain"]) || array_key_exists("current_domain", $context) ? $context["current_domain"] : (function () { throw new RuntimeError('Variable "current_domain" does not exist.', 83, $this->source); })()));
// line 84
echo " ";
$context["is_stg"] = twig_in_filter("web-order-stg.shikomel.com", (isset($context["current_domain"]) || array_key_exists("current_domain", $context) ? $context["current_domain"] : (function () { throw new RuntimeError('Variable "current_domain" does not exist.', 84, $this->source); })()));
// line 85
echo "
// 会員情報入力画面の表示イベント
";
// line 87
if ((isset($context["is_prod"]) || array_key_exists("is_prod", $context) ? $context["is_prod"] : (function () { throw new RuntimeError('Variable "is_prod" does not exist.', 87, $this->source); })())) {
// line 88
echo "
fbq('trackCustom', 'ce_show_entry', {
content_type: \"ShowEntry\",
value: 63
});
window.dataLayer.push({
event: 'ce_show_entry',
custom_event_name: 'ce_show_entry',
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'ce_show_entry'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
\$('#input_entry').click(function() {
// 会員情報入力確定
fbq('trackCustom', 'ce_inputed_entry', {
content_type: \"InputedEntry\",
value: 65
});
window.dataLayer.push({
event: 'ce_inputed_entry',
custom_event_name: 'ce_inputed_entry',
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'ce_inputed_entry'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
});
";
}
// line 133
echo "
const requiredInputs = document.querySelectorAll(\"input[required]\");
const button = document.getElementById(\"submit_btn\");
const checkbox = document.getElementById(\"entry_user_policy_check\");
function toggleButton() {
// 全ての input に値が入っているかチェック
const allFilled = Array.from(requiredInputs).every(input => input.value.trim() !== \"\");
const isCheckboxChecked = checkbox.checked;
if (allFilled && isCheckboxChecked) {
button.classList.remove(\"disabled\"); // クラス削除で有効化
} else {
button.classList.add(\"disabled\"); // クラス追加で無効化
}
}
// 全ての input にイベントリスナーを設定
requiredInputs.forEach(input => input.addEventListener(\"input\", toggleButton));
// 画面表示時に処理実行
toggleButton();
});
</script>
";
// line 160
if ((isset($context["is_prod"]) || array_key_exists("is_prod", $context) ? $context["is_prod"] : (function () { throw new RuntimeError('Variable "is_prod" does not exist.', 160, $this->source); })())) {
// line 161
echo " <!-- Ptengine Tag -->
<script src=\"https://js.ptengine.jp/21yt6a2v.js\">
</script>
<!-- End Ptengine Tag -->
";
}
// line 166
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 169
public function block_main($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 170
echo "
<div class=\"ec-registerRole\">
<div class=\"ec-pageHeader\">
<h1 style=\"margin-top: 10px; margin-bottom: 10px; border-top: none; border-bottom: 1px solid #ccc;\">会員登録(無料)</h1>
</div>
<div class=\"progress_bar_step\">
<img src=\"";
// line 176
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/common/entry_progress_step1.png", "user_data"), "html", null, true);
echo "\">
</div>
<div class=\"ec-off1Grid\" style=\"max-width: 430px; margin: auto;\">
<div class=\"\">
<form method=\"post\" action=\"";
// line 180
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
echo "\" class=\"h-adr formByMailArea\" id=\"form\">
";
// line 181
if ((isset($context["isFromLine"]) || array_key_exists("isFromLine", $context) ? $context["isFromLine"] : (function () { throw new RuntimeError('Variable "isFromLine" does not exist.', 181, $this->source); })())) {
// line 182
echo " <div class=\"related_line\">
LINEアカウントと連携しました。<br>
会員登録完了で、クーポンを獲得できます。
</div>
";
}
// line 187
echo "
<span class=\"p-country-name\" style=\"display:none;\">Japan</span>
";
// line 189
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 189, $this->source); })()), "_token", [], "any", false, false, true, 189), 189, $this->source), 'widget');
echo "
<div class=\"\">
<dl>
<dt>
";
// line 193
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 193, $this->source); })()), "email", [], "any", false, false, true, 193), 193, $this->source), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "メールアドレス"]);
echo "
</dt>
<dd>
<div class=\"ec-input";
// line 196
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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.', 196, $this->source); })()), "email", [], "any", false, false, true, 196), 196, $this->source))) ? (" error") : (""));
echo "\">
";
// line 197
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 197, $this->source); })()), "email", [], "any", false, false, true, 197), 197, $this->source), 'widget', ["attr" => ["placeholder" => "shikomel-store@gmail.com"]]);
echo "
";
// line 198
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 198, $this->source); })()), "email", [], "any", false, false, true, 198), 198, $this->source), 'errors');
echo "
</div>
</dd>
</dl>
";
// line 203
if ((isset($context["isFromLine"]) || array_key_exists("isFromLine", $context) ? $context["isFromLine"] : (function () { throw new RuntimeError('Variable "isFromLine" does not exist.', 203, $this->source); })())) {
// line 204
echo " ";
// line 205
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 205, $this->source); })()), "plain_password", [], "any", false, false, true, 205), 205, $this->source), 'widget', ["type" => "hidden", "value" => (isset($context["dummyPass"]) || array_key_exists("dummyPass", $context) ? $context["dummyPass"] : (function () { throw new RuntimeError('Variable "dummyPass" does not exist.', 205, $this->source); })())]);
echo "
";
} else {
// line 207
echo " <dl>
<dt>
";
// line 209
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 209, $this->source); })()), "plain_password", [], "any", false, false, true, 209), 209, $this->source), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "パスワード"]);
echo "
<div class=\"form_comments\">";
// line 210
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("半角英数記号%min%〜%max%文字", ["%min%" => twig_get_attribute($this->env, $this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config", $context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.', 210, $this->source); })()), "eccube_password_min_len", [], "any", false, false, true, 210), "%max%" => twig_get_attribute($this->env, $this->source, (isset($context["eccube_config"]) || array_key_exists("eccube_config", $context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.', 210, $this->source); })()), "eccube_password_max_len", [], "any", false, false, true, 210)]), "html", null, true);
echo "<div>
</dt>
<dd>
<div class=\"ec-input";
// line 213
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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.', 213, $this->source); })()), "plain_password", [], "any", false, false, true, 213), 213, $this->source))) ? (" error") : (""));
echo "\">
";
// line 214
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 214, $this->source); })()), "plain_password", [], "any", false, false, true, 214), 214, $this->source), 'widget', ["attr" => ["placeholder" => ""], "type" => "password"]);
// line 217
echo "
<div style=\"text-align: right;\">
<a id=\"show_password\" href=\"#\" style=\"top: -5px; position: relative; font-size: 12px; color: #1F9FCB\">パスワードを表示</a>
</div>
";
// line 221
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 221, $this->source); })()), "plain_password", [], "any", false, false, true, 221), 221, $this->source), 'errors');
echo "
</div>
</dd>
</dl>
";
}
// line 226
echo " <dl>
<dt>
";
// line 228
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 228, $this->source); })()), "company_name", [], "any", false, false, true, 228), 228, $this->source), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "店舗名・事業者名"]);
echo "
<div class=\"form_comments\">当サイトは事業を営む企業、個人の方向けのサービスです。個人事業主の方は屋号または個人名をご入力ください。<div>
</dt>
<dd>
<div class=\"ec-halfInput";
// line 232
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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.', 232, $this->source); })()), "company_name", [], "any", false, false, true, 232), 232, $this->source))) ? (" error") : (""));
echo "\">
";
// line 233
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 233, $this->source); })()), "company_name", [], "any", false, false, true, 233), 233, $this->source), 'widget', ["attr" => ["placeholder" => "株式会社シコメルキッチン"]]);
echo "
";
// line 234
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 234, $this->source); })()), "company_name", [], "any", false, false, true, 234), 234, $this->source), 'errors');
echo "
</div>
<div style=\"font-size: 16px; line-height: 1.5;\"></div>
</dd>
</dl>
</div>
<div class=\"ec-registerRole__actions\">
<div class=\"ec-checkbox";
// line 241
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($this->sandbox->ensureToStringAllowed(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.', 241, $this->source); })()), "user_policy_check", [], "any", false, false, true, 241), 241, $this->source))) ? (" error") : (""));
echo "\">
<label>
";
// line 243
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 243, $this->source); })()), "user_policy_check", [], "any", false, false, true, 243), 243, $this->source), 'widget');
echo "
";
// line 244
echo "シコメルの<a class=\"ec-link\" href=\"https://shikomel.com/terms/\" target=\"_blank\">利用規約</a>に同意";
echo "
</label>
";
// line 246
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 246, $this->source); })()), "user_policy_check", [], "any", false, false, true, 246), 246, $this->source), 'errors');
echo "
</div>
<div>
<button id=\"submit_btn\" class=\"ec-blockBtn--action disabled\" type=\"submit\" id=\"input_entry\" name=\"mode\" value=\"confirm\">";
// line 249
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("確認へ進む"), "html", null, true);
echo "</button>
</div>
</div>
";
// line 254
echo " <input type=\"hidden\" id=\"entry_name_name01\" name=\"entry[name][name01]\" value=\"未入力\"/>
<input type=\"hidden\" id=\"entry_name_name01\" name=\"entry[name][name02]\" value=\"未入力\"/>
<input type=\"hidden\" id=\"entry_kana_kana01\" name=\"entry[kana][kana01]\" value=\"カナ\"/>
<input type=\"hidden\" id=\"entry_kana_kana02\" name=\"entry[kana][kana02]\" value=\"カナ\"/>
<input type=\"hidden\" id=\"entry_postal_code\" name=\"entry[postal_code]\" value=\"0000000\"/>
<input type=\"hidden\" id=\"entry_address_pref\" name=\"entry[address][pref]\" value=\"13\"/>
<input type=\"hidden\" id=\"entry_address_addr01\" name=\"entry[address][addr01]\" value=\"未入力\"/>
<input type=\"hidden\" id=\"entry_address_addr02\" name=\"entry[address][addr02]\" value=\"未入力\"/>
<input type=\"hidden\" id=\"entry_phone_number\" name=\"entry[phone_number]\" value=\"00000000000\"/>
</form>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Entry/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 449 => 254, 442 => 249, 436 => 246, 431 => 244, 427 => 243, 422 => 241, 412 => 234, 408 => 233, 404 => 232, 397 => 228, 393 => 226, 385 => 221, 379 => 217, 377 => 214, 373 => 213, 367 => 210, 363 => 209, 359 => 207, 353 => 205, 351 => 204, 349 => 203, 341 => 198, 337 => 197, 333 => 196, 327 => 193, 320 => 189, 316 => 187, 309 => 182, 307 => 181, 303 => 180, 296 => 176, 288 => 170, 278 => 169, 267 => 166, 260 => 161, 258 => 160, 229 => 133, 182 => 88, 180 => 87, 176 => 85, 173 => 84, 171 => 83, 168 => 82, 166 => 81, 134 => 51, 124 => 50, 77 => 11, 67 => 10, 56 => 4, 54 => 8, 52 => 6, 39 => 4,);
}
public function getSourceContext()
{
return new Source("{#
カスタマイズTwig
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'registration_page' %}
{% form_theme form 'Form/form_div_layout.twig' %}
{% block stylesheet %}
<style>
#entry_company_name {
width: 100%;
}
.form_comments {
font-size: 12px;
color: #525263;
margin: 3px 0px 3px 0px;
font-weight: normal;
line-height: 2;
}
.ec-checkbox label {
font-weight: normal;
}
.ec-registerRole .ec-registerRole__actions {
text-align: left;
padding-top: 0px;
}
.related_line {
background-color: #F5F5F5;
padding: 16px 10px;
font-size: 14px;
margin: 12px 0px 24px 0px;
}
.progress_bar_step {
margin: 0 auto;
max-width: 280px;
padding: 18px 0;
}
@media only screen and (max-width: 767px) {
.progress_bar_step {
max-width: 230px;
}
}
</style>
{% endblock %}
{% block javascript %}
<script>
\$(function() {
var userAgent = navigator.userAgent.toLowerCase();
var isInstagramOrFacebook = userAgent.includes(\"instagram\") || userAgent.includes(\"facebook\");
const passwordField = document.getElementById(\"entry_plain_password\");
const toggleLink = document.getElementById(\"show_password\");
if (passwordField && toggleLink) {
toggleLink.addEventListener(\"click\", function(event) {
event.preventDefault();
if (passwordField.type === \"password\") {
passwordField.type = \"text\";
toggleLink.textContent = \"パスワードを非表示\";
} else {
passwordField.type = \"password\";
toggleLink.textContent = \"パスワードを表示\";
}
});
}
var hasValue = false;
\$(\"input[type='text']\").each(function() {
if (\$(this).val().trim() !== \"\") {
hasValue = true;
return false; // ループを抜ける
}
});
{% set current_domain = app.request.getHost() %}
{% set is_prod = 'web-order.shikomel.com' in current_domain %}
{% set is_stg = 'web-order-stg.shikomel.com' in current_domain %}
// 会員情報入力画面の表示イベント
{% if is_prod %}
fbq('trackCustom', 'ce_show_entry', {
content_type: \"ShowEntry\",
value: 63
});
window.dataLayer.push({
event: 'ce_show_entry',
custom_event_name: 'ce_show_entry',
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'ce_show_entry'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
\$('#input_entry').click(function() {
// 会員情報入力確定
fbq('trackCustom', 'ce_inputed_entry', {
content_type: \"InputedEntry\",
value: 65
});
window.dataLayer.push({
event: 'ce_inputed_entry',
custom_event_name: 'ce_inputed_entry',
custom_customer_id: '',
custom_user_agent: \$(\"#user_agent\").val(),
custom_is_ig: \$(\"#is_ig\").val(),
custom_is_line: \$(\"#is_line\").val(),
custom_referer: \$(\"#referer\").val(),
custom_real_ip: \$(\"#real_ip\").val(),
});
_lt('send', 'cv', {
type: 'ce_inputed_entry'
},['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
});
{% endif %}
const requiredInputs = document.querySelectorAll(\"input[required]\");
const button = document.getElementById(\"submit_btn\");
const checkbox = document.getElementById(\"entry_user_policy_check\");
function toggleButton() {
// 全ての input に値が入っているかチェック
const allFilled = Array.from(requiredInputs).every(input => input.value.trim() !== \"\");
const isCheckboxChecked = checkbox.checked;
if (allFilled && isCheckboxChecked) {
button.classList.remove(\"disabled\"); // クラス削除で有効化
} else {
button.classList.add(\"disabled\"); // クラス追加で無効化
}
}
// 全ての input にイベントリスナーを設定
requiredInputs.forEach(input => input.addEventListener(\"input\", toggleButton));
// 画面表示時に処理実行
toggleButton();
});
</script>
{% if is_prod %}
<!-- Ptengine Tag -->
<script src=\"https://js.ptengine.jp/21yt6a2v.js\">
</script>
<!-- End Ptengine Tag -->
{% endif %}
{% endblock javascript %}
{% block main %}
<div class=\"ec-registerRole\">
<div class=\"ec-pageHeader\">
<h1 style=\"margin-top: 10px; margin-bottom: 10px; border-top: none; border-bottom: 1px solid #ccc;\">会員登録(無料)</h1>
</div>
<div class=\"progress_bar_step\">
<img src=\"{{ asset('assets/img/common/entry_progress_step1.png', 'user_data') }}\">
</div>
<div class=\"ec-off1Grid\" style=\"max-width: 430px; margin: auto;\">
<div class=\"\">
<form method=\"post\" action=\"{{ url('entry') }}\" class=\"h-adr formByMailArea\" id=\"form\">
{% if isFromLine %}
<div class=\"related_line\">
LINEアカウントと連携しました。<br>
会員登録完了で、クーポンを獲得できます。
</div>
{% endif %}
<span class=\"p-country-name\" style=\"display:none;\">Japan</span>
{{ form_widget(form._token) }}
<div class=\"\">
<dl>
<dt>
{{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class=\"ec-input{{ has_errors(form.email) ? ' error' }}\">
{{ form_widget(form.email, { 'attr': { 'placeholder': 'shikomel-store@gmail.com' }}) }}
{{ form_errors(form.email) }}
</div>
</dd>
</dl>
{% if isFromLine %}
{# Line連携ログインの場合はパスワード共通のダミーを設定する #}
{{ form_widget(form.plain_password, { type : 'hidden', value : dummyPass }) }}
{% else %}
<dl>
<dt>
{{ form_label(form.plain_password, 'パスワード', { 'label_attr': {'class': 'ec-label' }}) }}
<div class=\"form_comments\">{{ '半角英数記号%min%〜%max%文字'|trans({ '%min%': eccube_config.eccube_password_min_len, '%max%': eccube_config.eccube_password_max_len }) }}<div>
</dt>
<dd>
<div class=\"ec-input{{ has_errors(form.plain_password) ? ' error' }}\">
{{ form_widget(form.plain_password, {
'attr': { 'placeholder': ''},
'type': 'password'
}) }}
<div style=\"text-align: right;\">
<a id=\"show_password\" href=\"#\" style=\"top: -5px; position: relative; font-size: 12px; color: #1F9FCB\">パスワードを表示</a>
</div>
{{ form_errors(form.plain_password) }}
</div>
</dd>
</dl>
{% endif %}
<dl>
<dt>
{{ form_label(form.company_name, '店舗名・事業者名', { 'label_attr': { 'class': 'ec-label' }}) }}
<div class=\"form_comments\">当サイトは事業を営む企業、個人の方向けのサービスです。個人事業主の方は屋号または個人名をご入力ください。<div>
</dt>
<dd>
<div class=\"ec-halfInput{{ has_errors(form.company_name) ? ' error' }}\">
{{ form_widget(form.company_name, { 'attr': { 'placeholder': '株式会社シコメルキッチン' }}) }}
{{ form_errors(form.company_name) }}
</div>
<div style=\"font-size: 16px; line-height: 1.5;\"></div>
</dd>
</dl>
</div>
<div class=\"ec-registerRole__actions\">
<div class=\"ec-checkbox{{ has_errors(form.user_policy_check) ? ' error' }}\">
<label>
{{ form_widget(form.user_policy_check) }}
{{ 'シコメルの<a class=\"ec-link\" href=\"https://shikomel.com/terms/\" target=\"_blank\">利用規約</a>に同意'|raw }}
</label>
{{ form_errors(form.user_policy_check) }}
</div>
<div>
<button id=\"submit_btn\" class=\"ec-blockBtn--action disabled\" type=\"submit\" id=\"input_entry\" name=\"mode\" value=\"confirm\">{{ '確認へ進む'|trans }}</button>
</div>
</div>
{# 名前、住所等は購入時に入力してもらうように変更 #}
<input type=\"hidden\" id=\"entry_name_name01\" name=\"entry[name][name01]\" value=\"未入力\"/>
<input type=\"hidden\" id=\"entry_name_name01\" name=\"entry[name][name02]\" value=\"未入力\"/>
<input type=\"hidden\" id=\"entry_kana_kana01\" name=\"entry[kana][kana01]\" value=\"カナ\"/>
<input type=\"hidden\" id=\"entry_kana_kana02\" name=\"entry[kana][kana02]\" value=\"カナ\"/>
<input type=\"hidden\" id=\"entry_postal_code\" name=\"entry[postal_code]\" value=\"0000000\"/>
<input type=\"hidden\" id=\"entry_address_pref\" name=\"entry[address][pref]\" value=\"13\"/>
<input type=\"hidden\" id=\"entry_address_addr01\" name=\"entry[address][addr01]\" value=\"未入力\"/>
<input type=\"hidden\" id=\"entry_address_addr02\" name=\"entry[address][addr02]\" value=\"未入力\"/>
<input type=\"hidden\" id=\"entry_phone_number\" name=\"entry[phone_number]\" value=\"00000000000\"/>
</form>
</div>
</div>
</div>
{% endblock %}", "Entry/index.twig", "/home/shikomel/shikomel.com/public_html/web-order-stg.shikomel.com/app/template/default/Entry/index.twig");
}
public function checkSecurity()
{
static $tags = array("set" => 6, "form_theme" => 8, "if" => 87);
static $filters = array("escape" => 176, "trans" => 210, "raw" => 244);
static $functions = array("asset" => 176, "url" => 180, "form_widget" => 189, "form_label" => 193, "has_errors" => 196, "form_errors" => 198);
try {
$this->sandbox->checkSecurity(
['set', 'form_theme', 'if'],
['escape', 'trans', 'raw'],
['asset', 'url', 'form_widget', 'form_label', 'has_errors', 'form_errors']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}