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.

163 lines
4.5 KiB

  1. ::use 'design.mtt'::
  2. <div class="col-md-9">
  3. <div class="article">
  4. ::if select!=null::
  5. <h2>::_("Selection :||show a sublist of members which has been selected")::
  6. ::if select=="nocontract"::
  7. ::_("Members without any contracts")::
  8. ::elseif select=="nomembership"::
  9. ::_("Members whose membership should be renewed")::
  10. ::elseif select=="newusers"::
  11. ::_("Members who has never logged in")::
  12. ::elseif select=="contract"::
  13. ::_("Members with orders or contracts")::
  14. ::end::
  15. </h2>
  16. <p><b>::members.current().length::</b> ::_("members")::.</p>
  17. <a href="/member/">::_("Back to main page")::</a>
  18. ::elseif search!=null::
  19. <h2>::_("Search"):: : ::search::</h2>
  20. <a href="/member/">::_("Back to main page")::</a>
  21. ::else::
  22. <h2>::_("Members")::</h2>
  23. ::end::
  24. ::if select=="newusers"::
  25. <hr/>
  26. <p style="text-align:center;">
  27. ::_("You can invite by email all the members who never logged in, in one single clic.")::
  28. </p>
  29. <p style="text-align:center;">
  30. <a href="/member/invite/?token=::token::" class="btn btn-primary btn-lg"><span class="glyphicon glyphicon-envelope"></span> ::_("Send invitations")::</a>
  31. </p>
  32. ::end::
  33. <table class="table table-bordered table-hover table-striped" style="width:100%;">
  34. ::foreach m members.current()::
  35. <tr>
  36. <td>
  37. <a href="/member/view/::m.id::">
  38. ::m.lastName:: ::m.firstName::
  39. ::if m.lastName2!=null::
  40. &amp; ::m.lastName2:: ::m.firstName2::
  41. ::end::
  42. </a>
  43. </td>
  44. <td>
  45. ::if m.address1!=null::
  46. ::m.address1::
  47. ::end::
  48. ::if m.address2!=null::
  49. ::m.address2::
  50. ::end::
  51. ::if m.zipCode!=null::
  52. ::m.zipCode::
  53. ::end::
  54. ::if m.city!=null::
  55. ::m.city::
  56. ::end::
  57. </td>
  58. </tr>
  59. ::end::
  60. <tr ::cond select==null && search==null::>
  61. <td colspan="2" class="text-center">
  62. <ul class="pagination">
  63. ::if members.paginationStartPage != 1::
  64. <li>
  65. <a href="?page=::members.paginationStartPage-1::">
  66. <span class="glyphicon glyphicon-backward"></span>
  67. </a>
  68. </li>
  69. ::end::
  70. ::foreach i loopList(members.paginationStartPage,members.paginationEndPage)::
  71. ::if members.page==i::
  72. <li class="active" ><a href="?page=::i::">::i::</a></li>
  73. ::else::
  74. <li><a href="?page=::i::">::i::</a></li>
  75. ::end::
  76. ::end::
  77. ::if members.paginationEndPage < members.pages + 1::
  78. <li>
  79. <a href="?page=::members.paginationEndPage::">
  80. <span class="glyphicon glyphicon-forward"></span>
  81. </a>
  82. </li>
  83. ::end::
  84. </ul>
  85. </td>
  86. </tr>
  87. </table>
  88. <div>
  89. <a href="/member/insert" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-plus-sign"></span> ::_("New member")::</a>
  90. $$export(::Web.getURI()+"?"+Web.getParamsString()::&csv=1)
  91. <a href="/member/import" class="btn btn-default btn-sm"><span class="glyphicon glyphicon-save"></span> ::_("Import members")::</a>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="col-md-3">
  96. <div class="block">
  97. <h3>::_("Selections")::</h3>
  98. <ul>
  99. <li><a href="/member/">::_("All members")::</a></li>
  100. <li><a href="/member/?select=nocontract">::_("Without orders or contracts")::</a></li>
  101. <li><a href="/member/?select=contract">::_("With orders or contracts")::</a></li>
  102. <li><a href="/member/?select=newusers">::_("Never logged in")::</a></li>
  103. <li ::cond user._amap.hasMembership()::><a href="/member/?select=nomembership">::_("Memberships to renew")::</a></li>
  104. <li ::cond user._amap.hasPayments()::><a href="/member/balance">::_("Members balance")::</a></li>
  105. </ul>
  106. <form class="form-search" action="/member/" method="get">
  107. <div class="input-group">
  108. ::if search==null::
  109. ::set ssearch=""::
  110. ::else::
  111. ::set ssearch=search::
  112. ::end::
  113. <input type="text" class="form-control" name="search" value="::ssearch::" />
  114. <span class="input-group-btn">
  115. <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span> ::_("Search||search action button")::</button>
  116. </span>
  117. </div>
  118. </form>
  119. </div>
  120. <div class="block">
  121. <h3>::_("Waiting list")::</h3>
  122. <p>
  123. ::raw __("There is <b>::waitingList::</b> people on waiting list.",{waitingList:waitingList})::
  124. <br/>
  125. <a href="/member/waiting" class="btn btn-default btn-sm">::_("Display the list")::</a>
  126. </p>
  127. </div>
  128. ::if select!="newusers"::
  129. <div class="block">
  130. <h3>::_("New members")::</h3>
  131. ::raw __("There is <b>::newUsers::</b> members who never logged in",{newUsers:newUsers})::
  132. <br/>
  133. <a href="/member/?select=newusers" class="btn btn-default btn-sm">::_("Display the list")::</a>
  134. </div>
  135. ::end::
  136. </div>
  137. ::end::