src/Eccube/Resource/template/admin/Store/plugin_search.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of EC-CUBE
  3. Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  4. http://www.ec-cube.co.jp/
  5. For the full copyright and license information, please view the LICENSE
  6. file that was distributed with this source code.
  7. #}
  8. {% extends '@admin/default_frame.twig' %}
  9. {% set menus = ['store', 'plugin', 'plugin_owners_search'] %}
  10. {% block title %}{{'admin.store.plugin_search.885'|trans}}{% endblock %}
  11. {% block sub_title %}{{'admin.store.plugin_search.884'|trans}}{% endblock %}
  12. {% block stylesheet %}
  13.     <style type="text/css">
  14.         .border-bt {
  15.             border-bottom: 1px solid rgba(0, 0, 0, .125);
  16.         }
  17.         #plugin-list a img{
  18.             max-height: 180px;
  19.         }
  20.         #plugin-list .info{
  21.             min-height: 50%;
  22.         }
  23.         .plugin-ver li span{
  24.             display: inline-block;
  25.         }
  26.     </style>
  27. {% endblock %}
  28. {% block main %}
  29.     <div class="c-contentsArea__cols">
  30.         <div class="c-contentsArea__primaryCol">
  31.             <div class="c-primaryCol">
  32.                 {% if Categories|length > 0 %}
  33.                     <div class="card rounded border-0 mb-4">
  34.                         <div class="card-body p-0">
  35.                             <div class="row">
  36.                                 <div class="col-12 p-4">
  37.                                     {% for key,category in Categories %}
  38.                                         <a href="{{ url('admin_store_plugin_owners_search', {'category_id' : key}) }}" class="px-3 text-dark">{{ category }}</a>
  39.                                     {% endfor %}
  40.                                 </div>
  41.                             </div>
  42.                         </div>
  43.                     </div>
  44.                 {% endif %}
  45.                 <form method="post" action="{{ url('admin_store_plugin_owners_search') }}" class="plugin-search" name="search">
  46.                     <div class="c-outsideBlock">
  47.                         {{ form_widget(searchForm._token) }}
  48.                         <div class="c-outsideBlock__contents mb-4">
  49.                             <div class="row justify-content-start">
  50.                                 <div class="col-3 ps-0">
  51.                                     <label class="col-form-label">{{ searchForm.category_id.vars.label|trans }}</label>
  52.                                     {{ form_widget(searchForm.category_id) }}
  53.                                 </div>
  54.                                 <div class="col-3">
  55.                                     <label class="col-form-label">{{ searchForm.price_type.vars.label|trans }}</label>
  56.                                     {{ form_widget(searchForm.price_type) }}
  57.                                 </div>
  58.                                 <div class="col-3">
  59.                                     <label class="col-form-label">{{ searchForm.keyword.vars.label|trans }}</label>
  60.                                     {{ form_widget(searchForm.keyword) }}
  61.                                 </div>
  62.                             </div>
  63.                         </div>
  64.                         <div class="c-outsideBlock__contents mb-2 ps-0">
  65.                             <button class="btn btn-ec-conversion px-5 py-2" type="submit">{{ 'admin.store.plugin_owners_search.search_button'|trans }}</button>
  66.                         </div>
  67.                     </div>
  68.                     <div class="row justify-content-between mb-2">
  69.                         <div class="col-12 text-end">
  70.                             <div class="d-inline-block me-2">
  71.                                 {{ form_widget(searchForm.sort, {attr: {onchange: 'document.forms.search.submit();'}}) }}
  72.                             </div>
  73.                             <div class="d-inline-block">
  74.                                 {{ form_widget(searchForm.page_count, {attr: {onchange: 'document.forms.search.submit();'}}) }}
  75.                             </div>
  76.                         </div>
  77.                     </div>
  78.                 </form>
  79.                 <div id="plugin-list" class="card rounded border-0 my-4">
  80.                     <div class="card-header">
  81.                         <h5>{{ 'admin.store.plugin_owners_search.search_results'|trans({'%number%': pagination|length, '%total%' : total}) }}</h5>
  82.                     </div>
  83.                     <div class="card-body">
  84.                         {% if pagination|length > 0%}
  85.                             {% for item in pagination %}
  86.                                 <div class="row border-bt pb-2 mb-3">
  87.                                     {{ include('@admin/Store/plugin_search_panel.twig') }}
  88.                                 </div>
  89.                             {% endfor %}
  90.                         {% endif %}
  91.                     </div>
  92.                     {% if pagination.totalItemCount > 0 %}
  93.                         <div class="row justify-content-md-center mb-4">
  94.                             {% include "@admin/pager.twig" with { 'pages' : pagination.paginationData, 'routes' : 'admin_store_plugin_owners_search_page' } %}
  95.                         </div>
  96.                     {% endif %}
  97.                 </div>
  98.             </div>
  99.         </div>
  100.     </div>
  101. {% endblock %}