{% extends 'default_frame.twig' %}
{% block stylesheet %}
<link rel="stylesheet" href="/test/product_contact.css">
{% endblock %}
{% block main %}
<div id="contents" class="main_only">
<div class="container-fluid inner no-padding">
<div id="main">
<h1 class="page-heading">商品のお問い合わせ</h1>
<div id="top_wrap" class="container-fluid">
<div id="top_box" class="row">
<div id="top_box__body" class="col-md-10 col-md-offset-1">
<p>内容によっては回答をさしあげるのにお時間をいただくこともございます。<br/>
また、休業日は翌営業日以降の対応となりますのでご了承ください。</p>
<form name="form1" id="form1" method="post" action="{{ url('plugin_pia_contact') }}">
{{ form_widget(form._token) }}
<input type="hidden" name="mode" value="confirm">
<input type="hidden" id="id" name="id" value="{{ Product.id }}">
<div id="top_box__body_inner" class="dl_table">
<dl id="top_box__product">
<dt><img src="/html/upload/save_image/{{ Product.main_list_image|no_image_product }}" alt="{{ Product.name }}" alt="image"/></dt>
<dd>
<div id="product_name" class="column">
{{ Product.name }}
</div>
</dd>
</dl>
<dl id="top_box__contents">
<dt><label class="control-label required" for="contact_contents">お問い合わせ内容</label><span class="required">必須</span></dt>
<dd>
<div class="column">
{{ form_widget(form.message, {attr: {class: 'form-control'}}) }}
{{ form_errors(form.message) }}
<p class="mini"><span class="attention">ご注文に関するお問い合わせには、必ず「ご注文番号」をご記入くださいますようお願いいたします。</span></p>
</div>
</dd>
</dl>
<dl id="top_box__name">
<dt><label class="control-label required">お名前</label><span class="required">必須</span></dt>
<dd class="form-group input_name">
{{ form_widget(form.name.name01, {attr: {placeholder: '姓', class: 'form-control'}}) }}
{{ form_widget(form.name.name02, {attr: {placeholder: '名', class: 'form-control'}}) }}
{{ form_errors(form.name.name01) }}
{{ form_errors(form.name.name02) }}
</dd>
</dl>
<dl id="top_box__email">
<dt><label class="control-label required" for="contact_email">メールアドレス</label><span class="required">必須</span></dt>
<dd>
<div class="form-group">
{{ form_widget(form.email, {attr: {class: 'form-control'}}) }}
{{ form_errors(form.email) }}
</div>
</dd>
</dl>
</div>
<input id="top_box__hidden_mode" type="hidden" name="mode" value="confirm">
<div id="top_box__footer" class="row no-padding">
<div id="top_box__confirm_button" class="btn_group col-sm-offset-4 col-sm-4">
<p><button type="submit" class="btn btn-primary btn-block">確認ページへ</button></p>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}