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.

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