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.

199 lines
6.8 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.is_company and coop.company_register_number">
  75. <label>Company Register Number: </label>
  76. <t t-esc="coop.company_register_number"/>
  77. </p>
  78. <p t-if="coop.is_company and coop.representative">
  79. <label>Legal Representative: </label>
  80. <t t-esc="coop.representative"/>
  81. </p>
  82. <p class="text-center">
  83. <a href="/my/cooperator_certificate/pdf" class="btn btn-default">
  84. Cooperator Certificate
  85. </a>
  86. </p>
  87. </div>
  88. </xpath>
  89. </template>
  90. <!-- Release Capital Requests in the menu -->
  91. <template
  92. id="portal_my_home_menu_capital_release"
  93. name="Portal Menu: Easy My Coop Capital Release"
  94. inherit_id="website_portal_v10.portal_layout"
  95. priority="20">
  96. <xpath expr="//ul[contains(@class,'o_portal_submenu')]"
  97. position="inside">
  98. <li>
  99. <a href="/my/release_capital_request">Capital Releases</a>
  100. </li>
  101. </xpath>
  102. </template>
  103. <!-- Release Capital Requests on the main page -->
  104. <template
  105. id="portal_my_home_capital_release"
  106. name="Portal My Home : Easy My Coop Capital Release Requests"
  107. inherit_id="website_portal_v10.portal_my_home"
  108. priority="20">
  109. <xpath expr="//div[contains(@class,'o_my_home_content')]"
  110. position="inside">
  111. <h3 class="page-header">
  112. <a href="/my/release_capital_request">
  113. Your Release Capital Requests
  114. <small class="ml8">
  115. <t t-if="capital_request_count">
  116. <span class='badge'>
  117. <t t-esc="capital_request_count"/>
  118. </span>
  119. </t>
  120. <t t-if="not capital_request_count">
  121. There are currently no release capital request for your
  122. account.
  123. </t>
  124. </small>
  125. </a>
  126. </h3>
  127. </xpath>
  128. </template>
  129. <!-- Release Capital Request page -->
  130. <template id="portal_my_capital_releases" name="My Capital Releases">
  131. <t t-call="website_portal_v10.portal_layout">
  132. <h3 class="page-header">Your Capital Release Requests</h3>
  133. <t t-if="not capital_requests">
  134. <p>
  135. There are currently no capital release request for your
  136. account.
  137. </p>
  138. </t>
  139. <t t-if="capital_requests">
  140. <table class="table table-hover o_my_status_table">
  141. <thead>
  142. <tr class="active">
  143. <th>Request #</th>
  144. <th>Request Date</th>
  145. <th>Due Date</th>
  146. <th></th>
  147. <th>Amount Due</th>
  148. </tr>
  149. </thead>
  150. <tbody>
  151. <tr t-foreach="capital_requests" t-as="capital_request">
  152. <td>
  153. <a t-att-href="'/my/release_capital_request/pdf/%s' %
  154. capital_request.id">
  155. <t t-esc="capital_request.number"/>
  156. </a>
  157. </td>
  158. <td><span t-field="capital_request.date_invoice"/></td>
  159. <td><span t-field="capital_request.date_due"/></td>
  160. <td>
  161. <t t-if="capital_request.state == 'open'">
  162. <span class="label label-info">
  163. <i class="fa fa-fw fa-clock-o"/> Waiting for Payment
  164. </span>
  165. </t>
  166. <t t-if="capital_request.state == 'paid'">
  167. <span class="label label-default">
  168. <i class="fa fa-fw fa-check"/> Paid
  169. </span>
  170. </t>
  171. <t t-if="capital_request.state == 'cancel'">
  172. <span class="label label-default">
  173. <i class="fa fa-fw fa-remove"/> Cancelled
  174. </span>
  175. </t>
  176. </td>
  177. <td>
  178. <span t-field="capital_request.residual"
  179. t-field-options='{
  180. "widget": "monetary",
  181. "display_currency": "capital_request.currency_id"
  182. }'/>
  183. </td>
  184. </tr>
  185. </tbody>
  186. </table>
  187. <div t-if="pager" class="o_portal_pager text-center">
  188. <t t-call="website.pager"/>
  189. </div>
  190. </t>
  191. </t>
  192. </template>
  193. </openerp>