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.

show.html.twig 4.7KB

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