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.

626 lines
33 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="assets_frontend" inherit_id="website.assets_frontend" name="Coop">
  5. <xpath expr="." position="inside">
  6. <script type="text/javascript" src="/easy_my_coop/static/src/js/easy_my_coop.js"></script>
  7. <script type="text/javascript" src="/easy_my_coop/static/src/js/jquery.inputmask.bundle.js"></script>
  8. </xpath>
  9. </template>
  10. <template id="company_operational_offices" inherit_id="website.company_description" name="Company Description">
  11. <address itemscope="itemscope" position="inside">
  12. <div class="fa fa-building-o" t-field="res_company.company_registry"/><br/>
  13. <div class="fa fa-bank" t-field="res_company.partner_id.bank_ids[0].sanitized_acc_number"/>
  14. </address>
  15. </template>
  16. <template id="cooperator_thanks" name="Cooperator contact us" page="True">
  17. <t t-call="website.layout">
  18. <div id="wrap">
  19. <div class="oe_structure"/>
  20. <div class="container">
  21. <h1>Thanks!</h1>
  22. <div class="row">
  23. <div class="col-md-8">
  24. <div class="alert alert-success">
  25. Your subscription has been successfully registered.
  26. <button type="button" class="close" data-dismiss="alert">&amp;times;</button>
  27. </div>
  28. <p>
  29. We will get back to you shortly.
  30. </p>
  31. <ul class="list-unstyled">
  32. <li><i class="fa fa-phone"></i> : <span t-field="res_company.phone"/></li>
  33. <li><i class="fa fa-envelope"></i> : <span t-field="res_company.email"/></li>
  34. </ul>
  35. </div>
  36. <div class="col-md-4">
  37. <t t-call="website.company_description"/>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="oe_structure"/>
  42. </div>
  43. </t>
  44. </template>
  45. <template id="easy_my_coop.becomecooperator" name="Become Cooperator" page="True">
  46. <t t-call="website.layout">
  47. <div id="wrap">
  48. <div class="oe_structure"/>
  49. <div class="container oe_easymy_coop">
  50. <h2 class="energie">Become Cooperator</h2><br/>
  51. <div class="row">
  52. <div class="col-md-8">
  53. <form action="/subscription/subscribe_share" method="post" class="form-horizontal mt32" enctype="multipart/form-data">
  54. <p style="color:red;"><t t-esc="error_msg"/></p>
  55. <input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
  56. <div t-attf-class="form-group">
  57. <a class='btn btn-primary' t-if="not logged" t-attf-href="/web/login?redirect=#{ request.httprequest.url }">You have already an account?</a>
  58. <br/>
  59. </div>
  60. <div t-attf-class="form-group" style="display: none;">
  61. <label>
  62. <input type="checkbox" t-att-checked="logged" name="logged"/>
  63. Logged
  64. </label>
  65. </div>
  66. <div t-attf-class="form-group" style="display: none;">
  67. Already cooperator?
  68. <input type="checkbox"
  69. name="already_cooperator"
  70. t-att-checked="already_cooperator"/>
  71. </div>
  72. <div name="email_from_container" t-attf-class="form-group #{error and 'email_from' in error and 'has-error' or ''}">
  73. <label class="col-md-3 col-sm-4 control-label" for="email">Email</label>
  74. <div class="col-md-7 col-sm-8 bottom-line" style="padding-bottom:20px">
  75. <input type="email" class="form-control mandatory-field" name="email" required="True" t-attf-value="#{email or ''}" placeholder="didier.bourdon@bees-coop.be"/>
  76. </div>
  77. </div>
  78. <div t-attf-class="form-group #{error and 'firstname' in error and 'has-error' or ''}">
  79. <label class="col-md-3 col-sm-4 control-label" for="name">First Name</label>
  80. <div class="col-md-7 col-sm-8" style="padding-top:5px">
  81. <input type="text" class="form-control mandatory-field" name="firstname" required="True" t-attf-value="#{firstname or ''}" placeholder="Didier"/>
  82. </div>
  83. </div>
  84. <div t-attf-class="form-group #{error and 'lastname' in error and 'has-error' or ''}">
  85. <label class="col-md-3 col-sm-4 control-label" for="name">Last Name</label>
  86. <div class="col-md-7 col-sm-8">
  87. <input type="text" class="form-control mandatory-field" name="lastname" required="True" t-attf-value="#{lastname or ''}" placeholder="Bourdon"/>
  88. </div>
  89. </div>
  90. <div t-attf-class="form-group #{error and 'gender' in error and 'has-error' or ''}">
  91. <label class="col-md-3 col-sm-4 control-label" for="company_type">Gender</label>
  92. <select name="gender" class="col-md-7 col-sm-8 form-control" required="True" style="width:54%;margin-left:15px">
  93. <option value=""></option>
  94. <t t-foreach="genders or []" t-as="type">
  95. <option t-att-value="type[0]" t-att-selected="type[0] == gender"><t t-esc="type[1]"/></option>
  96. </t>
  97. </select>
  98. </div>
  99. <div t-attf-class="form-group #{error and 'birthdate' in error and 'has-error' or ''}">
  100. <label class="col-md-3 col-sm-4 control-label" for="birthdate">Birthdate</label>
  101. <div class="col-md-7 col-sm-8">
  102. <input type="text" data-inputmask="'alias': 'date'" class="form-control mandatory-field" name="birthdate" required="True" t-attf-value="#{birthdate or ''}" placeholder="05/03/1978"/>
  103. </div>
  104. </div>
  105. <div t-attf-class="form-group #{error and 'no_registre' in error and 'has-error' or ''}">
  106. <label class="col-md-3 col-sm-4 control-label" for="no_registre">National Register Number</label>
  107. <div class="col-md-7 col-sm-8">
  108. <input type="text" class="form-control mandatory-field" name="no_registre" t-attf-value="#{no_registre or ''}" placeholder="78230226321"/>
  109. </div>
  110. </div>
  111. <div t-attf-class="form-group #{error and 'iban' in error and 'has-error' or ''}">
  112. <label class="col-md-3 col-sm-4 control-label" for="iban">Bank Account Number</label>
  113. <div class="col-md-7 col-sm-8">
  114. <input type="text" class="form-control mandatory-field" name="iban" required="True" t-attf-value="#{iban or ''}" placeholder="BE48523080767127"/>
  115. </div>
  116. </div>
  117. <div t-attf-class="form-group #{error and 'lang' in error and 'has-error' or ''}" >
  118. <label class="col-md-3 col-sm-4 control-label" style="width:25%" for="lang">Language</label>
  119. <select name="lang" class="col-md-7 col-sm-8 form-control " style="width:30%;margin-left:15px">
  120. <option value="2">Language...</option>
  121. <t t-foreach="langs or []" t-as="langue">
  122. <option t-att-value="langue.code" t-att-selected="langue.code == lang"><t t-esc="langue.name"/></option>
  123. </t>
  124. </select>
  125. <br/>
  126. <div class="bottom-line" style="margin-left:25%;margin-top:35px;width:59%"></div>
  127. </div>
  128. <div t-attf-class="form-group #{error and 'address' in error and 'has-error' or ''}">
  129. <label class="col-md-3 col-sm-4 control-label" for="address">Address</label>
  130. <div class="col-md-7 col-sm-8">
  131. <input type="text" class="form-control mandatory-field" name="address" required="True" t-attf-value="#{address or ''}" placeholder="rue Van Hove, 19"/>
  132. </div>
  133. </div>
  134. <div t-attf-class="form-group #{error and 'zip_code' in error and 'has-error' or ''}">
  135. <label class="col-md-3 col-sm-4 control-label" for="zip_code">City</label>
  136. <div class="col-md-7 col-sm-8">
  137. <table>
  138. <tr>
  139. <td width="20%">
  140. <input type="text" class="form-control mandatory-field" name="zip_code" required="True" t-attf-value="#{zip_code or ''}" placeholder="1030"/>
  141. </td>
  142. <td width="3%"></td>
  143. <td>
  144. <input type="text" class="form-control mandatory-field" name="city" required="True" t-attf-value="#{city or ''}" placeholder="Bruxelles"/>
  145. </td>
  146. </tr>
  147. </table>
  148. </div>
  149. </div>
  150. <div t-attf-class="form-group #{error and 'country_id' in error and 'has-error' or ''}">
  151. <label class="col-md-3 col-sm-4 control-label" style="width:25%" for="country_id">Country</label>
  152. <select name="country_id" class="col-md-7 col-sm-8 form-control " style="width:54%;margin-left:15px">
  153. <option value="">Country...</option>
  154. <t t-foreach="countries or []" t-as="country">
  155. <option t-att-value="country.id" t-att-selected="country.id == int(country_id)"><t t-esc="country.name"/></option>
  156. </t>
  157. </select>
  158. </div>
  159. <div t-attf-class="form-group #{error and 'phone' in error and 'has-error' or ''}">
  160. <label class="col-md-3 col-sm-4 control-label" for="phone">Phone</label>
  161. <div class="col-md-7 col-sm-8 bottom-line" style="padding-bottom:20px">
  162. <input type="text" class="form-control" name="phone" required="True" t-attf-value="#{phone or ''}" placeholder="e.g. (+32).81.81.37.00"/>
  163. </div>
  164. </div>
  165. <div t-attf-class="form-group #{error and 'share_product_id' in error and 'has-error' or ''}">
  166. <label class="col-md-3 col-sm-4 control-label" style="width:25%" for="share_product_id">Parts type</label>
  167. <select id="share_product_id" name="share_product_id" class="col-md-7 col-sm-8 form-control " style="width:54%;margin-left:15px">
  168. <t t-foreach="products or []" t-as="product">
  169. <option t-att-value="product.id" t-att-selected="product.id == int(share_product_id)"><t t-esc="product.short_name"/></option>
  170. </t>
  171. </select>
  172. </div>
  173. <div name="share_div" class="form-group">
  174. <table style="width:80%">
  175. <tr>
  176. <td width="30%">
  177. <label style="text-align:right; width:100%;padding-right:30px">Parts number</label>
  178. </td>
  179. <td width="15%">
  180. <div class="css_quantity input-group oe_website_spinner">
  181. <span class="input-group-addon" style="margin-left:0px">
  182. <a t-attf-href="#" class="mb8 js_add_cart_json">
  183. <i class="fa fa-minus"></i>
  184. </a>
  185. </span>
  186. <input type="text" class="js_quantity form-control" data-min="1" name="ordered_parts" t-attf-value="#{ordered_parts or 1}"/>
  187. <span class="input-group-addon">
  188. <a t-attf-href="#" class="mb8 float_left js_add_cart_json">
  189. <i class="fa fa-plus"></i>
  190. </a>
  191. </span>
  192. </div>
  193. </td>
  194. <td width="5%"> x </td>
  195. <td id="share_price" width="5%">25</td>
  196. <td width="7%" style="text-align:left;margin-right:20px"><span t-esc="company.currency_id.symbol"/></td>
  197. <td width="4%">= </td>
  198. <td width="20%">
  199. <div style="margin-top:12px" t-attf-class="form-group #{error and 'total_parts' in error and 'has-error' or ''}">
  200. <div>
  201. <input type="text" class="form-control total" name="total_parts" value="25" t-att-data-max="company.subscription_maximum_amount"
  202. t-att-readonly="'readonly'"
  203. />
  204. </div>
  205. </div>
  206. </td>
  207. </tr>
  208. </table>
  209. </div>
  210. <div t-if="res_company.allow_id_card_upload" t-attf-class="form-group #{error and 'file' in error and 'has-error' or ''}">
  211. <label class="col-md-3 col-sm-4 control-label" style="width:25%" for="file">Idendity card scan</label>
  212. <div class="col-md-7 col-sm-8">
  213. <input type="file" class="form-control" name="Resume" t-attf-value="#{file or ''}" style="width:50%"/>
  214. </div>
  215. </div>
  216. <div class="bottom-line" style="margin-left:178px;margin-top:0px;width:61%"></div>
  217. <br/>
  218. <div t-attf-class="form-group" >
  219. <label class="col-md-3 col-sm-4 control-label" for="data_policy_approved">Privacy Policy</label>
  220. <div class="col-md-1 col-sm-2">
  221. <input type="checkbox"
  222. class="form-control"
  223. name="data_policy_approved"
  224. required="True"
  225. t-attf-value="#{data_policy_approved or ''}"/>
  226. </div>
  227. <div class="col-md-6 col-sm-6">
  228. <t t-call="easy_my_coop.data_policy_approved_text"/>
  229. </div>
  230. </div>
  231. <div t-attf-class="form-group" >
  232. <label class="col-md-3 col-sm-4 control-label" for="internal_rules_approved">Internal Rules</label>
  233. <div class="col-md-1 col-sm-2">
  234. <input type="checkbox"
  235. class="form-control"
  236. name="internal_rules_approved"
  237. required="True"
  238. t-attf-value="#{internal_rules_approved or ''}"/>
  239. </div>
  240. <div class="col-md-6 col-sm-6">
  241. <t t-call="easy_my_coop.internal_rules_approved_text"/>
  242. </div>
  243. </div>
  244. <table style="margin-left:195px">
  245. <tr>
  246. <td width="80%">
  247. <div class="g-recaptcha" t-att-data-sitekey="website.recaptcha_site_key" data-theme="green"/><br/>
  248. </td>
  249. <td>
  250. <div class="form-group">
  251. <div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
  252. <button class="btn btn-primary btn-lg">Send</button>
  253. </div>
  254. </div>
  255. </td>
  256. </tr>
  257. </table>
  258. <br/>
  259. </form>
  260. </div>
  261. </div>
  262. </div>
  263. <div class="oe_structure"/>
  264. </div>
  265. </t>
  266. </template>
  267. <template id="easy_my_coop.becomecompanycooperator" name="Become Cooperator" page="True">
  268. <t t-call="website.layout">
  269. <div id="wrap">
  270. <div class="oe_structure"/>
  271. <div class="container oe_easymy_coop">
  272. <h2 class="energie">Become Cooperator</h2><br/>
  273. <div class="row">
  274. <div class="col-md-8">
  275. <form action="/subscription/subscribe_share" method="post" class="form-horizontal mt32" enctype="multipart/form-data">
  276. <p style="color:red;"><t t-esc="error_msg"/></p>
  277. <input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
  278. <div t-attf-class="form-group" style="display: none;">
  279. <label>
  280. <input type="checkbox" t-att-checked="logged" name="logged"/>
  281. Logged
  282. </label>
  283. <label>
  284. <input type="checkbox" t-att-value="is_company" checked="checked" name="is_company" />
  285. Is a company?
  286. </label>
  287. </div>
  288. <div t-attf-class="form-group">
  289. <label>
  290. Company Info
  291. </label>
  292. </div>
  293. <div t-attf-class="form-group #{error and 'company_register_number' in error and 'has-error' or ''}">
  294. <label class="col-md-3 col-sm-4 control-label" for="company_register_number">Company Register Number</label>
  295. <div class="col-md-7 col-sm-8">
  296. <input type="text" class="form-control mandatory-field" name="company_register_number" required="True" t-attf-value="#{company_register_number or ''}" placeholder="0647980091"/>
  297. </div>
  298. </div>
  299. <div t-attf-class="form-group #{error and 'company_name' in error and 'has-error' or ''}">
  300. <label class="col-md-3 col-sm-4 control-label" for="company_name">Company name</label>
  301. <div class="col-md-7 col-sm-8">
  302. <input type="text" class="form-control mandatory-field" name="company_name" required="True" t-attf-value="#{company_name or ''}" placeholder="La super coopérative"/>
  303. </div>
  304. </div>
  305. <div t-attf-class="form-group #{error and 'company_type' in error and 'has-error' or ''}">
  306. <label class="col-md-3 col-sm-4 control-label" for="company_type">Company type</label>
  307. <select name="company_type" class="col-md-7 col-sm-8 form-control" required="True" style="width:54%;margin-left:15px">
  308. <option value=""></option>
  309. <t t-foreach="company_types or []" t-as="type">
  310. <option t-att-value="type[0]" t-att-selected="type[0] == company_type"><t t-esc="type[1]"/></option>
  311. </t>
  312. </select>
  313. </div>
  314. <div t-attf-class="form-group #{error and 'company_email' in error and 'has-error' or ''}">
  315. <label class="col-md-3 col-sm-4 control-label" for="company_email">Company email</label>
  316. <div class="col-md-7 col-sm-8">
  317. <input type="text" class="form-control mandatory-field" name="company_email" required="True" t-attf-value="#{company_email or ''}" placeholder="administration@beescoop.be"/>
  318. </div>
  319. </div>
  320. <div t-attf-class="form-group #{error and 'iban' in error and 'has-error' or ''}">
  321. <label class="col-md-3 col-sm-4 control-label" for="iban">Bank Account Number</label>
  322. <div class="col-md-7 col-sm-8">
  323. <input type="text" class="form-control mandatory-field" name="iban" required="True" t-attf-value="#{iban or ''}" placeholder="BE48523080767127"/>
  324. </div>
  325. </div>
  326. <br/>
  327. <div t-attf-class="form-group">
  328. <label>
  329. Main Address
  330. </label>
  331. </div>
  332. <div t-attf-class="form-group #{error and 'address' in error and 'has-error' or ''}">
  333. <label class="col-md-3 col-sm-4 control-label" for="address">Address</label>
  334. <div class="col-md-7 col-sm-8">
  335. <input type="text" class="form-control mandatory-field" name="address" required="True" t-attf-value="#{address or ''}" placeholder="rue Van Hove, 19"/>
  336. </div>
  337. </div>
  338. <div t-attf-class="form-group #{error and 'zip_code' in error and 'has-error' or ''}">
  339. <label class="col-md-3 col-sm-4 control-label" for="zip_code">City</label>
  340. <div class="col-md-7 col-sm-8">
  341. <table>
  342. <tr>
  343. <td width="20%">
  344. <input type="text" class="form-control mandatory-field" name="zip_code" required="True" t-attf-value="#{zip_code or ''}" placeholder="1030"/>
  345. </td>
  346. <td width="3%"></td>
  347. <td>
  348. <input type="text" class="form-control mandatory-field" name="city" required="True" t-attf-value="#{city or ''}" placeholder="Bruxelles"/>
  349. </td>
  350. </tr>
  351. </table>
  352. </div>
  353. </div>
  354. <div t-attf-class="form-group #{error and 'country_id' in error and 'has-error' or ''}">
  355. <label class="col-md-3 col-sm-4 control-label" style="width:25%" for="country_id">Country</label>
  356. <select name="country_id" class="col-md-7 col-sm-8 form-control" style="width:54%;margin-left:15px">
  357. <option value="">Country...</option>
  358. <t t-foreach="countries or []" t-as="country">
  359. <option t-att-value="country.id" t-att-selected="country.id == int(country_id)"><t t-esc="country.name"/></option>
  360. </t>
  361. </select>
  362. </div>
  363. <br/>
  364. <div t-attf-class="form-group">
  365. <label>
  366. Contact Person
  367. </label>
  368. </div>
  369. <div t-attf-class="form-group #{error and 'firstname' in error and 'has-error' or ''}">
  370. <label class="col-md-3 col-sm-4 control-label" for="firstname">First Name</label>
  371. <div class="col-md-7 col-sm-8" style="padding-top:5px">
  372. <input type="text" class="form-control mandatory-field" name="firstname" required="True" t-attf-value="#{firstname or ''}" placeholder="Didier"/>
  373. </div>
  374. </div>
  375. <div t-attf-class="form-group #{error and 'lastname' in error and 'has-error' or ''}">
  376. <label class="col-md-3 col-sm-4 control-label" for="lastname">Last Name</label>
  377. <div class="col-md-7 col-sm-8">
  378. <input type="text" class="form-control mandatory-field" name="lastname" required="True" t-attf-value="#{lastname or ''}" placeholder="Bourdon"/>
  379. </div>
  380. </div>
  381. <div t-attf-class="form-group #{error and 'gender' in error and 'has-error' or ''}">
  382. <label class="col-md-3 col-sm-4 control-label" for="gender">Gender</label>
  383. <select name="gender" class="col-md-7 col-sm-8 form-control" required="True" style="width:54%;margin-left:15px">
  384. <option value=""></option>
  385. <t t-foreach="genders or []" t-as="type">
  386. <option t-att-value="type[0]" t-att-selected="type[0] == gender"><t t-esc="type[1]"/></option>
  387. </t>
  388. </select>
  389. </div>
  390. <div name="email_from_container" t-attf-class="form-group #{error and 'email_from' in error and 'has-error' or ''}">
  391. <label class="col-md-3 col-sm-4 control-label" for="email">Email</label>
  392. <div class="col-md-7 col-sm-8 bottom-line" style="padding-bottom:20px">
  393. <input type="email" class="form-control mandatory-field" name="email" required="True" t-attf-value="#{email or ''}" placeholder="didier.bourdon@bees-coop.be"/>
  394. </div>
  395. </div>
  396. <div t-attf-class="form-group #{error and 'phone' in error and 'has-error' or ''}">
  397. <label class="col-md-3 col-sm-4 control-label" for="phone">Phone</label>
  398. <div class="col-md-7 col-sm-8 bottom-line" style="padding-bottom:20px">
  399. <input type="text" class="form-control" name="phone" required="True" t-attf-value="#{phone or ''}" placeholder="e.g. (+32).81.81.37.00"/>
  400. </div>
  401. </div>
  402. <div t-attf-class="form-group #{error and 'contact_person_function' in error and 'has-error' or ''}">
  403. <label class="col-md-3 col-sm-4 control-label" for="contact_person_function">Function</label>
  404. <div class="col-md-7 col-sm-8">
  405. <input type="text" class="form-control mandatory-field" name="contact_person_function" required="True" t-attf-value="#{contact_person_function or ''}"/>
  406. </div>
  407. </div>
  408. <div t-attf-class="form-group #{error and 'no_registre' in error and 'has-error' or ''}">
  409. <label class="col-md-3 col-sm-4 control-label" for="no_registre">National Register Number</label>
  410. <div class="col-md-7 col-sm-8">
  411. <input type="text" class="form-control mandatory-field" name="no_registre" required="True" t-attf-value="#{no_registre or ''}" placeholder="78230226321"/>
  412. </div>
  413. </div>
  414. <div t-attf-class="form-group #{error and 'birthday' in error and 'has-error' or ''}">
  415. <label class="col-md-3 col-sm-4 control-label" for="birthdate">Birthdate</label>
  416. <div class="col-md-7 col-sm-8">
  417. <input type="text" data-inputmask="'alias': 'date'" class="form-control mandatory-field" name="birthdate" required="True" t-attf-value="#{birthdate or ''}" placeholder="05/03/1978"/>
  418. </div>
  419. </div>
  420. <div t-attf-class="form-group #{error and 'lang' in error and 'has-error' or ''}" >
  421. <label class="col-md-3 col-sm-4 control-label" style="width:25%" for="lang">Language</label>
  422. <select name="lang" class="col-md-7 col-sm-8 form-control " style="width:30%;margin-left:15px">
  423. <option value="2">Language...</option>
  424. <t t-foreach="langs or []" t-as="langue">
  425. <option t-att-value="langue.code" t-att-selected="langue.code == lang"><t t-esc="langue.name"/></option>
  426. </t>
  427. </select>
  428. <br/>
  429. <div class="bottom-line" style="margin-left:25%;margin-top:35px;width:59%"></div>
  430. </div>
  431. <div t-attf-class="form-group #{error and 'product_id' in error and 'has-error' or ''}">
  432. <label class="col-md-3 col-sm-4 control-label" style="width:25%" for="share_product_id">Parts type</label>
  433. <select id="share_product_id" name="share_product_id" class="col-md-7 col-sm-8 form-control " style="width:54%;margin-left:15px">
  434. <t t-foreach="products or []" t-as="product">
  435. <option t-att-value="product.id" t-att-selected="product.id == int(share_product_id)"><t t-esc="product.short_name"/></option>
  436. </t>
  437. </select>
  438. </div>
  439. <div class="form-group">
  440. <table style="width:80%">
  441. <tr>
  442. <td width="30%">
  443. <label style="text-align:right; width:100%;padding-right:30px">Parts number</label>
  444. </td>
  445. <td width="15%">
  446. <div class="css_quantity input-group oe_website_spinner">
  447. <span class="input-group-addon" style="margin-left:0px">
  448. <a t-attf-href="#" class="mb8 js_add_cart_json">
  449. <i class="fa fa-minus"></i>
  450. </a>
  451. </span>
  452. <input type="text" class="js_quantity form-control" data-min="1" name="ordered_parts" t-attf-value="#{ordered_parts or 1}"/>
  453. <span class="input-group-addon">
  454. <a t-attf-href="#" class="mb8 float_left js_add_cart_json">
  455. <i class="fa fa-plus"></i>
  456. </a>
  457. </span>
  458. </div>
  459. </td>
  460. <td width="5%">x </td>
  461. <td id="share_price" width="7%">25</td>
  462. <td width="3%"></td>
  463. <td width="5%">= </td>
  464. <td width="20%">
  465. <div style="margin-top:12px" t-attf-class="form-group #{error and 'total_parts' in error and 'has-error' or ''}">
  466. <div>
  467. <input type="text" class="form-control total" name="total_parts" value="25" data-max="5000"
  468. t-att-readonly="'readonly'"
  469. />
  470. </div>
  471. </div>
  472. </td>
  473. </tr>
  474. </table>
  475. </div>
  476. <div class="bottom-line" style="margin-left:178px;margin-top:0px;width:61%"></div>
  477. <br/>
  478. <div t-attf-class="form-group" >
  479. <label class="col-md-3 col-sm-4 control-label" for="data_policy_approved">Privacy Policy</label>
  480. <div class="col-md-1 col-sm-2">
  481. <input type="checkbox"
  482. class="form-control"
  483. name="data_policy_approved"
  484. required="True"
  485. t-attf-value="#{data_policy_approved or ''}"/>
  486. </div>
  487. <div class="col-md-6 col-sm-6">
  488. <t t-call="easy_my_coop.data_policy_approved_text"/>
  489. </div>
  490. </div>
  491. <div t-attf-class="form-group" >
  492. <label class="col-md-3 col-sm-4 control-label" for="internal_rules_approved">Internal Rules</label>
  493. <div class="col-md-1 col-sm-2">
  494. <input type="checkbox"
  495. class="form-control"
  496. name="internal_rules_approved"
  497. required="True"
  498. t-attf-value="#{internal_rules_approved or ''}"/>
  499. </div>
  500. <div class="col-md-6 col-sm-6">
  501. <t t-call="easy_my_coop.internal_rules_approved_text"/>
  502. </div>
  503. </div>
  504. <div t-attf-class="form-group" >
  505. <div class="col-md-7 col-sm-8">
  506. <table style="margin-left:195px">
  507. <tr>
  508. <td width="80%">
  509. <div class="g-recaptcha" t-att-data-sitekey="website.recaptcha_site_key" data-theme="green"/><br/>
  510. </td>
  511. <td>
  512. <div class="form-group">
  513. <div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
  514. <button class="btn btn-primary btn-lg">Send</button>
  515. </div>
  516. </div>
  517. </td>
  518. </tr>
  519. </table>
  520. </div>
  521. </div>
  522. <br/>
  523. </form>
  524. </div>
  525. </div>
  526. </div>
  527. <div class="oe_structure"/>
  528. </div>
  529. </t>
  530. </template>
  531. <record id="menu_becomecooperator" model="website.menu">
  532. <field name="name">Become cooperator</field>
  533. <field name="url">/page/become_cooperator</field>
  534. <field name="parent_id" ref="website.main_menu"/>
  535. <field name="sequence" type="int">65</field>
  536. </record>
  537. <template id="footer_coop_email_contact" inherit_id="website.footer_default" customize_show="True" name="Coop email contact">
  538. <xpath expr="//span[@t-field='res_company.email']" position="replace">
  539. <span t-field="res_company.coop_email_contact"></span>
  540. </xpath>
  541. </template>
  542. <template id="company_description_coop_email_contact" inherit_id="website.company_description" name="Company Description Email Contact">
  543. <xpath expr="//div[@t-field='res_company.partner_id']" position="replace">
  544. <div t-field="res_company.partner_id" t-field-options='{
  545. "widget": "contact",
  546. "fields": ["name", "address", "phone", "mobile", "fax"]}'/>
  547. <ul class="list-unstyled">
  548. <li t-ignore="true"><i class="fa fa-envelope"></i><span t-field="res_company.coop_email_contact"></span></li>
  549. </ul>
  550. </xpath>
  551. </template>
  552. </data>
  553. <data noupdate="1">
  554. <template id="data_policy_approved_text"
  555. name="Internal Rules Approved Text">
  556. I accept the Data Policy.
  557. </template>
  558. <template id="internal_rules_approved_text"
  559. name="Internal Rules Approved Text">
  560. I accept the Internal Rules.
  561. </template>
  562. </data>
  563. </openerp>