templates/index/explore.html.twig line 1

Open in your IDE?
  1.   {% extends 'index/layout.html.twig' %}
  2. {% block title -%}条件を選び直す{%- endblock %}
  3. {% block header_title %}条件を選び直す{% endblock %}
  4. {% block stylesheet %}
  5.   <link rel="stylesheet" href="/css/search.css">
  6. {% endblock %}
  7. {% block header_nav_icon %}
  8.   {#    メニューアイコン非表示#}
  9. {% endblock %}
  10. {% block main %}
  11.   <main>
  12.     <form action="{{ path('search') }}" method="get">
  13.     <div class="form_area" style="margin-bottom: 100px;">
  14.       <p class="form_title">エリアを選ぶ</p>
  15.       <span class="form-select-text">
  16.       <input type="text" id="area" name="" class="text form-control js-area-selector" data-area-selector-data-target=".js-data-area-location" readonly="readonly">
  17.       </span>
  18.       <input type="hidden" name="l" class="js-data-area-location">
  19.       <p class="form_title">料理を選ぶ</p>
  20.       <span class="form-select-text">
  21.         <input type="text" id="area" name="" class="text form-control js-cook-selector"  data-cook-selector-data-target=".js-data-cook" readonly="readonly">
  22.       </span>
  23.       <input type="hidden" name="c" class="js-data-cook">
  24.       <p class="form_title">こだわり条件</p>
  25.       <ul class="choices_list">
  26.         <li class="choices_item">
  27.           <input type="checkbox" id="scales" name="pp" value="1">
  28.           <label for="scales" class="input_checkbox">事前決済対応</label>
  29.         </li>
  30.         <li>
  31.           <input type="checkbox" id="scales2" name="d" value="1">
  32.           <label for="scales2" class="input_checkbox">デリバリー対応</label>
  33.         </li>
  34.         <li>
  35.           <input type="checkbox" id="scales3" name="sa" value="1">
  36.           <label for="scales3" class="input_checkbox">割引中</label>
  37.         </li>
  38.       </ul>
  39.     </div>
  40.     <div class="button_area">
  41.       <button type="submit" class="button">お店を検索する</button>
  42.     </div>
  43.   </form>
  44. {#    <div class="center-block">#}
  45. {#      <div class="map_box">#}
  46. {#        <div class="map_img" id="map-container">#}
  47. {#        </div>#}
  48. {#        <a href="{{ path('map') }}" class="map_but">地図からお店を探す</a>#}
  49. {#      </div>#}
  50. {#      <div class="text_box">#}
  51. {#        <form action="{{ path('search') }}" method="get">#}
  52. {#          <ul class="clearfix">#}
  53. {#            <li>#}
  54. {#              <label for="area" class="search_item">エリアを選ぶ</label>#}
  55. {#            </li>#}
  56. {#            <li class="select_wr">#}
  57. {#              <select id="area" name="l">#}
  58. {#                {% for item in locations %}#}
  59. {#                  <option value="{{ item.id }}">{{ item.name }}</option>#}
  60. {#                {% endfor %}#}
  61. {#              </select>#}
  62. {#            </li>#}
  63. {#          </ul>#}
  64. {#          <ul class="clearfix">#}
  65. {#            <li>#}
  66. {#              <label for="cook" class="search_item">料理を選ぶ</label>#}
  67. {#            </li>#}
  68. {#            <li class="select_wr">#}
  69. {#              <select id="cook" name="c">#}
  70. {#                <option value="">すべて</option>#}
  71. {#                {% for item in categories %}#}
  72. {#                  <option value="{{ item.id }}">{{ item.name }}</option>#}
  73. {#                {% endfor %}#}
  74. {#              </select>#}
  75. {#            </li>#}
  76. {#          </ul>#}
  77. {#          <div class="but_wr"><input type="submit" value="お店を探す"></div>#}
  78. {#        </form>#}
  79. {#      </div>#}
  80. {#    </div>#}
  81.   </main>
  82. {% endblock %}
  83. {% block area_js %}
  84.   {{ include('/components/area.html.twig') }}
  85. {% endblock %}
  86. {% block cook_js %}
  87.   {{ include('/components/cook.html.twig') }}
  88. {% endblock %}
  89. {% block js %}
  90. {#  <script async defer src="https://maps.googleapis.com/maps/api/js?language=ja&region=JP&key=AIzaSyBwr-8UL7PG1jGorrGpNsEpd5if3ulrZyE&callback=initMap"></script>#}
  91. {#  <script>#}
  92. {#    var map;#}
  93. {#    var position = {lat: 35.6682234, lng: 139.6708286};#}
  94. {#    function initMap() {#}
  95. {#      map = new google.maps.Map($('#map-container').get(0), {#}
  96. {#        center: position,#}
  97. {#        zoom: 12,#}
  98. {#        disableDefaultUI: true#}
  99. {#      });#}
  100. {#    }#}
  101. {#  </script>#}
  102. {% endblock %}