Before - 変更前 After - 変更後
{# {#
This file is part of EC-CUBE This file is part of EC-CUBE
   
Copyright(c) 2000-2015 EC-CUBE CO.,LTD. All Rights Reserved. Copyright(c) 2000-2015 EC-CUBE CO.,LTD. All Rights Reserved.
   
https://www.ec-cube.co.jp/ https://www.ec-cube.co.jp/
   
This program is free software; you can redistribute it and/or This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2 as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version. of the License, or (at your option) any later version.
   
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details. GNU General Public License for more details.
   
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#} #}
{% extends 'default_frame.twig' %} {% extends 'default_frame.twig' %}
   
{% set mypageno = 'favorite' %} {% set mypageno = 'favorite' %}
   
{% set body_class = 'mypage' %} {% set body_class = 'mypage' %}
   
{% block main %} {% block main %}
   <h1 class="page-heading">マイページ/お気に入り一覧</h1>    <h1 class="page-heading">マイページ/お気に入り一覧</h1>
   <div id="favorite_wrap" class="container-fluid">    <div id="favorite_wrap" class="container-fluid">
   
       {% include 'Mypage/navi.twig' %}        {% include 'Mypage/navi.twig' %}
   
       <div id="favorite_list_box" class="row">        <div id="favorite_list_box" class="row">
           <div id="favorite_list_box__body" class="col-md-12">            <div id="favorite_list_box__body" class="col-md-12">
           {% if pagination.totalItemCount > 0 %}            {% if pagination.totalItemCount > 0 %}
               <p id="favorite_lst__total_item_count" class="intro"><strong>{{ pagination.totalItemCount }}件</strong>のお気に入りがあります。</p>                <p id="favorite_lst__total_item_count" class="intro"><strong>{{ pagination.totalItemCount }}件</strong>のお気に入りがあります。</p>
               <div id="item_list">                <div id="item_list">
                   <div id="favorite_list__list" class="row no-padding">                    <div id="favorite_list__list" class="row no-padding">
.                        {% for Product in pagination %}                        {% for FavoriteProduct in pagination %}
                         {% set Product = FavoriteProduct.Product %} 
                       <div id="favorite__list--{{ Product.id }}" class="col-sm-3 col-xs-6">                        <div id="favorite__list--{{ Product.id }}" class="col-sm-3 col-xs-6">
                           <div id="favorite_list__item--{{ Product.id }}" class="product_item">                            <div id="favorite_list__item--{{ Product.id }}" class="product_item">
                               <a href="{{ url('product_detail', {'id': Product.id}) }}">                                <a href="{{ url('product_detail', {'id': Product.id}) }}">
                                   <div id="favorite_list__image--{{ Product.id }}" class="item_photo">                                    <div id="favorite_list__image--{{ Product.id }}" class="item_photo">
                                       <img src="{{ app.config.image_save_urlpath }}/{{ Product.main_list_image|no_image_product }}" alt="{{ Product.name }}"/>                                        <img src="{{ app.config.image_save_urlpath }}/{{ Product.main_list_image|no_image_product }}" alt="{{ Product.name }}"/>
                                   </div>                                    </div>
                               </a>                                </a>
                               <a href="{{ url('mypage_favorite_delete', { id : Product.id }) }}" {{ csrf_token_for_anchor() }} data-method="delete">                                <a href="{{ url('mypage_favorite_delete', { id : Product.id }) }}" {{ csrf_token_for_anchor() }} data-method="delete">
                                   <button type="button" class="btn_circle"><svg class="cb cb-close"><use xlink:href="#cb-close"></use></svg></button>                                    <button type="button" class="btn_circle"><svg class="cb cb-close"><use xlink:href="#cb-close"></use></svg></button>
                               </a>                                </a>
                               <a href="{{ url('product_detail', {'id': Product.id}) }}">                                <a href="{{ url('product_detail', {'id': Product.id}) }}">
                                   <dl id="favorite_list__detail--{{ Product.id }}">                                    <dl id="favorite_list__detail--{{ Product.id }}">
                                       <dt id="favorite_list__name--{{ Product.id }}" class="item_name" style="height: 22px;"> {{ Product.name }}</dt>                                        <dt id="favorite_list__name--{{ Product.id }}" class="item_name" style="height: 22px;"> {{ Product.name }}</dt>
                                       <dd id="favorite_list__price02_inc_tax--{{ Product.id }}" class="item_price">                                        <dd id="favorite_list__price02_inc_tax--{{ Product.id }}" class="item_price">
                                           {% if Product.price02_inc_tax_min == Product.price02_inc_tax_max %}                                            {% if Product.price02_inc_tax_min == Product.price02_inc_tax_max %}
                                               {{ Product.price02_inc_tax_min|price }}                                                {{ Product.price02_inc_tax_min|price }}
                                           {% else %}                                            {% else %}
                                               {{ Product.price02_inc_tax_min|price }}~{{ Product.price02_inc_tax_max|price }}                                                {{ Product.price02_inc_tax_min|price }}~{{ Product.price02_inc_tax_max|price }}
                                           {% endif %}                                            {% endif %}
                                       </dd>                                        </dd>
                                   </dl>                                    </dl>
                               </a>                                </a>
                           </div>                            </div>
                       </div>                        </div>
                       {% endfor %}                        {% endfor %}
                   </div>                    </div>
               </div>                </div>
               <div id="favorite_list__pagination" class="paging">                <div id="favorite_list__pagination" class="paging">
                   {% include "pagination.twig" with {'pages': pagination.paginationData} %}                    {% include "pagination.twig" with {'pages': pagination.paginationData} %}
               </div>                </div>
           {% else %}            {% else %}
               <p id="favorite_list__not_found_message" class="intro">お気に入りが登録されていません。</p>                <p id="favorite_list__not_found_message" class="intro">お気に入りが登録されていません。</p>
           {% endif %}            {% endif %}
           </div>            </div>
       </div>        </div>
   </div>    </div>
{% endblock %} {% endblock %}