{#
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 %}
<div class="ec-contactRole">
<div class="ec-pageHeader">
<h1>{{ 'オーダーメイドうちわ'|trans }}</h1>
</div>
<div class="ec-off1Grid">
<div class="ec-off1Grid__cell">
<form method="post" action="{{ url('contact') }}" class="h-adr" novalidate>
<span class="p-country-name" style="display:none;">Japan</span>
{{ form_widget(form._token) }}
<p class="ec-para-normal">{{ 'オーダーメイドであなただけのオリジナルうちわを作ることができます!
'|trans|nl2br }}</p>
<p class="ec-para-normal">{{ 'ご連絡お待ちしております!
'|trans|nl2br }}</p>
<div class="ec-borderedDefs">
<dl>
<dt>
{{ form_label(form.name, 'お名前', { 'label_attr': { 'class': 'ec-label' }}) }}
</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' }}) }}
</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.phone_number, '電話番号', { 'label_attr': { 'class': 'ec-label' }}) }}
</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' }}) }}
</dt>
<dd>
<div class="ec-input{{ has_errors(form.email) ? ' error' }}">
{{ form_widget(form.email) }}
{{ form_errors(form.email) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.sheets, '何枚のうちわに納めるか', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class="ec-input{{ has_errors(form.sheets) ? ' error' }}">
{{ form_widget(form.sheets) }}
{{ form_errors(form.sheets) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.hope_text, '入れたい文字', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class="ec-input{{ has_errors(form.hope_text) ? ' error' }}">
{{ form_widget(form.hope_text) }}
{{ form_errors(form.hope_text) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.hope_color, 'ご希望の色', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class="ec-input{{ has_errors(form.hope_color) ? ' error' }}">
{{ form_widget(form.hope_color) }}
{{ form_errors(form.hope_color) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.back_color, '背面の色', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class="ec-input{{ has_errors(form.back_color) ? ' error' }}">
{{ form_widget(form.back_color) }}
{{ form_errors(form.back_color) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.decoration, '装飾(★や♥など)', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class="ec-input{{ has_errors(form.decoration) ? ' error' }}">
{{ form_widget(form.decoration) }}
{{ form_errors(form.decoration) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.top_text, '上の小文字追加', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class="ec-input{{ has_errors(form.top_text) ? ' error' }}">
{{ form_widget(form.top_text) }}
{{ form_errors(form.top_text) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.top_color, '上の小文字色', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class="ec-input{{ has_errors(form.top_color) ? ' error' }}">
{{ form_widget(form.top_color) }}
{{ form_errors(form.top_color) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.bot_text, '下の小文字追加', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class="ec-input{{ has_errors(form.bot_text) ? ' error' }}">
{{ form_widget(form.bot_text) }}
{{ form_errors(form.bot_text) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.bot_color, '下の小文字色', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class="ec-input{{ has_errors(form.bot_color) ? ' error' }}">
{{ form_widget(form.bot_color) }}
{{ form_errors(form.bot_color) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.hope_font, 'ご希望のフォント', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class="ec-input{{ has_errors(form.hope_font) ? ' error' }}">
{{ form_widget(form.hope_font) }}
{{ form_errors(form.hope_font) }}
</div>
</dd>
</dl>
<dl>
<dt>
{{ form_label(form.contents, '詳細内容', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class="ec-input{{ has_errors(form.contents) ? ' error' }}">
{{ form_widget(form.contents) }}
{{ form_errors(form.contents) }}
</div>
<p>{{ '必須項目を入力のうえ、お問い合わせください'|trans }}</p>
</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>
{% 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>
<div class="ec-RegisterRole__actions">
<div class="ec-off4Grid">
<div class="ec-off4Grid__cell">
<button type="submit" class="ec-blockBtn--action" name="mode"
value="confirm">{{ '確認ページへ'|trans }}
</button>
</div>
</div>
</div>
</form>
</div>
</div>
<div class="font__sample">
<p>フォントサンプル</p>
<ul>
<li>
<p class="">1. M PLUS Rounded 1c w400</p>
<img src="/ecshop/html/user_data/assets/img/font/font1.png" alt="" >
</li>
<li>
<p class="">2. RocknRoll One w400</p>
<img src="/ecshop/html/user_data/assets/img/font/font2.png" alt="" >
</li>
<li>
<p class="">3. Dela Gothic One w400</p>
<img src="/ecshop/html/user_data/assets/img/font/font3.png" alt="" >
</li>
<li>
<p class="">4. M PLUS Rounded 1c w900</p>
<img src="/ecshop/html/user_data/assets/img/font/font4.png" alt="" >
</li>
<li>
<p class="">5. Potta One w800</p>
<img src="/ecshop/html/user_data/assets/img/font/font5.png" alt="" >
</li>
<li>
<p class="">6. Kaisei Tokumin</p>
<img src="/ecshop/html/user_data/assets/img/font/font6.png" alt="" >
</li>
<li>
<p class="">7. M PLUS 1p w900</p>
<img src="/ecshop/html/user_data/assets/img/font/font7.png" alt="" >
</li>
<li>
<p class="">8. Hachi Maru Pop w400</p>
<img src="/ecshop/html/user_data/assets/img/font/font8.png" alt="" >
</li>
<li>
<p class="">9. Noto Sans KR</p>
<img src="/ecshop/html/user_data/assets/img/font/font9.png" alt="" >
</li>
<li>
<p class="">10. Jua</p>
<img src="/ecshop/html/user_data/assets/img/font/font10.png" alt="" >
</li>
</ul>
</div>
</div>
{% endblock %}