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.

107 lines
2.7 KiB

  1. ::use 'design.mtt'::
  2. <div class="col-md-12">
  3. <h2>::_("Hello")::
  4. ::if whichUser()==0::
  5. ::user.firstName::
  6. ::else::
  7. ::user.firstName2::
  8. ::end::
  9. !
  10. </h2>
  11. </div>
  12. <div class="col-md-12" ::cond pros!=null && pros.length>0::>
  13. <p> ::raw _("Connect to your <b>Cagette Pro</b> account to manage your products, catalogs and deliveries.")::</p>
  14. </div>
  15. <!-- cagette pro -->
  16. <div class="col-md-12" ::cond pros!=null::>
  17. <div class="row">
  18. ::foreach p pros::
  19. <!-- Cagette pro -->
  20. <div class="col-md-4">
  21. <a class="clickable proBlock" href="/p/pro/?company=::p.id::">
  22. ::if p._image!=null::
  23. <img src="::file(p._image)::" class="img-responsive" style="width:92px;float:left;margin-right:12px;" />
  24. ::end::
  25. <h4>::p.name::</h4>
  26. </a>
  27. </div>
  28. ::end::
  29. </div>
  30. </div>
  31. <div class="col-md-12" >
  32. <p>::raw _("Please click on the <b>Cagette group</b> you want to connect to.")::</p>
  33. </div>
  34. <!-- groups -->
  35. <div class="col-md-12">
  36. <div class="row">
  37. ::foreach ua amaps::
  38. ::set group = ua._amap::
  39. <div class="col-md-4">
  40. <a class="clickable groupBlock" href="/user/choose?amap=::group.id::">
  41. ::if group._image!=null::
  42. <img src="::file(group._image)::" class="img-responsive" style="width:92px;float:left;margin-right:12px;" />
  43. ::end::
  44. <h4>::group.name::</h4>
  45. </a>
  46. </div>
  47. ::end::
  48. ::if amaps.length==0::
  49. <div class="col-md-12">
  50. <div class="article text-center">
  51. <p>
  52. ::_("You don't belong to any group yet")::
  53. </p>
  54. <a class="btn btn-primary" href="/group/create/"><span class="glyphicon glyphicon-chevron-right"></span> ::_("Create my own group")::</a>
  55. </div>
  56. </div>
  57. ::end::
  58. </div>
  59. </div>
  60. <!-- actions -->
  61. <div class="col-md-12 text-center" style="margin-bottom:12px;" >
  62. ::if session.lang!="de"::
  63. <a class="btn btn-default btn-lg" href="/group/map"><span class="glyphicon glyphicon-search"></span> ::_("Find other groups near me")::</a>
  64. ::end::
  65. <a class="btn btn-default btn-lg" href="/group/create/"><span class="glyphicon glyphicon-plus"></span> ::_("Create my own group")::</a>
  66. </div>
  67. <!-- waiting list -->
  68. <div class="col-md-12" ::cond wl.length>0::>
  69. <div class="article">
  70. <h4>::_("Subscriptions on waiting list")::</h4>
  71. <table class="table">
  72. ::foreach w wl::
  73. <tr>
  74. <td>
  75. <a href="/group/::w._group.id::">::w._group.name::</a>
  76. </td>
  77. <td>
  78. ::__("Request sent on ::date::",{ date:hDate(w.date) })::
  79. </td>
  80. <td>
  81. <a href="/group/listCancel/::w._group.id::" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-remove"></span> ::_("Cancel")::</a>
  82. </td>
  83. </tr>
  84. ::end::
  85. </table>
  86. </div>
  87. </div>
  88. ::end::