app/template/plugin/PiaContact/default/product_contact/index.twig line 1

Open in your IDE?
  1. {% extends 'default_frame.twig' %}
  2. {% block stylesheet %}
  3.   {{ parent() }}
  4.   <link rel="stylesheet" href="/user_data/common/css/form.css">
  5.   <link rel="stylesheet" href="/user_data/common/css/form_product_contact.css?v=2">
  6. {% endblock %}
  7. {% block javascript %}
  8. <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  9. {% endblock javascript %}
  10. {% block main %}
  11. {# テーマ上書き: タイトルを /contact (Contact/index.twig) の kaso_h1title 仕様に統一。原本= app/Plugin/PiaContact/Resource/template/default/product_contact/index.twig #}
  12. <div class="ec-registerRole">
  13.     <div class="kaso_h1title">
  14.       <p>Contact</p>
  15.       <h1>商品のお問い合わせ</h1>
  16.     </div>
  17. <div class="ec-off1Grid">
  18.     <div class="ec-off1Grid__cell">
  19.         {{ include('@PiaContact/default/alert.twig') }}
  20.         <div id="product_contact_form_wrap" class="pia-form-wrap">
  21.             <div class="ec-borderedDefs">
  22.                 <p>内容によっては回答をさしあげるのにお時間をいただくこともございます。<br>
  23.                     また、休業日は翌営業日以降の対応となりますのでご了承ください。</p>
  24.                 <form name="form1" id="form1" method="post" action="{{ url('plugin_pia_contact') }}">
  25.                     {{ form_widget(form._token) }}
  26.                     <input type="hidden" name="mode" value="confirm">
  27.                     <input type="hidden" id="id" name="id" value="{{ Product.id }}">
  28.                     <table class="pia-form-table">
  29.                         <tr>
  30.                             <th>商品</th>
  31.                             <td>
  32.                                 <img src="/html/upload/save_image/{{ Product.main_list_image|no_image_product }}" alt="{{ Product.name }}" class="product-img">
  33.                                 {{ Product.name }}
  34.                             </td>
  35.                         </tr>
  36.                         <tr>
  37.                             <th>お問い合わせ内容 <span class="pia-required">必須</span></th>
  38.                             <td>
  39.                                 <div class="ec-input{{ has_errors(form.message) ? ' error' }}">
  40.                                     {{ form_widget(form.message) }}
  41.                                     {{ form_errors(form.message) }}
  42.                                 </div>
  43.                                 <p class="pia-note">ご注文に関するお問い合わせには、必ず「ご注文番号」をご記入くださいますようお願いいたします。</p>
  44.                             </td>
  45.                         </tr>
  46.                         <tr>
  47.                             <th>お名前 <span class="pia-required">必須</span></th>
  48.                             <td>
  49.                                 <div class="ec-halfInput{{ has_errors(form.name.name01, form.name.name02) ? ' error' }}">
  50.                                     {{ form_widget(form.name.name01, { 'attr': { 'placeholder': '姓' }}) }}
  51.                                     {{ form_widget(form.name.name02, { 'attr': { 'placeholder': '名' }}) }}
  52.                                     {{ form_errors(form.name.name01) }}
  53.                                     {{ form_errors(form.name.name02) }}
  54.                                 </div>
  55.                             </td>
  56.                         </tr>
  57.                         <tr>
  58.                             <th>メールアドレス <span class="pia-required">必須</span></th>
  59.                             <td>
  60.                                 <div class="ec-input{{ has_errors(form.email) ? ' error' }}">
  61.                                     {{ form_widget(form.email) }}
  62.                                     {{ form_errors(form.email) }}
  63.                                 </div>
  64.                             </td>
  65.                         </tr>
  66.                     </table>
  67.                     <div class="g-recaptcha" data-sitekey="{{ recaptcha_site_key }}"></div>
  68.                     <div class="ec-off4Grid" style="margin-top: 2rem;">
  69.                         <div class="ec-off4Grid__cell">
  70.                             <button type="submit" class="ec-blockBtn--action">確認ページへ</button>
  71.                         </div>
  72.                     </div>
  73.                 </form>
  74.             </div>
  75.         </div>
  76.     </div>
  77. </div>
  78. </div>
  79. {% endblock %}