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.

120 lines
2.8 KiB

  1. ::use 'design.mtt'::
  2. <div class="col-md-3">
  3. <h2>::_("Contact informations")::</h2>
  4. <div class="article">
  5. <div style="font-weight:bold;font-size:120%;">::member.firstName:: ::member.lastName::
  6. ::if member.firstName2!=null && member.lastName2!=null::
  7. & ::member.firstName2:: ::member.lastName2::
  8. ::end::</div>
  9. $$nullSafe(::member.address1::)<br/>
  10. $$nullSafe(::member.address2::)<br/>
  11. $$nullSafe(::member.zipCode::)
  12. $$nullSafe(::member.city::)<br/>
  13. <br/>
  14. ::if member.phone!=null::
  15. ::_("Phone"):: : ::member.phone::<br/>
  16. ::end::
  17. ::if member.email!=null::
  18. ::_("Email"):: : <a href="mailto: ::member.email::">::member.email::</a><br/>
  19. ::end::
  20. ::if member.email2!=null::
  21. ::_("Email"):: : <a href="mailto: ::member.email2::">::member.email2::</a><br/>
  22. ::end::
  23. </div>
  24. </div>
  25. <div class="col-md-9">
  26. <h2>::_("Payments")::</h2>
  27. <div class="article">
  28. <table class="table table-condensed">
  29. <!-- total -->
  30. <tr style="font-size:1.3em;">
  31. <td colspan="2"></td>
  32. <td class="text-right">::_("Balance")::&nbsp;:</td>
  33. ::if balance<0::
  34. ::set color = "C00"::
  35. ::else::
  36. ::set color = "0C0"::
  37. ::end::
  38. <td style="color:#::color::;">
  39. ::if balance<0::
  40. -
  41. ::end::
  42. </td>
  43. <td style="color:#::color::;">
  44. ::Math.abs(balance)::&nbsp;::currency()::
  45. </td>
  46. <td colspan="2">
  47. </td>
  48. </tr>
  49. ::foreach t rb.current()::
  50. <tr>
  51. $$operation(::t::)
  52. <td>
  53. ::if t.type==2::
  54. <div class="btn-group" role="group">
  55. $$edit(::_("Edit")::,/transaction/edit/::t.id::)
  56. $$delete(::_("Del.")::,/transaction/delete/::t.id::?token=::token::)
  57. </div>
  58. ::elseif isAdmin::
  59. <a href="/transaction/delete/::t.id::?token=::token::" $$confirm(::_("Delete ?")::) class="btn btn-danger btn-sm" >
  60. <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
  61. </a>
  62. ::end::
  63. </td>
  64. </tr>
  65. ::end::
  66. <tr>
  67. <th colspan="6" class="text-center">
  68. <ul class="pagination">
  69. ::if rb.paginationStartPage != 1::
  70. <li>
  71. <a href="?page=::rb.paginationStartPage-1::">
  72. <span class="glyphicon glyphicon-backward"></span>
  73. </a>
  74. </li>
  75. ::end::
  76. ::foreach i loopList(rb.paginationStartPage,rb.paginationEndPage)::
  77. ::if rb.page==i::
  78. <li class="active" ><a href="?page=::i::">::i::</a></li>
  79. ::else::
  80. <li><a href="?page=::i::">::i::</a></li>
  81. ::end::
  82. ::end::
  83. ::if rb.paginationEndPage < rb.pages + 1::
  84. <li>
  85. <a href="?page=::rb.paginationEndPage::">
  86. <span class="glyphicon glyphicon-forward"></span>
  87. </a>
  88. </li>
  89. ::end::
  90. </ul>
  91. </th>
  92. </tr>
  93. </table>
  94. $$insert(::_("Insert a payement")::,/transaction/insertPayment/::member.id::)
  95. </div>
  96. </div>
  97. ::end::