app/Plugin/CustomerRank42/Resource/template/admin/Customer/customer_rank.twig line 1

Open in your IDE?
  1. {#
  2. * Plugin Name : CustomerRank
  3. *
  4. * Copyright (C) BraTech Co., Ltd. All Rights Reserved.
  5. * http://www.bratech.co.jp/
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. #}
  10. <div id="customer_rank" style="display:none;">
  11.     <div class="row mb-2">
  12.         <div class="col-3">
  13.             <span>{{ form.children.CustomerRank.vars.label }}</span>
  14.         </div>
  15.         <div class="col">
  16.             {{ form_widget(form.CustomerRank) }}
  17.             {{ form_errors(form.CustomerRank) }}
  18.         </div>
  19.     </div>
  20. </div>
  21. <div id="customer_rank_info" style="display:none">
  22.     {% if Customer.id and CustomerCondition %}
  23.         <div class="card rounded border-0 mb-4">
  24.             <div class="card-header">
  25.                 <div class="row">
  26.                     <div class="col-8">
  27.                         <div class="d-inline-block">
  28.                         <span class="card-title">
  29.                             {{ 'customerrank.admin.customer.rank_condition'|trans }}
  30.                         </span>
  31.                         </div>
  32.                     </div>
  33.                     <div class="col-4 text-end">
  34.                         <a data-bs-toggle="collapse" href="#rankInfo" aria-expanded="false"
  35.                             aria-controls="rankInfo">
  36.                             <i class="fa fa-angle-up fa-lg"></i>
  37.                         </a>
  38.                     </div>
  39.                 </div>
  40.             </div>
  41.             <div class="collapse show ec-cardCollapse" id="rankInfo">
  42.                 <div class="card-body">
  43.                     <div class="row mb-2">
  44.                         <div class="col-3">
  45.                             <div class="d-inline-block" >
  46.                                 <span>{{ 'customerrank.admin.rank.edit.label.cond_amount'|trans }}</span>
  47.                             </div>
  48.                         </div>
  49.                         <div class="col">
  50.                             <p>{{ CustomerCondition.total_amount|price }}</p>
  51.                         </div>
  52.                     </div>
  53.                     <div class="row mb-2">
  54.                         <div class="col-3">
  55.                             <div class="d-inline-block" >
  56.                                 <span>{{ 'customerrank.admin.rank.edit.label.cond_buytimes'|trans }}</span>
  57.                             </div>
  58.                         </div>
  59.                         <div class="col">
  60.                             <p>{{ CustomerCondition.total_buytimes }}</p>
  61.                         </div>
  62.                     </div>
  63.                 </div>
  64.             </div>
  65.         </div>
  66.     {% endif %}
  67. </div>