{#
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' %}
{% form_theme form 'Form/form_div_layout.twig' %}
{% block javascript %}
<script src="//yubinbango.github.io/yubinbango/yubinbango.js" charset="UTF-8"></script>
{% endblock javascript %}
{% block main %}
<style>
/*EC-CUBEのCSSを強制上書きしてデザインに揃える*/
.ec-halfInput input, .ec-telInput input{
width: 100% !important;
max-width: 100% !important;
}
</style>
<div role="main">
<!-- PAGE CONTENTS -->
<div class="contact contactIndex">
<div class="sub-container">
<!-- H1 -->
<div class="sub-h1">
<h1 class="itemTitle">
お問い合わせ
</h1>
</div>
<!-- /H1 -->
<!-- CONTENTS -->
<div class="l-container l-2ColumnContainer">
<!-- MAIN-CONTENTS -->
<div class="l-main">
<!-- BREAD CRUMBS -->
<div class="sub-breadcrumbsWrap">
<ul class="sub-breadcrumbs">
<li><a href="/">TOP</a></li>
<li>お問い合わせ</li>
</ul>
</div>
<!-- /BREAD CRUMBS -->
<!-- MAIN CONTENTS -->
<section class="contact-section">
<h2 class="mod-hl-01">お問い合わせフォーム</h2>
<!-- FORM -->
<form action="{{ url('contact') }}" method="post" class="h-adr" novalidate>
<span class="p-country-name" style="display:none;">Japan</span>
{{ form_widget(form._token) }}
<section class="contact-formCell">
<h3 class="mod-hl-04">お名前</h3>
<div class="ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error' }}">
<div class="contact-input2clm">
<div class="boxItem">
{{ form_widget(form.name.name01, {'attr': { 'placeholder': '姓', 'class': 'mod-form-input-text--03' }}) }}
{{ form_errors(form.name.name01) }}
</div>
<div class="boxItem">
{{ form_widget(form.name.name02, {'attr': { 'placeholder': '名', 'class': 'mod-form-input-text--03' }}) }}
{{ form_errors(form.name.name02) }}
</div>
</div>
</div>
</section>
<section class="contact-formCell">
<h3 class="mod-hl-04">メールアドレス</h3>
<div class="ec-input{{ has_errors(form.email) ? ' error' }}">
{{ form_widget(form.email, {'attr':{ 'class': 'mod-form-input-text--03', 'placeholder': '例:sample@kaorimee.co.jp' }}) }}
{{ form_errors(form.email) }}
</div>
</section>
<section class="contact-formCell">
<h3 class="mod-hl-04">お電話番号 <span class="mod-form-ninniTag">任意</span></h3>
<div class="ec-telInput{{ has_errors(form.phone_number) ? ' error' }}">
{{ form_widget(form.phone_number, {'attr':{ 'class': 'mod-form-input-text--03', 'placeholder': '例:00011112222' }}) }}
{{ form_errors(form.phone_number) }}
</div>
</section>
<section class="contact-formCell">
<h3 class="mod-hl-04">オーダー番号 <span class="mod-form-ninniTag">任意</span></h3>
{{ form_widget(form.order_number, {'attr': {'class': 'mod-form-input-text--03', 'placeholder': '例:1234567890'}}) }}
{{ form_errors(form.order_number) }}
</section>
<section class="contact-formCell">
<h3 class="mod-hl-04">お問い合わせ内容</h3>
<div class="ec-input{{ has_errors(form.contents) ? ' error' }}">
{{ form_widget(form.contents, {'attr': {'class': 'mod-form-input-textArea', 'placeholder': 'お問い合わせ内容をご記入ください'}}) }}
{{ form_errors(form.contents) }}
</div>
</section>
<p class="contact-formPolicyTxt">
<a href="/help/privacy" target="_blank">個人情報保護方針</a>にご同意の上、<br class="dn-pc">入力内容の確認に進んでください。
</p>
{# エンティティ拡張の自動出力 #}
{% 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>
{% set label_class = f.vars.label_attr.class is defined ? f.vars.label_attr.class : '' %}
{{ form_label(f, f.vars.label, { 'label_attr': {'class': label_class ~ ' ec-label' }}) }}
</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 class="mod-btn-cMain contact-form-submit-send">
<span class="btnInner">同意して確認画面へ</span>
<input type="submit" name="mode" value="confirm">
</div>
<!-- リセット&送信ボタン
<div class="mod-btnContainer">
<div class="mod-btn-cGray contact-form-submit-send">
<span class="btnInner">リセット</span>
<input class="form-submit" id="BtnMessageBack" type="submit" value="リセット">
</div>
<div class="mod-btn-cMain contact-form-submit-send">
<span class="btnInner">送信</span>
<input type="submit" value="送信">
</div>
</div> -->
</form>
<!-- /FORM -->
</section>
<!-- /MAIN CONTENTS -->
</div>
<!-- /MAIN-CONTENTS -->
<!-- SIDE-CONTENTS -->
{{ include('Block/side_menu.twig') }}
<!-- /SIDE-CONTENTS -->
</div>
<!-- /CONTENTS -->
</div>
</div>
<!-- /PAGE CONTENTS -->
</div>
{% endblock %}