You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
4.2KB

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