<?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_8f5cfd94cccdbb0fc240fc244574d38783e1587ca049f5837f6297d74b6df7fe 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'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
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", "Entry/index.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Entry/index.twig"));
// line 13
$context["body_class"] = "registration_page";
// line 15
$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.', 15, $this->source); })()), [0 => "Form/form_div_layout.twig"], true);
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Entry/index.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 17
public function block_stylesheet($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(), "block", "stylesheet"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheet"));
// line 18
echo "<style>
.attention-modal {
display: none;
}
.attention-modal.is-active {
display: block;
}
.attention-modal {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 999;
}
.attention-modal-overlay {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.attention-modal .modal-layer-mask {
background-color: rgba(0, 0, 0, 0.3);
width: 100%;
height: 100vh;
z-index: 5;
}
.attention-modal-inner {
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
background: #eee;
border-radius: 6px;
padding: 30px 10px;
text-align: center;
width: 100%;
max-width: 520px;
position: absolute;
z-index: 10;
}
.attention-modal-text {
font-size: 16px;
font-weight: 600;
line-height: 1.6;
margin: 0 0 20px;
}
.attention-modal-text strong {
color: #DE5D50;
}
.checked-attention {
display: inline-block;
font-weight: 300;
margin: 0 0 35px;
}
.checkbox-button-wrap {
text-align: end;
}
.checkbox-button-wrap button {
border-radius: 3px;
border: none;
color: #fff;
display: inline-block;
font-weight: 600;
padding: 15px 25px;
}
.attention-modal-return {
background: #525263;
margin: 0 20px 0 0 ;
}
.attention-modal-move {
background-color: #e28e86;
pointer-events: none;
}
.attention-modal-move.is-move {
background: #DE5D50;
pointer-events: unset;
}
@media screen and (max-width: 480px) {
.attention-modal-inner {
padding: 25px 10px;
width: 95%;
}
.attention-modal-text {
font-size: 14px;
}
.checked-attention {
font-size: 12px;
}
}
</style>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 115
public function block_javascript($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(), "block", "javascript"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 116
echo " <script src=\"//yubinbango.github.io/yubinbango/yubinbango.js\" charset=\"UTF-8\"></script>
<script>
validatePostalCode = (postal_codes) =>
{
const validate_postal_code = document.getElementById('entry_postal_code')
let array_postal_code = postal_codes
.replace(/,+\$/, '').split(',')
.map((val) => val.replace(/-|\\s+/g, ''))
.filter((empty) => {return empty !== ''})
console.log(array_postal_code)
console.log('郵便番号_登録数:' + array_postal_code.length + '件')
matchPostalCode = (input_val) =>
{
document.querySelector('.ec-registerRole__actions').remove()
alert('〒'+input_val+':'+'住⺠票住所が当⾃治体に該当する⽅は本サービスをご利⽤いただけません。')
location.href = '/'
}
changePostalCode = () =>
{
const input_val = validate_postal_code.value.replace(/-/, '')
array_postal_code.some(array_val => {
if(input_val.match(array_val)) {
console.log('該当しました')
matchPostalCode(input_val)
return true
}
console.log('該当はありませんでした')
})
}
validate_postal_code.value ?
changePostalCode() : console.log('郵便番号フォームは未入力の状態です');
validate_postal_code.addEventListener('change', changePostalCode)
}
setAttentionModal = () =>
{
const attention_modal = document.getElementById('attention_modal')
const register_move = document.querySelector('.attention-modal-move')
const register_return = document.querySelector('.attention-modal-return')
let move_checkbox = document.getElementById('checked_attention')
move_checkbox.checked = false
!document.querySelector('.ec-errorMessage') ?
attention_modal.classList.add('is-active') : console.log('モーダル非表示');
move_checkbox.addEventListener('change',() => register_move.classList.toggle('is-move'))
register_move.addEventListener('click',() => attention_modal.remove())
register_return.addEventListener('click',() => {
window.history.length > 2 ?
window.history.back() : location.href = '/';
})
}
document.addEventListener('DOMContentLoaded', () =>
{
const postal_codes = '";
// line 184
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["BaseInfo"]) || array_key_exists("BaseInfo", $context) ? $context["BaseInfo"] : (function () { throw new RuntimeError('Variable "BaseInfo" does not exist.', 184, $this->source); })()), "message", [], "any", false, false, false, 184), "html", null, true);
echo "'
postal_codes ?
validatePostalCode(postal_codes) : console.log('郵便番号データの登録はありません');
!document.getElementById('entry_user_policy_check').checked ?
setAttentionModal() : console.log('モーダル非表示');
})
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 195
public function block_main($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(), "block", "main"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 196
echo " <div id=\"attention_modal\" class=\"attention-modal\">
<div class=\"attention-modal-overlay\">
<div class=\"modal-layer-mask\"></div>
<div class=\"attention-modal-inner\">
<p class=\"attention-modal-text\">
住⺠票に記載された⾃治体に寄付をする場合、<br><strong>「お礼の品」を受け取ることはできません。</strong><br><br>
誠に恐れ⼊りますが、<br>本サービスでは<strong>住⺠票住所が当⾃治体に該当する⽅</strong>の<br>
会員登録をお断りさせて頂いております。<br>何卒ご理解のほどよろしくお願いいたします。
</p>
<div class=\"attention-checkbox\">
<input type=\"checkbox\" id=\"checked_attention\" name=\"checked-attention\">
<label for=\"checked-attention\" class=\"checked-attention\">記載事項をご確認の上、会員登録へお進みください</label>
<div class=\"checkbox-button-wrap\">
<button class=\"attention-modal-return\">戻る</button>
<button class=\"attention-modal-move\">会員登録へ進む</button>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-registerRole ec-entry-wrap\">
<div class=\"ec-pageHeader\">
<h1>";
// line 219
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("新規会員登録"), "html", null, true);
echo "</h1>
</div>
<div class=\"ec-off1Grid\">
<div class=\"ec-off1Grid__cell\">
<h2 class=\"ec-entry-title\">寄付者情報の入力</h2>
<p class=\"ec-entry-desc\">こちらの入力内容は、お申込み時に反映されます。</p>
<form method=\"post\" action=\"";
// line 225
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("entry");
echo "\" novalidate class=\"h-adr\">
<span class=\"p-country-name\" style=\"display:none;\">Japan</span>
";
// line 227
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 227, $this->source); })()), "_token", [], "any", false, false, false, 227), 'widget');
echo "
<div class=\"ec-borderedDefs\">
<dl>
<dt>
";
// line 231
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 231, $this->source); })()), "name", [], "any", false, false, false, 231), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "お名前"]);
echo "
<p class=\"emphasis\">※控除を受ける方のお名前をご入力ください。</p>
<p class=\"emphasis\">住民票の情報と異なる場合、寄付金控除の対象外となる可能性があります。</p>
</dt>
<dd>
<div class=\"ec-halfInput";
// line 236
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env, $this->source, 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.', 236, $this->source); })()), "name", [], "any", false, false, false, 236), "name01", [], "any", false, false, false, 236), twig_get_attribute($this->env, $this->source, 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.', 236, $this->source); })()), "name", [], "any", false, false, false, 236), "name02", [], "any", false, false, false, 236))) ? (" error") : (""));
echo "\">
";
// line 237
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 237, $this->source); })()), "name", [], "any", false, false, false, 237), "name01", [], "any", false, false, false, 237), 'widget', ["attr" => ["placeholder" => "姓"]]);
echo "
";
// line 238
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 238, $this->source); })()), "name", [], "any", false, false, false, 238), "name02", [], "any", false, false, false, 238), 'widget', ["attr" => ["placeholder" => "名"]]);
echo "
";
// line 239
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 239, $this->source); })()), "name", [], "any", false, false, false, 239), "name01", [], "any", false, false, false, 239), 'errors');
echo "
";
// line 240
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 240, $this->source); })()), "name", [], "any", false, false, false, 240), "name02", [], "any", false, false, false, 240), 'errors');
echo "
</div>
</dd>
</dl>
<dl>
<dt>
";
// line 246
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 246, $this->source); })()), "kana", [], "any", false, false, false, 246), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "お名前(カナ)"]);
echo "
</dt>
<dd>
<div class=\"ec-halfInput";
// line 249
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env, $this->source, 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.', 249, $this->source); })()), "kana", [], "any", false, false, false, 249), "kana01", [], "any", false, false, false, 249), twig_get_attribute($this->env, $this->source, 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.', 249, $this->source); })()), "kana", [], "any", false, false, false, 249), "kana02", [], "any", false, false, false, 249))) ? (" error") : (""));
echo "\">
";
// line 250
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 250, $this->source); })()), "kana", [], "any", false, false, false, 250), "kana01", [], "any", false, false, false, 250), 'widget', ["attr" => ["placeholder" => "セイ"]]);
echo "
";
// line 251
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 251, $this->source); })()), "kana", [], "any", false, false, false, 251), "kana02", [], "any", false, false, false, 251), 'widget', ["attr" => ["placeholder" => "メイ"]]);
echo "
";
// line 252
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 252, $this->source); })()), "kana", [], "any", false, false, false, 252), "kana01", [], "any", false, false, false, 252), 'errors');
echo "
";
// line 253
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 253, $this->source); })()), "kana", [], "any", false, false, false, 253), "kana02", [], "any", false, false, false, 253), 'errors');
echo "
</div>
</dd>
</dl>
<dl>
<dt>
";
// line 259
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 259, $this->source); })()), "address", [], "any", false, false, false, 259), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "住所"]);
echo "
<p class=\"emphasis\">※控除を受ける方の住民票住所をご入力ください。</p>
<p class=\"emphasis\">住民票の情報と異なる場合、寄付金控除の対象外となる可能性があります。</p>
<p class=\"emphasis\">ふるさと納税関連の書類は住民票住所へお届けします。</p>
</dt>
<dd>
<div class=\"ec-zipInput";
// line 265
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(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.', 265, $this->source); })()), "postal_code", [], "any", false, false, false, 265))) ? (" error") : (""));
echo "\"><span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("〒"), "html", null, true);
echo "</span>
";
// line 266
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 266, $this->source); })()), "postal_code", [], "any", false, false, false, 266), 'widget');
echo "
<div class=\"ec-zipInputHelp\">
<div class=\"ec-zipInputHelp__icon\">
<div class=\"ec-icon\"><img
src=\"";
// line 270
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/icon/question-white.svg"), "html", null, true);
echo "\" alt=\"\">
</div>
</div><a href=\"https://www.post.japanpost.jp/zipcode/\" target=\"_blank\"><span>";
// line 272
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("郵便番号検索"), "html", null, true);
echo "</span></a>
</div>
";
// line 274
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 274, $this->source); })()), "postal_code", [], "any", false, false, false, 274), 'errors');
echo "
</div>
<div class=\"ec-select";
// line 277
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env, $this->source, 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.', 277, $this->source); })()), "address", [], "any", false, false, false, 277), "pref", [], "any", false, false, false, 277))) ? (" error") : (""));
echo "\">
";
// line 278
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 278, $this->source); })()), "address", [], "any", false, false, false, 278), "pref", [], "any", false, false, false, 278), 'widget');
echo "
";
// line 279
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 279, $this->source); })()), "address", [], "any", false, false, false, 279), "pref", [], "any", false, false, false, 279), 'errors');
echo "
</div>
<div class=\"ec-input";
// line 281
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env, $this->source, 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.', 281, $this->source); })()), "address", [], "any", false, false, false, 281), "addr01", [], "any", false, false, false, 281))) ? (" error") : (""));
echo "\">
";
// line 282
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 282, $this->source); })()), "address", [], "any", false, false, false, 282), "addr01", [], "any", false, false, false, 282), 'widget', ["attr" => ["placeholder" => "市区町村名(例:大阪市北区)"]]);
echo "
";
// line 283
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 283, $this->source); })()), "address", [], "any", false, false, false, 283), "addr01", [], "any", false, false, false, 283), 'errors');
echo "
</div>
<div class=\"ec-input";
// line 285
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env, $this->source, 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.', 285, $this->source); })()), "address", [], "any", false, false, false, 285), "addr02", [], "any", false, false, false, 285))) ? (" error") : (""));
echo "\">
";
// line 286
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 286, $this->source); })()), "address", [], "any", false, false, false, 286), "addr02", [], "any", false, false, false, 286), 'widget', ["attr" => ["placeholder" => "番地・ビル名(例:西梅田1丁目6-8)"]]);
echo "
";
// line 287
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 287, $this->source); })()), "address", [], "any", false, false, false, 287), "addr02", [], "any", false, false, false, 287), 'errors');
echo "
</div>
</dd>
</dl>
<dl>
<dt>
";
// line 293
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 293, $this->source); })()), "birth", [], "any", false, false, false, 293), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "生年月日"]);
echo "
<p class=\"emphasis\">※控除を受ける方の生年月日をご入力ください。</p>
</dt>
<dd>
<div class=\"ec-birth";
// line 297
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(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.', 297, $this->source); })()), "birth", [], "any", false, false, false, 297))) ? (" error") : (""));
echo "\">
";
// line 298
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 298, $this->source); })()), "birth", [], "any", false, false, false, 298), "year", [], "any", false, false, false, 298), 'widget');
echo "<span>/</span>
";
// line 299
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 299, $this->source); })()), "birth", [], "any", false, false, false, 299), "month", [], "any", false, false, false, 299), 'widget');
echo "<span>/</span>
";
// line 300
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 300, $this->source); })()), "birth", [], "any", false, false, false, 300), "day", [], "any", false, false, false, 300), 'widget');
echo "
";
// line 301
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 301, $this->source); })()), "birth", [], "any", false, false, false, 301), 'errors');
echo "
</div>
</dd>
</dl>
<dl>
<dt>
";
// line 307
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 307, $this->source); })()), "sex", [], "any", false, false, false, 307), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "性別"]);
echo "
</dt>
<dd>
<div class=\"ec-select";
// line 310
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(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.', 310, $this->source); })()), "sex", [], "any", false, false, false, 310))) ? (" error") : (""));
echo "\">
";
// line 311
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 311, $this->source); })()), "sex", [], "any", false, false, false, 311), 'widget');
echo "
";
// line 312
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 312, $this->source); })()), "sex", [], "any", false, false, false, 312), 'errors');
echo "
</div>
</dd>
</dl>
<dl>
<dt>
";
// line 318
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 318, $this->source); })()), "phone_number", [], "any", false, false, false, 318), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "電話番号"]);
echo "
<p class=\"emphasis\">※携帯電話など日中につながりやすい連絡先をご入力ください。</p>
</dt>
<dd>
<div class=\"ec-telInput";
// line 322
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(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.', 322, $this->source); })()), "phone_number", [], "any", false, false, false, 322))) ? (" error") : (""));
echo "\">
";
// line 323
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 323, $this->source); })()), "phone_number", [], "any", false, false, false, 323), 'widget');
echo "
";
// line 324
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 324, $this->source); })()), "phone_number", [], "any", false, false, false, 324), 'errors');
echo "
</div>
</dd>
</dl>
<dl>
<dt>
";
// line 330
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 330, $this->source); })()), "email", [], "any", false, false, false, 330), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "メールアドレス"]);
echo "
<p class=\"emphasis\">※迷惑メールの拒否設定をされている場合、メールが届かない場合があります。</p>
<p class=\"emphasis\">「@cocofuru.jp」を受信できるように設定してください
。</p>
</dt>
<dd>
<div class=\"ec-input";
// line 336
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env, $this->source, 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.', 336, $this->source); })()), "email", [], "any", false, false, false, 336), "first", [], "any", false, false, false, 336))) ? (" error") : (""));
echo "\">
";
// line 337
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 337, $this->source); })()), "email", [], "any", false, false, false, 337), "first", [], "any", false, false, false, 337), 'widget', ["attr" => ["placeholder" => "例:ec-cube@example.com"]]);
echo "
";
// line 338
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 338, $this->source); })()), "email", [], "any", false, false, false, 338), "first", [], "any", false, false, false, 338), 'errors');
echo "
</div>
<div class=\"ec-input";
// line 340
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env, $this->source, 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.', 340, $this->source); })()), "email", [], "any", false, false, false, 340), "second", [], "any", false, false, false, 340))) ? (" error") : (""));
echo "\">
";
// line 341
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 341, $this->source); })()), "email", [], "any", false, false, false, 341), "second", [], "any", false, false, false, 341), 'widget', ["attr" => ["placeholder" => "確認のためもう一度入力してください"]]);
echo "
";
// line 342
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 342, $this->source); })()), "email", [], "any", false, false, false, 342), "second", [], "any", false, false, false, 342), 'errors');
echo "
</div>
</dd>
</dl>
<dl>
<dt>
";
// line 348
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 348, $this->source); })()), "password", [], "any", false, false, false, 348), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "パスワード"]);
echo "
</dt>
<dd>
<div class=\"ec-input";
// line 351
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env, $this->source, 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.', 351, $this->source); })()), "password", [], "any", false, false, false, 351), "first", [], "any", false, false, false, 351))) ? (" error") : (""));
echo "\">
";
// line 352
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 352, $this->source); })()), "password", [], "any", false, false, false, 352), "first", [], "any", false, false, false, 352), 'widget', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("半角英数記号%min%〜%max%文字", ["%min%" => twig_get_attribute($this->env, $this->source, // line 353
(isset($context["eccube_config"]) || array_key_exists("eccube_config", $context) ? $context["eccube_config"] : (function () { throw new RuntimeError('Variable "eccube_config" does not exist.', 353, $this->source); })()), "eccube_password_min_len", [], "any", false, false, false, 353), "%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.', 353, $this->source); })()), "eccube_password_max_len", [], "any", false, false, false, 353)])], "type" => "password"]);
// line 355
echo "
";
// line 356
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 356, $this->source); })()), "password", [], "any", false, false, false, 356), "first", [], "any", false, false, false, 356), 'errors');
echo "
</div>
<div class=\"ec-input";
// line 358
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env, $this->source, 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.', 358, $this->source); })()), "password", [], "any", false, false, false, 358), "second", [], "any", false, false, false, 358))) ? (" error") : (""));
echo "\">
";
// line 359
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 359, $this->source); })()), "password", [], "any", false, false, false, 359), "second", [], "any", false, false, false, 359), 'widget', ["attr" => ["placeholder" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("確認のためもう一度入力してください")], "type" => "password"]);
// line 362
echo "
";
// line 363
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 363, $this->source); })()), "password", [], "any", false, false, false, 363), "second", [], "any", false, false, false, 363), 'errors');
echo "
</div>
</dd>
</dl>
";
// line 368
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_array_filter($this->env, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 368, $this->source); })()), function ($__f__) use ($context, $macros) { $context["f"] = $__f__; return twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, false, 368), "eccube_form_options", [], "any", false, false, false, 368), "auto_render", [], "any", false, false, false, 368); }));
foreach ($context['_seq'] as $context["_key"] => $context["f"]) {
// line 369
echo " ";
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, false, 369), "eccube_form_options", [], "any", false, false, false, 369), "form_theme", [], "any", false, false, false, 369)) {
// line 370
echo " ";
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme($context["f"], [0 => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, false, 370), "eccube_form_options", [], "any", false, false, false, 370), "form_theme", [], "any", false, false, false, 370)], true);
// line 371
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'row');
echo "
";
} else {
// line 373
echo " <dl>
<dt>
";
// line 375
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'label');
echo "
</dt>
<dd>
<div class=\"";
// line 378
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["f"], "vars", [], "any", false, false, false, 378), "eccube_form_options", [], "any", false, false, false, 378), "style_class", [], "any", false, false, false, 378), "html", null, true);
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors($context["f"])) ? (" error") : (""));
echo "\">
";
// line 379
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'widget');
echo "
";
// line 380
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["f"], 'errors');
echo "
</div>
</dd>
</dl>
";
}
// line 385
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['f'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 386
echo " </div>
<div class=\"ec-registerRole__actions\">
<div class=\"ec-off4Grid\">
<div class=\"ec-off4Grid__cell\">
<div class=\"ec-checkbox";
// line 390
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(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.', 390, $this->source); })()), "user_policy_check", [], "any", false, false, false, 390))) ? (" error") : (""));
echo "\">
<label>
";
// line 392
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 392, $this->source); })()), "user_policy_check", [], "any", false, false, false, 392), 'widget');
echo "
";
// line 393
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("<a class=\"ec-link\" href=\"%url%\" target=\"_blank\">利用規約</a>に同意してお進みください", ["%url%" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("help_agreement")]);
echo "
</label>
";
// line 395
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 395, $this->source); })()), "user_policy_check", [], "any", false, false, false, 395), 'errors');
echo "
</div>
<button class=\"ec-blockBtn--action\" type=\"submit\" name=\"mode\" value=\"confirm\">";
// line 397
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("同意する"), "html", null, true);
echo "</button>
<a class=\"ec-blockBtn--cancel\" href=\"";
// line 398
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("homepage");
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("同意しない"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Entry/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 715 => 398, 711 => 397, 706 => 395, 701 => 393, 697 => 392, 692 => 390, 686 => 386, 680 => 385, 672 => 380, 668 => 379, 663 => 378, 657 => 375, 653 => 373, 647 => 371, 644 => 370, 641 => 369, 636 => 368, 629 => 363, 626 => 362, 624 => 359, 620 => 358, 615 => 356, 612 => 355, 610 => 353, 609 => 352, 605 => 351, 599 => 348, 590 => 342, 586 => 341, 582 => 340, 577 => 338, 573 => 337, 569 => 336, 560 => 330, 551 => 324, 547 => 323, 543 => 322, 536 => 318, 527 => 312, 523 => 311, 519 => 310, 513 => 307, 504 => 301, 500 => 300, 496 => 299, 492 => 298, 488 => 297, 481 => 293, 472 => 287, 468 => 286, 464 => 285, 459 => 283, 455 => 282, 451 => 281, 446 => 279, 442 => 278, 438 => 277, 432 => 274, 427 => 272, 422 => 270, 415 => 266, 409 => 265, 400 => 259, 391 => 253, 387 => 252, 383 => 251, 379 => 250, 375 => 249, 369 => 246, 360 => 240, 356 => 239, 352 => 238, 348 => 237, 344 => 236, 336 => 231, 329 => 227, 324 => 225, 315 => 219, 290 => 196, 280 => 195, 260 => 184, 190 => 116, 180 => 115, 75 => 18, 65 => 17, 54 => 11, 52 => 15, 50 => 13, 37 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'registration_page' %}
{% form_theme form 'Form/form_div_layout.twig' %}
{% block stylesheet %}
<style>
.attention-modal {
display: none;
}
.attention-modal.is-active {
display: block;
}
.attention-modal {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 999;
}
.attention-modal-overlay {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.attention-modal .modal-layer-mask {
background-color: rgba(0, 0, 0, 0.3);
width: 100%;
height: 100vh;
z-index: 5;
}
.attention-modal-inner {
display: flex;
flex-flow: column;
justify-content: center;
align-items: center;
background: #eee;
border-radius: 6px;
padding: 30px 10px;
text-align: center;
width: 100%;
max-width: 520px;
position: absolute;
z-index: 10;
}
.attention-modal-text {
font-size: 16px;
font-weight: 600;
line-height: 1.6;
margin: 0 0 20px;
}
.attention-modal-text strong {
color: #DE5D50;
}
.checked-attention {
display: inline-block;
font-weight: 300;
margin: 0 0 35px;
}
.checkbox-button-wrap {
text-align: end;
}
.checkbox-button-wrap button {
border-radius: 3px;
border: none;
color: #fff;
display: inline-block;
font-weight: 600;
padding: 15px 25px;
}
.attention-modal-return {
background: #525263;
margin: 0 20px 0 0 ;
}
.attention-modal-move {
background-color: #e28e86;
pointer-events: none;
}
.attention-modal-move.is-move {
background: #DE5D50;
pointer-events: unset;
}
@media screen and (max-width: 480px) {
.attention-modal-inner {
padding: 25px 10px;
width: 95%;
}
.attention-modal-text {
font-size: 14px;
}
.checked-attention {
font-size: 12px;
}
}
</style>
{% endblock stylesheet %}
{% block javascript %}
<script src=\"//yubinbango.github.io/yubinbango/yubinbango.js\" charset=\"UTF-8\"></script>
<script>
validatePostalCode = (postal_codes) =>
{
const validate_postal_code = document.getElementById('entry_postal_code')
let array_postal_code = postal_codes
.replace(/,+\$/, '').split(',')
.map((val) => val.replace(/-|\\s+/g, ''))
.filter((empty) => {return empty !== ''})
console.log(array_postal_code)
console.log('郵便番号_登録数:' + array_postal_code.length + '件')
matchPostalCode = (input_val) =>
{
document.querySelector('.ec-registerRole__actions').remove()
alert('〒'+input_val+':'+'住⺠票住所が当⾃治体に該当する⽅は本サービスをご利⽤いただけません。')
location.href = '/'
}
changePostalCode = () =>
{
const input_val = validate_postal_code.value.replace(/-/, '')
array_postal_code.some(array_val => {
if(input_val.match(array_val)) {
console.log('該当しました')
matchPostalCode(input_val)
return true
}
console.log('該当はありませんでした')
})
}
validate_postal_code.value ?
changePostalCode() : console.log('郵便番号フォームは未入力の状態です');
validate_postal_code.addEventListener('change', changePostalCode)
}
setAttentionModal = () =>
{
const attention_modal = document.getElementById('attention_modal')
const register_move = document.querySelector('.attention-modal-move')
const register_return = document.querySelector('.attention-modal-return')
let move_checkbox = document.getElementById('checked_attention')
move_checkbox.checked = false
!document.querySelector('.ec-errorMessage') ?
attention_modal.classList.add('is-active') : console.log('モーダル非表示');
move_checkbox.addEventListener('change',() => register_move.classList.toggle('is-move'))
register_move.addEventListener('click',() => attention_modal.remove())
register_return.addEventListener('click',() => {
window.history.length > 2 ?
window.history.back() : location.href = '/';
})
}
document.addEventListener('DOMContentLoaded', () =>
{
const postal_codes = '{{BaseInfo.message}}'
postal_codes ?
validatePostalCode(postal_codes) : console.log('郵便番号データの登録はありません');
!document.getElementById('entry_user_policy_check').checked ?
setAttentionModal() : console.log('モーダル非表示');
})
</script>
{% endblock javascript %}
{% block main %}
<div id=\"attention_modal\" class=\"attention-modal\">
<div class=\"attention-modal-overlay\">
<div class=\"modal-layer-mask\"></div>
<div class=\"attention-modal-inner\">
<p class=\"attention-modal-text\">
住⺠票に記載された⾃治体に寄付をする場合、<br><strong>「お礼の品」を受け取ることはできません。</strong><br><br>
誠に恐れ⼊りますが、<br>本サービスでは<strong>住⺠票住所が当⾃治体に該当する⽅</strong>の<br>
会員登録をお断りさせて頂いております。<br>何卒ご理解のほどよろしくお願いいたします。
</p>
<div class=\"attention-checkbox\">
<input type=\"checkbox\" id=\"checked_attention\" name=\"checked-attention\">
<label for=\"checked-attention\" class=\"checked-attention\">記載事項をご確認の上、会員登録へお進みください</label>
<div class=\"checkbox-button-wrap\">
<button class=\"attention-modal-return\">戻る</button>
<button class=\"attention-modal-move\">会員登録へ進む</button>
</div>
</div>
</div>
</div>
</div>
<div class=\"ec-registerRole ec-entry-wrap\">
<div class=\"ec-pageHeader\">
<h1>{{ '新規会員登録'|trans }}</h1>
</div>
<div class=\"ec-off1Grid\">
<div class=\"ec-off1Grid__cell\">
<h2 class=\"ec-entry-title\">寄付者情報の入力</h2>
<p class=\"ec-entry-desc\">こちらの入力内容は、お申込み時に反映されます。</p>
<form method=\"post\" action=\"{{ url('entry') }}\" novalidate class=\"h-adr\">
<span class=\"p-country-name\" style=\"display:none;\">Japan</span>
{{ form_widget(form._token) }}
<div class=\"ec-borderedDefs\">
<dl>
<dt>
{{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
<p class=\"emphasis\">※控除を受ける方のお名前をご入力ください。</p>
<p class=\"emphasis\">住民票の情報と異なる場合、寄付金控除の対象外となる可能性があります。</p>
</dt>
<dd>
<div class=\"ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error'}}\">
{{ form_widget(form.name.name01, { 'attr': { 'placeholder': '姓' }}) }}
{{ form_widget(form.name.name02, { 'attr': { 'placeholder': '名' }}) }}
{{ form_errors(form.name.name01) }}
{{ form_errors(form.name.name02) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.kana, 'お名前(カナ)', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class=\"ec-halfInput{{ has_errors(form.kana.kana01, form.kana.kana02) ? ' error'}}\">
{{ form_widget(form.kana.kana01, { 'attr': { 'placeholder': 'セイ' }}) }}
{{ form_widget(form.kana.kana02, { 'attr': { 'placeholder': 'メイ' }}) }}
{{ form_errors(form.kana.kana01) }}
{{ form_errors(form.kana.kana02) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.address, '住所', { 'label_attr': { 'class': 'ec-label' }}) }}
<p class=\"emphasis\">※控除を受ける方の住民票住所をご入力ください。</p>
<p class=\"emphasis\">住民票の情報と異なる場合、寄付金控除の対象外となる可能性があります。</p>
<p class=\"emphasis\">ふるさと納税関連の書類は住民票住所へお届けします。</p>
</dt>
<dd>
<div class=\"ec-zipInput{{ has_errors(form.postal_code) ? ' error' }}\"><span>{{ '〒'|trans }}</span>
{{ form_widget(form.postal_code) }}
<div class=\"ec-zipInputHelp\">
<div class=\"ec-zipInputHelp__icon\">
<div class=\"ec-icon\"><img
src=\"{{ asset('assets/icon/question-white.svg') }}\" alt=\"\">
</div>
</div><a href=\"https://www.post.japanpost.jp/zipcode/\" target=\"_blank\"><span>{{ '郵便番号検索'|trans }}</span></a>
</div>
{{ form_errors(form.postal_code) }}
</div>
<div class=\"ec-select{{ has_errors(form.address.pref) ? ' error' }}\">
{{ form_widget(form.address.pref) }}
{{ form_errors(form.address.pref) }}
</div>
<div class=\"ec-input{{ has_errors(form.address.addr01) ? ' error' }}\">
{{ form_widget(form.address.addr01, { 'attr': { 'placeholder': '市区町村名(例:大阪市北区)' }}) }}
{{ form_errors(form.address.addr01) }}
</div>
<div class=\"ec-input{{ has_errors(form.address.addr02) ? ' error' }}\">
{{ form_widget(form.address.addr02, { 'attr': { 'placeholder': '番地・ビル名(例:西梅田1丁目6-8)' }}) }}
{{ form_errors(form.address.addr02) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.birth, '生年月日', { 'label_attr': {'class': 'ec-label' }}) }}
<p class=\"emphasis\">※控除を受ける方の生年月日をご入力ください。</p>
</dt>
<dd>
<div class=\"ec-birth{{ has_errors(form.birth) ? ' error' }}\">
{{ form_widget(form.birth.year) }}<span>/</span>
{{ form_widget(form.birth.month) }}<span>/</span>
{{ form_widget(form.birth.day) }}
{{ form_errors(form.birth) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.sex, '性別', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class=\"ec-select{{ has_errors(form.sex) ? ' error' }}\">
{{ form_widget(form.sex) }}
{{ form_errors(form.sex) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
<p class=\"emphasis\">※携帯電話など日中につながりやすい連絡先をご入力ください。</p>
</dt>
<dd>
<div class=\"ec-telInput{{ has_errors(form.phone_number) ? ' error' }}\">
{{ form_widget(form.phone_number) }}
{{ form_errors(form.phone_number) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
<p class=\"emphasis\">※迷惑メールの拒否設定をされている場合、メールが届かない場合があります。</p>
<p class=\"emphasis\">「@cocofuru.jp」を受信できるように設定してください
。</p>
</dt>
<dd>
<div class=\"ec-input{{ has_errors(form.email.first) ? ' error' }}\">
{{ form_widget(form.email.first, { 'attr': { 'placeholder': '例:ec-cube@example.com' }}) }}
{{ form_errors(form.email.first) }}
</div>
<div class=\"ec-input{{ has_errors(form.email.second) ? ' error' }}\">
{{ form_widget(form.email.second, { 'attr': { 'placeholder': '確認のためもう一度入力してください' }}) }}
{{ form_errors(form.email.second) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.password, 'パスワード', { 'label_attr': {'class': 'ec-label' }}) }}
</dt>
<dd>
<div class=\"ec-input{{ has_errors(form.password.first) ? ' error' }}\">
{{ form_widget(form.password.first, {
'attr': { 'placeholder': '半角英数記号%min%〜%max%文字'|trans({ '%min%': eccube_config.eccube_password_min_len, '%max%': eccube_config.eccube_password_max_len }) },
'type': 'password'
}) }}
{{ form_errors(form.password.first) }}
</div>
<div class=\"ec-input{{ has_errors(form.password.second) ? ' error' }}\">
{{ form_widget(form.password.second, {
'attr': { 'placeholder': '確認のためもう一度入力してください'|trans },
'type': 'password'
}) }}
{{ form_errors(form.password.second) }}
</div>
</dd>
</dl>
{# エンティティ拡張の自動出力 #}
{% for f in form|filter(f => f.vars.eccube_form_options.auto_render) %}
{% if f.vars.eccube_form_options.form_theme %}
{% form_theme f f.vars.eccube_form_options.form_theme %}
{{ form_row(f) }}
{% else %}
<dl>
<dt>
{{ form_label(f) }}
</dt>
<dd>
<div class=\"{{ f.vars.eccube_form_options.style_class }}{{ has_errors(f) ? ' error' }}\">
{{ form_widget(f) }}
{{ form_errors(f) }}
</div>
</dd>
</dl>
{% endif %}
{% endfor %}
</div>
<div class=\"ec-registerRole__actions\">
<div class=\"ec-off4Grid\">
<div class=\"ec-off4Grid__cell\">
<div class=\"ec-checkbox{{ has_errors(form.user_policy_check) ? ' error' }}\">
<label>
{{ form_widget(form.user_policy_check) }}
{{ '<a class=\"ec-link\" href=\"%url%\" target=\"_blank\">利用規約</a>に同意してお進みください'|trans({ '%url%': url('help_agreement') })|raw }}
</label>
{{ form_errors(form.user_policy_check) }}
</div>
<button class=\"ec-blockBtn--action\" type=\"submit\" name=\"mode\" value=\"confirm\">{{ '同意する'|trans }}</button>
<a class=\"ec-blockBtn--cancel\" href=\"{{ url('homepage') }}\">{{ '同意しない'|trans }}</a>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
{% endblock %}
", "Entry/index.twig", "/home/cajiya/fjdksla.com/public_html/cocofuru.fjdksla.com/src/Eccube/Resource/template/default/Entry/index.twig");
}
}