Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

89 rindas
4.3KB

  1. {% extends '@LcShop/backend/default/show.html.twig' %}
  2. {% trans_default_domain 'lcshop' %}
  3. {% block main %}
  4. <div class="row">
  5. <div class="col-12">
  6. <div class="card card-outline card-primary">
  7. <div class="card-header">
  8. <h2 class="card-title text-lg ">
  9. {{ entity.user.summary }} : <strong>{{ entity.credit }}€</strong>
  10. </h2>
  11. <button type="button" class="btn btn-primary float-right" data-toggle="modal"
  12. data-target="#modal-add-credit-history">
  13. {{ "action.credit.add"|trans }}
  14. </button>
  15. </div>
  16. <div class="card-body p-0">
  17. <table class="table datatable-simple table-bordered table-hover table-striped">
  18. <thead>
  19. <tr>
  20. <th data-index="0" class="" data-searchable="text">Id</th>
  21. <th data-index="1" class="" data-searchable="select-text">Type</th>
  22. <th data-index="2" class="" data-searchable="input">Amount</th>
  23. <th data-index="3" class="" data-searchable="input">MeanPayment</th>
  24. <th data-index="4" class="" data-searchable="date">PaidAt</th>
  25. <th data-index="5" class="" data-searchable="input">Reference</th>
  26. <th data-index="6" class="" data-searchable="text">Comment</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. {% for creditHistory in entity.creditHistories %}
  31. <tr draggable="true" rel="{{ creditHistory.id }}" data-id="{{ creditHistory.id }}">
  32. <td class="sorted">{{ creditHistory.id }}</td>
  33. <td class="association">{{ creditHistory.type }}</td>
  34. <td class="">{{ creditHistory.amountInherited }} €</td>
  35. <td class="">{{ creditHistory.meanPaymentInherited }}</td>
  36. <td class="">{{ creditHistory.paidAtInherited |date('d-m-y') }}</td>
  37. <td class="">{{ creditHistory.referenceInherited }}</td>
  38. <td class="">{{ creditHistory.commentInherited }}</td>
  39. </tr>
  40. {% else %}
  41. <tr>
  42. <td class="no-results" colspan="7">
  43. {{ 'search.no_results'|trans(_trans_parameters, 'EasyAdminBundle') }}
  44. </td>
  45. </tr>
  46. {% endfor %}
  47. </tbody>
  48. <tfoot></tfoot>
  49. </table>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. {% include 'LcShopBundle:backend/usermerchant:modal_addcredithistory.html.twig' %}
  55. {% endblock main %}
  56. {% block head_stylesheets %}
  57. {{ parent() }}
  58. <link rel="stylesheet" href="{{ asset('bundles/lcshop/css/backend/adminlte/plugins/datatables/fixedHeader.dataTables.min.css') }}">
  59. <link rel="stylesheet"
  60. href="{{ asset('bundles/lcshop/css/backend/adminlte/plugins/datatables/dataTables.bootstrap4.min.css') }}">
  61. {% endblock %}
  62. {% block plugin_javascript %}
  63. {{ parent() }}
  64. <script src="{{ asset('bundles/lcshop/js/backend/plugin/datatables/jquery.dataTables.min.js') }}"></script>
  65. <script src="{{ asset('bundles/lcshop/js/backend/plugin/datatables/dataTables.bootstrap4.min.js') }}"></script>
  66. <script src="{{ asset('bundles/lcshop/js/backend/plugin/datatables/dataTables.responsive.min.js') }}"></script>
  67. <script src="{{ asset('bundles/lcshop/js/backend/plugin/datatables/jquery.highlight.js') }}"></script>
  68. <script src="{{ asset('bundles/lcshop/js/backend/plugin/datatables/responsive.bootstrap4.min.js') }}"></script>
  69. <script src="{{ asset('bundles/lcshop/js/backend/plugin/datatables/dataTables.fixedHeader.min.js') }}"></script>
  70. {% endblock %}
  71. {% block script_javascript %}
  72. {{ parent() }}
  73. <script src="{{ asset('bundles/lcshop/js/backend/script/default/init-list.js') }}"></script>
  74. {% endblock %}