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.

170 lines
7.4 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
  4. Copyright 2018 Rémy Taymans <remy@cooptieasy.be>
  5. Copyright 2019 Houssine Bakkali <houssine@cooptieasy.be>
  6. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  7. -->
  8. <odoo>
  9. <!-- Add cooperator information -->
  10. <template
  11. id="website_portal_details_form"
  12. name="Website Portal Details Form"
  13. inherit_id="portal.portal_layout">
  14. <xpath expr="//div[@class='o_portal_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_date">
  67. <label>Date of Birth: </label>
  68. <t t-esc="coop.birthdate_date"/>
  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. <template id="portal_my_home_menu_capital_request" name="Portal layout : capital request menu entries" inherit_id="portal.portal_breadcrumbs" priority="30">
  91. <xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
  92. <li t-if="page_name == 'capital request'" t-attf-class="breadcrumb-item #{'active ' if not capital_requests else ''}">
  93. <a t-if="capital_request" t-attf-href="/my/release_capital_request?{{ keep_query() }}">Capital Request</a>
  94. <t t-else="">Capital Request</t>
  95. </li>
  96. <li t-if="capital_request" class="breadcrumb-item active">
  97. <t t-esc="capital_request.number" t-if="capital_request.number"/>
  98. <t t-else=""><em>Draft Request</em></t>
  99. </li>
  100. </xpath>
  101. </template>
  102. <template id="portal_my_home_capital_release"
  103. name="Portal My Home : Easy My Coop Capital Release Requests"
  104. inherit_id="portal.portal_my_home" priority="30">
  105. <xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
  106. <t t-if="capital_request_count" t-call="portal.portal_docs_entry">
  107. <t t-set="title">Your Release Capital Requests</t>
  108. <t t-set="url" t-value="'/my/release_capital_request'"/>
  109. <t t-set="count" t-value="capital_request_count"/>
  110. </t>
  111. </xpath>
  112. </template>
  113. <template id="portal_my_capital_releases" name="My Capital Releases">
  114. <t t-call="portal.portal_layout">
  115. <t t-set="breadcrumbs_searchbar" t-value="True"/>
  116. <t t-call="portal.portal_searchbar">
  117. <t t-set="title">My Capital Releases</t>
  118. </t>
  119. <t t-if="not capital_requests">
  120. <p>There are currently no capital release request for your
  121. account.
  122. </p>
  123. </t>
  124. <t t-if="capital_requests" t-call="portal.portal_table">
  125. <thead>
  126. <tr class="active">
  127. <th>Request #</th>
  128. <th>Request Date</th>
  129. <th class='d-none d-md-table-cell'>Due Date</th>
  130. <th/>
  131. <th class="text-right">Amount Due</th>
  132. </tr>
  133. </thead>
  134. <tbody>
  135. <t t-foreach="capital_requests" t-as="capital_request">
  136. <tr>
  137. <td>
  138. <a t-att-href="capital_request.get_portal_url()" t-att-title="capital_request.number">
  139. <t t-esc="capital_request.number" t-if="capital_request.number"/>
  140. <em t-else="">Draft Request</em>
  141. </a>
  142. </td>
  143. <td><span t-field="capital_request.date_invoice"/></td>
  144. <td class='d-none d-md-table-cell'><span t-field="capital_request.date_due"/></td>
  145. <td class="tx_status">
  146. <t t-if="capital_request.state == 'open'">
  147. <span class="badge badge-pill badge-info"><i class="fa fa-fw fa-clock-o" aria-label="Opened" title="Opened" role="img"></i><span class="d-none d-md-inline"> Waiting for Payment</span></span>
  148. </t>
  149. <t t-if="capital_request.state == 'paid'">
  150. <span class="badge badge-pill badge-success"><i class="fa fa-fw fa-check" aria-label="Paid" title="Paid" role="img"></i><span class="d-none d-md-inline"> Paid</span></span>
  151. </t>
  152. <t t-if="capital_request.state == 'cancel'">
  153. <span class="badge badge-pill badge-warning"><i class="fa fa-fw fa-remove" aria-label="Cancelled" title="Cancelled" role="img"></i><span class="d-none d-md-inline"> Cancelled</span></span>
  154. </t>
  155. </td>
  156. <td class="text-right"><span t-esc="-capital_request.residual if capital_request.type == 'out_refund' else capital_request.residual" t-options='{"widget": "monetary", "display_currency": capital_request.currency_id}'/></td>
  157. </tr>
  158. </t>
  159. </tbody>
  160. </t>
  161. </t>
  162. </template>
  163. </odoo>