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.

203 lines
6.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2015-2016 Odoo S.A.
  4. Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
  5. Copyright 2018 Rémy Taymans <remytaymans@gmail.com>
  6. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  7. -->
  8. <openerp>
  9. <!-- Add cooperator information -->
  10. <template
  11. id="website_portal_details_form"
  12. name="Website Portal Details Form"
  13. inherit_id="website_portal_v10.portal_layout">
  14. <xpath expr="//div[@class='o_my_details']" position="after">
  15. <div class="o_my_details_coop" t-if="coop.member">
  16. <h3 class="page-header">Your Cooperator Details</h3>
  17. <p class="text-center">
  18. <span t-if="coop.member">
  19. You are an effective cooperator
  20. </span>
  21. <span t-if="not coop.member">
  22. You are not a cooperator
  23. </span>
  24. </p>
  25. <p t-if="coop.cooperator_register_number">
  26. <label>Cooperator Number: </label>
  27. <t t-esc="coop.cooperator_register_number"/>
  28. </p>
  29. <p t-if="coop.effective_date">
  30. <label>Cooperator Entrance Date: </label>
  31. <span t-field="coop.effective_date"/>
  32. </p>
  33. <p t-if="coop.number_of_share">
  34. <label>Number of Share: </label>
  35. <t t-esc="coop.number_of_share"/>
  36. </p>
  37. <p t-if="coop.share_ids">
  38. <div t-foreach="coop.share_ids" t-as="share">
  39. <span t-field="share.effective_date"/>:
  40. <t t-esc="share.share_number"/> x
  41. <t t-esc="share.share_short_name"/>
  42. (<span t-field="share.share_unit_price"
  43. t-field-options='{
  44. "widget": "monetary",
  45. "display_currency": "coop.company_id.currency_id"
  46. }'/>) -
  47. <span t-field="share.total_amount_line"
  48. t-field-options='{
  49. "widget": "monetary",
  50. "display_currency": "coop.company_id.currency_id"
  51. }'/>
  52. </div>
  53. </p>
  54. <p t-if="coop.total_value">
  55. <label>Total Value of Share: </label>
  56. <span t-field="coop.total_value"
  57. t-field-options='{
  58. "widget": "monetary",
  59. "display_currency": "coop.company_id.currency_id"
  60. }'/>
  61. </p>
  62. <p t-if="coop.gender">
  63. <label>Gender: </label>
  64. <t t-esc="coop.gender"/>
  65. </p>
  66. <p t-if="coop.birthdate">
  67. <label>Date of Birth: </label>
  68. <t t-esc="coop.birthdate"/>
  69. </p>
  70. <p t-if="coop_bank and coop_bank.acc_number">
  71. <label>Bank Account: </label>
  72. <t t-esc="coop_bank.acc_number"/>
  73. </p>
  74. <p t-if="coop.national_register_number">
  75. <label>National Register Number: </label>
  76. <t t-esc="coop.national_register_number"/>
  77. </p>
  78. <p t-if="coop.company_register_number">
  79. <label>Company Register Number: </label>
  80. <t t-esc="coop.company_register_number"/>
  81. </p>
  82. <p t-if="coop.representative">
  83. <label>Legal Representative: </label>
  84. <t t-esc="coop.representative"/>
  85. </p>
  86. <p class="text-center">
  87. <a href="/my/cooperator_certificate/pdf" class="btn btn-default">
  88. Cooperator Certificate
  89. </a>
  90. </p>
  91. </div>
  92. </xpath>
  93. </template>
  94. <!-- Release Capital Requests in the menu -->
  95. <template
  96. id="portal_my_home_menu_capital_release"
  97. name="Portal Menu: Easy My Coop Capital Release"
  98. inherit_id="website_portal_v10.portal_layout"
  99. priority="20">
  100. <xpath expr="//ul[contains(@class,'o_portal_submenu')]"
  101. position="inside">
  102. <li>
  103. <a href="/my/release_capital_request">Capital Releases</a>
  104. </li>
  105. </xpath>
  106. </template>
  107. <!-- Release Capital Requests on the main page -->
  108. <template
  109. id="portal_my_home_capital_release"
  110. name="Portal My Home : Easy My Coop Capital Release Requests"
  111. inherit_id="website_portal_v10.portal_my_home"
  112. priority="20">
  113. <xpath expr="//div[contains(@class,'o_my_home_content')]"
  114. position="inside">
  115. <h3 class="page-header">
  116. <a href="/my/release_capital_request">
  117. Your Release Capital Requests
  118. <small class="ml8">
  119. <t t-if="capital_request_count">
  120. <span class='badge'>
  121. <t t-esc="capital_request_count"/>
  122. </span>
  123. </t>
  124. <t t-if="not capital_request_count">
  125. There are currently no release capital request for your
  126. account.
  127. </t>
  128. </small>
  129. </a>
  130. </h3>
  131. </xpath>
  132. </template>
  133. <!-- Release Capital Request page -->
  134. <template id="portal_my_capital_releases" name="My Capital Releases">
  135. <t t-call="website_portal_v10.portal_layout">
  136. <h3 class="page-header">Your Capital Release Requests</h3>
  137. <t t-if="not capital_requests">
  138. <p>
  139. There are currently no capital release request for your
  140. account.
  141. </p>
  142. </t>
  143. <t t-if="capital_requests">
  144. <table class="table table-hover o_my_status_table">
  145. <thead>
  146. <tr class="active">
  147. <th>Request #</th>
  148. <th>Request Date</th>
  149. <th>Due Date</th>
  150. <th></th>
  151. <th>Amount Due</th>
  152. </tr>
  153. </thead>
  154. <tbody>
  155. <tr t-foreach="capital_requests" t-as="capital_request">
  156. <td>
  157. <a t-att-href="'/my/release_capital_request/pdf/%s' %
  158. capital_request.id">
  159. <t t-esc="capital_request.number"/>
  160. </a>
  161. </td>
  162. <td><span t-field="capital_request.date_invoice"/></td>
  163. <td><span t-field="capital_request.date_due"/></td>
  164. <td>
  165. <t t-if="capital_request.state == 'open'">
  166. <span class="label label-info">
  167. <i class="fa fa-fw fa-clock-o"/> Waiting for Payment
  168. </span>
  169. </t>
  170. <t t-if="capital_request.state == 'paid'">
  171. <span class="label label-default">
  172. <i class="fa fa-fw fa-check"/> Paid
  173. </span>
  174. </t>
  175. <t t-if="capital_request.state == 'cancel'">
  176. <span class="label label-default">
  177. <i class="fa fa-fw fa-remove"/> Cancelled
  178. </span>
  179. </t>
  180. </td>
  181. <td>
  182. <span t-field="capital_request.residual"
  183. t-field-options='{
  184. "widget": "monetary",
  185. "display_currency": "capital_request.currency_id"
  186. }'/>
  187. </td>
  188. </tr>
  189. </tbody>
  190. </table>
  191. <div t-if="pager" class="o_portal_pager text-center">
  192. <t t-call="website.pager"/>
  193. </div>
  194. </t>
  195. </t>
  196. </template>
  197. </openerp>