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.

79 lines
4.4 KiB

5 years ago
5 years ago
5 years ago
5 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="assets_frontend" inherit_id="web.assets_frontend" name="Coop">
  4. <xpath expr="." position="inside">
  5. <script type="text/javascript"
  6. src="/easy_my_coop_loan_website/static/src/js/loan_issue.js"></script>
  7. </xpath>
  8. </template>
  9. <template id="loanissuesubscription" name="Loan Issue Subscription">
  10. <t t-call="website.layout">
  11. <div id="wrap">
  12. <div class="oe_structure"/>
  13. <div class="container oe_easymy_coop_loan">
  14. <h2 class="energie">Subscribe to Loan Issue</h2>
  15. <br/>
  16. <div class="row">
  17. <div class="col-md-8">
  18. <form action="/subscription/subscribe_loan_issue"
  19. method="post" class="form-horizontal mt32"
  20. enctype="multipart/form-data">
  21. <p style="color:red;">
  22. <t t-esc="error_msg"/>
  23. </p>
  24. <input type="hidden" name="csrf_token"
  25. t-att-value="request.csrf_token()"/>
  26. <div t-attf-class="form-group #{error and 'loan_issue_id' in error and 'has-error' or ''}">
  27. <label class="col-md-3 col-sm-4 control-label"
  28. style="width:25%"
  29. for="share_product_id">Loan issue
  30. </label>
  31. <select id="loan_issue" name="loan_issue_id"
  32. class="col-md-7 col-sm-8 form-control"
  33. style="width:54%;margin-left:15px">
  34. <t t-foreach="loan_issues or []"
  35. t-as="loan_issue">
  36. <option t-att-value="loan_issue.id"
  37. t-att-selected="loan_issue.id == int(loan_issue_id)">
  38. <t t-esc="loan_issue.name"/>
  39. </option>
  40. </t>
  41. </select>
  42. </div>
  43. <div t-attf-class="form-group #{error and 'subscription_amount' in error and 'has-error' or ''}">
  44. <label class="col-md-3 col-sm-4 control-label"
  45. style="width:25%"
  46. for="subscription_amount">Amount
  47. </label>
  48. <input id="subscription_amount"
  49. type="number"
  50. class="col-md-7 col-sm-8 form-control total"
  51. name="subscription_amount" min="0"
  52. step="100" max="5000"/>
  53. </div>
  54. <table style="margin-left:195px">
  55. <tr>
  56. <!--<td width="80%">
  57. <div class="g-recaptcha" t-att-data-sitekey="website.recaptcha_key_site" data-theme="green"/><br/>
  58. </td>-->
  59. <td>
  60. <div class="form-group">
  61. <div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
  62. <button class="btn btn-primary btn-lg">
  63. Send
  64. </button>
  65. </div>
  66. </div>
  67. </td>
  68. </tr>
  69. </table>
  70. </form>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </t>
  76. </template>
  77. </odoo>