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.

178 lines
7.9 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. <template id="portal_my_details_emc" inherit_id="portal.portal_my_details" name="Portal user details">
  10. <xpath expr="//input[@name='phone']/.." position="after">
  11. <div t-attf-class="form-group #{error.get('iban') and 'o_has_error' or ''} col-xl-6">
  12. <label class="col-form-label" for="phone">Iban</label>
  13. <input type="input" name="iban" t-attf-class="form-control #{error.get('iban') and 'is-invalid' or ''}" t-att-value="iban" />
  14. </div>
  15. </xpath>
  16. </template>
  17. <!-- Add cooperator information -->
  18. <template
  19. id="website_portal_details_form"
  20. name="Website Portal Details Form"
  21. inherit_id="portal.portal_layout">
  22. <xpath expr="//div[@class='o_portal_my_details']" position="after">
  23. <div class="o_my_details_coop" t-if="coop.member">
  24. <h3 class="page-header">Your Cooperator Details</h3>
  25. <p class="text-center">
  26. <span t-if="coop.member">
  27. You are an effective cooperator
  28. </span>
  29. <span t-if="not coop.member">
  30. You are not a cooperator
  31. </span>
  32. </p>
  33. <p t-if="coop.cooperator_register_number">
  34. <label>Cooperator Number: </label>
  35. <t t-esc="coop.cooperator_register_number"/>
  36. </p>
  37. <p t-if="coop.effective_date">
  38. <label>Cooperator Entrance Date: </label>
  39. <span t-field="coop.effective_date"/>
  40. </p>
  41. <p t-if="coop.number_of_share">
  42. <label>Number of Share: </label>
  43. <t t-esc="coop.number_of_share"/>
  44. </p>
  45. <p t-if="coop.share_ids">
  46. <div t-foreach="coop.share_ids" t-as="share">
  47. <span t-field="share.effective_date"/>:
  48. <t t-esc="share.share_number"/> x
  49. <t t-esc="share.share_short_name"/>
  50. (<span t-field="share.share_unit_price"
  51. t-field-options='{
  52. "widget": "monetary",
  53. "display_currency": "coop.company_id.currency_id"
  54. }'/>) -
  55. <span t-field="share.total_amount_line"
  56. t-field-options='{
  57. "widget": "monetary",
  58. "display_currency": "coop.company_id.currency_id"
  59. }'/>
  60. </div>
  61. </p>
  62. <p t-if="coop.total_value">
  63. <label>Total Value of Share: </label>
  64. <span t-field="coop.total_value"
  65. t-field-options='{
  66. "widget": "monetary",
  67. "display_currency": "coop.company_id.currency_id"
  68. }'/>
  69. </p>
  70. <p t-if="coop.gender">
  71. <label>Gender: </label>
  72. <t t-esc="coop.gender"/>
  73. </p>
  74. <p t-if="coop.birthdate_date">
  75. <label>Date of Birth: </label>
  76. <t t-esc="coop.birthdate_date"/>
  77. </p>
  78. <p t-if="coop_bank and coop_bank.acc_number">
  79. <label>Bank Account: </label>
  80. <t t-esc="coop_bank.acc_number"/>
  81. </p>
  82. <p t-if="coop.is_company and coop.company_register_number">
  83. <label>Company Register Number: </label>
  84. <t t-esc="coop.company_register_number"/>
  85. </p>
  86. <p t-if="coop.is_company and coop.representative">
  87. <label>Legal Representative: </label>
  88. <t t-esc="coop.representative"/>
  89. </p>
  90. <p class="text-center">
  91. <a href="/my/cooperator_certificate/pdf" class="btn btn-default">
  92. Cooperator Certificate
  93. </a>
  94. </p>
  95. </div>
  96. </xpath>
  97. </template>
  98. <template id="portal_my_home_menu_capital_request" name="Portal layout : capital request menu entries" inherit_id="portal.portal_breadcrumbs" priority="30">
  99. <xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
  100. <li t-if="page_name == 'capital request'" t-attf-class="breadcrumb-item #{'active ' if not capital_requests else ''}">
  101. <a t-if="capital_request" t-attf-href="/my/release_capital_request?{{ keep_query() }}">Capital Request</a>
  102. <t t-else="">Capital Request</t>
  103. </li>
  104. <li t-if="capital_request" class="breadcrumb-item active">
  105. <t t-esc="capital_request.number" t-if="capital_request.number"/>
  106. <t t-else=""><em>Draft Request</em></t>
  107. </li>
  108. </xpath>
  109. </template>
  110. <template id="portal_my_home_capital_release"
  111. name="Portal My Home : Easy My Coop Capital Release Requests"
  112. inherit_id="portal.portal_my_home" priority="30">
  113. <xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
  114. <t t-if="capital_request_count" t-call="portal.portal_docs_entry">
  115. <t t-set="title">Your Release Capital Requests</t>
  116. <t t-set="url" t-value="'/my/release_capital_request'"/>
  117. <t t-set="count" t-value="capital_request_count"/>
  118. </t>
  119. </xpath>
  120. </template>
  121. <template id="portal_my_capital_releases" name="My Capital Releases">
  122. <t t-call="portal.portal_layout">
  123. <t t-set="breadcrumbs_searchbar" t-value="True"/>
  124. <t t-call="portal.portal_searchbar">
  125. <t t-set="title">My Capital Releases</t>
  126. </t>
  127. <t t-if="not capital_requests">
  128. <p>There are currently no capital release request for your
  129. account.
  130. </p>
  131. </t>
  132. <t t-if="capital_requests" t-call="portal.portal_table">
  133. <thead>
  134. <tr class="active">
  135. <th>Request #</th>
  136. <th>Request Date</th>
  137. <th class='d-none d-md-table-cell'>Due Date</th>
  138. <th/>
  139. <th class="text-right">Amount Due</th>
  140. </tr>
  141. </thead>
  142. <tbody>
  143. <t t-foreach="capital_requests" t-as="capital_request">
  144. <tr>
  145. <td>
  146. <a t-att-href="capital_request.get_portal_url()" t-att-title="capital_request.number">
  147. <t t-esc="capital_request.number" t-if="capital_request.number"/>
  148. <em t-else="">Draft Request</em>
  149. </a>
  150. </td>
  151. <td><span t-field="capital_request.date_invoice"/></td>
  152. <td class='d-none d-md-table-cell'><span t-field="capital_request.date_due"/></td>
  153. <td class="tx_status">
  154. <t t-if="capital_request.state == 'open'">
  155. <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>
  156. </t>
  157. <t t-if="capital_request.state == 'paid'">
  158. <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>
  159. </t>
  160. <t t-if="capital_request.state == 'cancel'">
  161. <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>
  162. </t>
  163. </td>
  164. <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>
  165. </tr>
  166. </t>
  167. </tbody>
  168. </t>
  169. </t>
  170. </template>
  171. </odoo>