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.

1030 lines
61 KiB

  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/static/src/js/easy_my_coop.js"></script>
  7. <script type="text/javascript"
  8. src="/easy_my_coop/static/src/js/jquery.inputmask.bundle.js"></script>
  9. </xpath>
  10. </template>
  11. <template id="company_operational_offices"
  12. inherit_id="website.company_description"
  13. name="Company Description">
  14. <address itemscope="itemscope" position="inside">
  15. <div class="fa fa-building-o"
  16. t-field="res_company.company_registry"/>
  17. <br/>
  18. <t t-if="res_company.partner_id.bank_ids">
  19. <div class="fa fa-bank"
  20. t-field="res_company.partner_id.bank_ids[0].sanitized_acc_number"/>
  21. </t>
  22. </address>
  23. </template>
  24. <template id="cooperator_thanks" name="Cooperator contact us">
  25. <t t-call="website.layout">
  26. <div id="wrap">
  27. <div class="oe_structure"/>
  28. <div class="container">
  29. <h1>Thanks!</h1>
  30. <div class="row">
  31. <div class="col-md-8">
  32. <div class="alert alert-success">
  33. Your subscription has been successfully
  34. registered.
  35. <button type="button" class="close"
  36. data-dismiss="alert">&amp;times;
  37. </button>
  38. </div>
  39. <p>
  40. We will get back to you shortly.
  41. </p>
  42. <ul class="list-unstyled">
  43. <li>
  44. <i class="fa fa-phone"></i>
  45. :
  46. <span t-field="res_company.phone"/>
  47. </li>
  48. <li>
  49. <i class="fa fa-envelope"></i>
  50. :
  51. <span t-field="res_company.email"/>
  52. </li>
  53. </ul>
  54. </div>
  55. <div class="col-md-4">
  56. <t t-call="website.company_description"/>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="oe_structure"/>
  61. </div>
  62. </t>
  63. </template>
  64. <template id="becomecooperator" name="Become Cooperator">
  65. <t t-call="website.layout">
  66. <div id="wrap">
  67. <div class="oe_structure"/>
  68. <div class="container oe_easymy_coop">
  69. <h2 class="energie">Become Cooperator</h2>
  70. <br/>
  71. <div class="row">
  72. <div class="col-md-8">
  73. <form action="/subscription/subscribe_share"
  74. method="post" class="form-horizontal mt32"
  75. enctype="multipart/form-data">
  76. <p style="color:red;">
  77. <t t-esc="error_msg"/>
  78. </p>
  79. <input type="hidden" name="csrf_token"
  80. t-att-value="request.csrf_token()"/>
  81. <div t-attf-class="form-group">
  82. <a class='btn btn-primary' t-if="logged"
  83. t-attf-href="/my/account">You want to
  84. modify your personnal information ?
  85. </a>
  86. <br/>
  87. </div>
  88. <div t-attf-class="form-group">
  89. <a class='btn btn-primary' t-if="not logged"
  90. t-attf-href="/web/login?redirect=#{ request.httprequest.url }">
  91. You have already an account?
  92. </a>
  93. <br/>
  94. </div>
  95. <div t-attf-class="form-group"
  96. style="display: none;">
  97. <label>
  98. <input type="checkbox"
  99. t-att-checked="logged"
  100. name="logged"/>
  101. Logged
  102. </label>
  103. </div>
  104. <div t-attf-class="form-group"
  105. style="display: none;">
  106. <label>
  107. <input type="checkbox"
  108. t-att-checked="already_cooperator"
  109. name="already_cooperator"/>
  110. Already cooperator?
  111. </label>
  112. </div>
  113. <div name="email_from_container"
  114. t-attf-class="form-group #{error and 'email_from' in error and 'has-error' or ''}">
  115. <label class="col-md-3 col-sm-4 control-label"
  116. for="email">Email
  117. </label>
  118. <div class="col-md-7 col-sm-8 bottom-line"
  119. style="padding-bottom:20px">
  120. <input type="email"
  121. class="form-control mandatory-field"
  122. name="email"
  123. required="True"
  124. t-att-readonly="logged"
  125. t-attf-value="#{email or ''}"
  126. placeholder="didier.bourdon@bees-coop.be"/>
  127. </div>
  128. </div>
  129. <div t-if="not logged"
  130. name="confirm_email_container"
  131. t-attf-class="form-group #{error and 'email_from' in error and 'has-error' or ''}">
  132. <label class="col-md-3 col-sm-4 control-label"
  133. for="confirm_email">Confirm Email
  134. </label>
  135. <div class="col-md-7 col-sm-8 bottom-line"
  136. style="padding-bottom:20px">
  137. <input type="confirm_email"
  138. class="form-control mandatory-field"
  139. name="confirm_email"
  140. t-att-required="logged"
  141. t-att-readonly="logged"
  142. t-attf-value="#{confirm_email or ''}"
  143. placeholder="didier.bourdon@bees-coop.be"/>
  144. </div>
  145. </div>
  146. <div t-attf-class="form-group #{error and 'firstname' in error and 'has-error' or ''}">
  147. <label class="col-md-3 col-sm-4 control-label"
  148. for="firstname">First Name
  149. </label>
  150. <div class="col-md-7 col-sm-8"
  151. style="padding-top:5px">
  152. <input type="text"
  153. class="form-control mandatory-field"
  154. name="firstname"
  155. required="True"
  156. t-att-readonly="logged"
  157. t-attf-value="#{firstname or ''}"
  158. placeholder="Didier"/>
  159. </div>
  160. </div>
  161. <div t-attf-class="form-group #{error and 'lastname' in error and 'has-error' or ''}">
  162. <label class="col-md-3 col-sm-4 control-label"
  163. for="lastname">Last Name
  164. </label>
  165. <div class="col-md-7 col-sm-8">
  166. <input type="text"
  167. class="form-control mandatory-field"
  168. name="lastname"
  169. required="True"
  170. t-att-readonly="logged"
  171. t-attf-value="#{lastname or ''}"
  172. placeholder="Bourdon"/>
  173. </div>
  174. </div>
  175. <div t-attf-class="form-group #{error and 'gender' in error and 'has-error' or ''}">
  176. <label class="col-md-3 col-sm-4 control-label"
  177. for="gender">Gender
  178. </label>
  179. <select name="gender"
  180. class="col-md-7 col-sm-8 form-control"
  181. required="True"
  182. t-att-readonly="logged"
  183. style="width:54%;margin-left:15px">
  184. <option value=""></option>
  185. <t t-foreach="genders or []"
  186. t-as="type">
  187. <option t-att-value="type[0]"
  188. t-att-selected="type[0] == gender">
  189. <t t-esc="type[1]"/>
  190. </option>
  191. </t>
  192. </select>
  193. </div>
  194. <div t-attf-class="form-group #{error and 'birthdate' in error and 'has-error' or ''}">
  195. <label class="col-md-3 col-sm-4 control-label"
  196. for="birthdate">Birthdate
  197. </label>
  198. <div class="col-md-7 col-sm-8">
  199. <input type="text"
  200. data-inputmask="'alias': 'date'"
  201. class="form-control mandatory-field"
  202. name="birthdate" required="True"
  203. t-att-readonly="logged"
  204. t-attf-value="#{birthdate or ''}"
  205. placeholder="05/03/1978"/>
  206. </div>
  207. </div>
  208. <div t-attf-class="form-group #{error and 'iban' in error and 'has-error' or ''}">
  209. <label class="col-md-3 col-sm-4 control-label"
  210. for="iban">Bank Account Number
  211. </label>
  212. <div class="col-md-7 col-sm-8">
  213. <input type="text"
  214. class="form-control mandatory-field"
  215. name="iban"
  216. required="True"
  217. t-att-readonly="logged"
  218. t-attf-value="#{iban or ''}"
  219. placeholder="BE48523080767127"/>
  220. </div>
  221. </div>
  222. <div t-attf-class="form-group #{error and 'lang' in error and 'has-error' or ''}">
  223. <label class="col-md-3 col-sm-4 control-label"
  224. style="width:25%" for="lang">Language
  225. </label>
  226. <select name="lang"
  227. class="col-md-7 col-sm-8 form-control "
  228. t-att-readonly="logged"
  229. style="width:30%;margin-left:15px">
  230. <option value="2">Language...</option>
  231. <t t-foreach="langs or []"
  232. t-as="langue">
  233. <option t-att-value="langue.code"
  234. t-att-selected="langue.code == lang">
  235. <t t-esc="langue.name"/>
  236. </option>
  237. </t>
  238. </select>
  239. <br/>
  240. <div class="bottom-line"
  241. style="margin-left:25%;margin-top:35px;width:59%"></div>
  242. </div>
  243. <div t-attf-class="form-group #{error and 'address' in error and 'has-error' or ''}">
  244. <label class="col-md-3 col-sm-4 control-label"
  245. for="address">Address
  246. </label>
  247. <div class="col-md-7 col-sm-8">
  248. <input type="text"
  249. class="form-control mandatory-field"
  250. name="address"
  251. required="True"
  252. t-att-readonly="logged"
  253. t-attf-value="#{address or ''}"
  254. placeholder="rue Van Hove, 19"/>
  255. </div>
  256. </div>
  257. <div t-attf-class="form-group #{error and 'zip_code' in error and 'has-error' or ''}">
  258. <label class="col-md-3 col-sm-4 control-label"
  259. for="zip_code">City
  260. </label>
  261. <div class="col-md-7 col-sm-8">
  262. <table>
  263. <tr>
  264. <td width="20%">
  265. <input type="text"
  266. class="form-control mandatory-field"
  267. name="zip_code"
  268. required="True"
  269. t-att-readonly="logged"
  270. t-attf-value="#{zip_code or ''}"
  271. placeholder="1030"/>
  272. </td>
  273. <td width="3%"></td>
  274. <td>
  275. <input type="text"
  276. class="form-control mandatory-field"
  277. name="city"
  278. required="True"
  279. t-att-readonly="logged"
  280. t-attf-value="#{city or ''}"
  281. placeholder="Bruxelles"/>
  282. </td>
  283. </tr>
  284. </table>
  285. </div>
  286. </div>
  287. <div t-attf-class="form-group #{error and 'country_id' in error and 'has-error' or ''}">
  288. <label class="col-md-3 col-sm-4 control-label"
  289. style="width:25%" for="country_id">
  290. Country
  291. </label>
  292. <select name="country_id"
  293. class="col-md-7 col-sm-8 form-control "
  294. t-att-readonly="logged"
  295. style="width:54%;margin-left:15px">
  296. <option value="">Country...</option>
  297. <t t-foreach="countries or []"
  298. t-as="country">
  299. <option t-att-value="country.id"
  300. t-att-selected="country.id == int(country_id)">
  301. <t t-esc="country.name"/>
  302. </option>
  303. </t>
  304. </select>
  305. </div>
  306. <div t-attf-class="form-group #{error and 'phone' in error and 'has-error' or ''}">
  307. <label class="col-md-3 col-sm-4 control-label"
  308. for="phone">Phone
  309. </label>
  310. <div class="col-md-7 col-sm-8 bottom-line"
  311. style="padding-bottom:20px">
  312. <input type="text" class="form-control"
  313. name="phone"
  314. required="True"
  315. t-att-readonly="logged"
  316. t-attf-value="#{phone or ''}"
  317. placeholder="e.g. (+32).81.81.37.00"/>
  318. </div>
  319. </div>
  320. <div t-attf-class="form-group #{error and 'share_product_id' in error and 'has-error' or ''}">
  321. <label class="col-md-3 col-sm-4 control-label"
  322. style="width:25%"
  323. for="share_product_id">Parts type
  324. </label>
  325. <select id="share_product_id"
  326. name="share_product_id"
  327. class="col-md-7 col-sm-8 form-control "
  328. style="width:54%;margin-left:15px">
  329. <t t-foreach="products or []"
  330. t-as="product">
  331. <option t-att-value="product.id"
  332. t-att-selected="product.id == int(share_product_id)">
  333. <t t-esc="product.short_name"/>
  334. </option>
  335. </t>
  336. </select>
  337. </div>
  338. <div name="share_div" class="form-group">
  339. <table style="width:80%">
  340. <tr>
  341. <td width="30%">
  342. <label style="text-align:right; width:100%;padding-right:30px">
  343. Parts number
  344. </label>
  345. </td>
  346. <td width="15%">
  347. <div class="css_quantity input-group oe_website_spinner">
  348. <span class="input-group-addon"
  349. style="margin-left:0px">
  350. <a t-attf-href="#"
  351. class="mb8 js_add_cart_json">
  352. <i class="fa fa-minus"></i>
  353. </a>
  354. </span>
  355. <input type="text"
  356. class="js_quantity form-control"
  357. data-min="1"
  358. name="ordered_parts"
  359. t-attf-value="#{ordered_parts or 1}"/>
  360. <span class="input-group-addon">
  361. <a t-attf-href="#"
  362. class="mb8 float_left js_add_cart_json">
  363. <i class="fa fa-plus"></i>
  364. </a>
  365. </span>
  366. </div>
  367. </td>
  368. <td width="5%">x</td>
  369. <td id="share_price" width="5%">25
  370. </td>
  371. <td width="7%"
  372. style="text-align:left;margin-right:20px">
  373. <span t-esc="company.currency_id.symbol"/>
  374. </td>
  375. <td width="4%">=</td>
  376. <td width="20%">
  377. <div style="margin-top:12px"
  378. t-attf-class="form-group #{error and 'total_parts' in error and 'has-error' or ''}">
  379. <div>
  380. <input type="text"
  381. class="form-control total"
  382. name="total_parts"
  383. value="25"
  384. t-att-data-max="company.subscription_maximum_amount"
  385. t-att-readonly="'readonly'"
  386. />
  387. </div>
  388. </div>
  389. </td>
  390. </tr>
  391. </table>
  392. </div>
  393. <div t-if="res_company.allow_id_card_upload"
  394. t-attf-class="form-group #{error and 'file' in error and 'has-error' or ''}">
  395. <label class="col-md-3 col-sm-4 control-label"
  396. style="width:25%" for="file">Idendity
  397. card scan
  398. </label>
  399. <div class="col-md-7 col-sm-8">
  400. <input type="file" class="form-control"
  401. name="Resume"
  402. t-attf-value="#{file or ''}"
  403. style="width:50%"/>
  404. </div>
  405. </div>
  406. <div class="bottom-line"
  407. style="margin-left:178px;margin-top:0px;width:61%"></div>
  408. <br/>
  409. <div id="data_policy_approved"
  410. t-if="display_data_policy"
  411. t-attf-class="form-group">
  412. <label class="col-md-3 col-sm-4 control-label"
  413. for="data_policy_approved">Privacy
  414. Policy
  415. </label>
  416. <div class="col-md-9 col-sm-8">
  417. <div class="checkbox">
  418. <label>
  419. <input type="checkbox"
  420. name="data_policy_approved"
  421. t-att-required="data_policy_required"
  422. t-att-checked="data_policy_approved"/>
  423. <t t-raw="data_policy_text"/>
  424. </label>
  425. </div>
  426. </div>
  427. </div>
  428. <div id="internal_rules_approved"
  429. t-if="display_internal_rules"
  430. t-attf-class="form-group">
  431. <label class="col-md-3 col-sm-4 control-label"
  432. for="internal_rules_approved">
  433. Internal Rules
  434. </label>
  435. <div class="col-md-9 col-sm-8">
  436. <div class="checkbox">
  437. <label>
  438. <input type="checkbox"
  439. name="internal_rules_approved"
  440. t-att-required="internal_rules_required"
  441. t-att-checked="internal_rules_approved"/>
  442. <t t-raw="internal_rules_text"/>
  443. </label>
  444. </div>
  445. </div>
  446. </div>
  447. <table style="margin-left:195px">
  448. <tr>
  449. <td width="80%">
  450. <div class="g-recaptcha"
  451. t-att-data-sitekey="website.recaptcha_key_site"
  452. data-theme="green"/>
  453. <br/>
  454. </td>
  455. <td>
  456. <div class="form-group">
  457. <div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
  458. <button class="btn btn-primary btn-lg">
  459. Send
  460. </button>
  461. </div>
  462. </div>
  463. </td>
  464. </tr>
  465. </table>
  466. <br/>
  467. </form>
  468. </div>
  469. </div>
  470. </div>
  471. <div class="oe_structure"/>
  472. </div>
  473. </t>
  474. </template>
  475. <template id="becomecompanycooperator" name="Become Cooperator">
  476. <t t-call="website.layout">
  477. <div id="wrap">
  478. <div class="oe_structure"/>
  479. <div class="container oe_easymy_coop">
  480. <h2 class="energie">Become Cooperator</h2>
  481. <br/>
  482. <div class="row">
  483. <div class="col-md-8">
  484. <form action="/subscription/subscribe_share"
  485. method="post" class="form-horizontal mt32"
  486. enctype="multipart/form-data">
  487. <p style="color:red;">
  488. <t t-esc="error_msg"/>
  489. </p>
  490. <input type="hidden" name="csrf_token"
  491. t-att-value="request.csrf_token()"/>
  492. <div t-attf-class="form-group"
  493. style="display: none;">
  494. <label>
  495. <input type="checkbox"
  496. t-att-checked="logged"
  497. name="logged"/>
  498. Logged
  499. </label>
  500. <label>
  501. <input type="checkbox"
  502. t-att-value="is_company"
  503. checked="checked"
  504. name="is_company"/>
  505. Is a company?
  506. </label>
  507. </div>
  508. <div t-attf-class="form-group">
  509. <label>
  510. Company Info
  511. </label>
  512. </div>
  513. <div t-attf-class="form-group #{error and 'company_register_number' in error and 'has-error' or ''}">
  514. <label class="col-md-3 col-sm-4 control-label"
  515. for="company_register_number">Company
  516. Register Number
  517. </label>
  518. <div class="col-md-7 col-sm-8">
  519. <input type="text"
  520. class="form-control mandatory-field"
  521. name="company_register_number"
  522. required="True"
  523. t-att-readonly="logged"
  524. t-attf-value="#{company_register_number or ''}"
  525. placeholder="0647980091"/>
  526. </div>
  527. </div>
  528. <div t-attf-class="form-group #{error and 'company_name' in error and 'has-error' or ''}">
  529. <label class="col-md-3 col-sm-4 control-label"
  530. for="company_name">Company name
  531. </label>
  532. <div class="col-md-7 col-sm-8">
  533. <input type="text"
  534. class="form-control mandatory-field"
  535. name="company_name"
  536. required="True"
  537. t-att-readonly="logged"
  538. t-attf-value="#{company_name or ''}"
  539. placeholder="La super coopérative"/>
  540. </div>
  541. </div>
  542. <div t-attf-class="form-group #{error and 'company_type' in error and 'has-error' or ''}">
  543. <label class="col-md-3 col-sm-4 control-label"
  544. for="company_type">Company type
  545. </label>
  546. <select name="company_type"
  547. class="col-md-7 col-sm-8 form-control"
  548. required="True"
  549. t-att-readonly="logged"
  550. style="width:54%;margin-left:15px">
  551. <option value=""></option>
  552. <t t-foreach="company_types or []"
  553. t-as="type">
  554. <option t-att-value="type[0]"
  555. t-att-selected="type[0] == company_type">
  556. <t t-esc="type[1]"/>
  557. </option>
  558. </t>
  559. </select>
  560. </div>
  561. <div t-attf-class="form-group #{error and 'company_email' in error and 'has-error' or ''}">
  562. <label class="col-md-3 col-sm-4 control-label"
  563. for="company_email">Company email
  564. </label>
  565. <div class="col-md-7 col-sm-8">
  566. <input type="text"
  567. class="form-control mandatory-field"
  568. name="company_email"
  569. required="True"
  570. t-attf-value="#{company_email or ''}"
  571. placeholder="administration@beescoop.be"/>
  572. </div>
  573. </div>
  574. <div t-if="not logged"
  575. t-attf-class="form-group #{error and 'email_from' in error and 'has-error' or ''}">
  576. <label class="col-md-3 col-sm-4 control-label"
  577. for="confirm_email">Confirm Email
  578. </label>
  579. <div class="col-md-7 col-sm-8 bottom-line"
  580. style="padding-bottom:20px">
  581. <input type="confirm_email"
  582. class="form-control mandatory-field"
  583. name="confirm_email"
  584. t-att-required="not logged"
  585. t-att-readonly="logged"
  586. t-attf-value="#{confirm_email or ''}"
  587. placeholder="didier.bourdon@bees-coop.be"/>
  588. </div>
  589. </div>
  590. <div t-attf-class="form-group #{error and 'iban' in error and 'has-error' or ''}">
  591. <label class="col-md-3 col-sm-4 control-label"
  592. for="iban">Bank Account Number
  593. </label>
  594. <div class="col-md-7 col-sm-8">
  595. <input type="text"
  596. class="form-control mandatory-field"
  597. name="iban"
  598. required="True"
  599. t-att-readonly="logged"
  600. t-attf-value="#{iban or ''}"
  601. placeholder="BE48523080767127"/>
  602. </div>
  603. </div>
  604. <br/>
  605. <div t-attf-class="form-group">
  606. <label>
  607. Main Address
  608. </label>
  609. </div>
  610. <div t-attf-class="form-group #{error and 'address' in error and 'has-error' or ''}">
  611. <label class="col-md-3 col-sm-4 control-label"
  612. for="address">Address
  613. </label>
  614. <div class="col-md-7 col-sm-8">
  615. <input type="text"
  616. class="form-control mandatory-field"
  617. name="address"
  618. required="True"
  619. t-att-readonly="logged"
  620. t-attf-value="#{address or ''}"
  621. placeholder="rue Van Hove, 19"/>
  622. </div>
  623. </div>
  624. <div t-attf-class="form-group #{error and 'zip_code' in error and 'has-error' or ''}">
  625. <label class="col-md-3 col-sm-4 control-label"
  626. for="zip_code">City
  627. </label>
  628. <div class="col-md-7 col-sm-8">
  629. <table>
  630. <tr>
  631. <td width="20%">
  632. <input type="text"
  633. class="form-control mandatory-field"
  634. name="zip_code"
  635. required="True"
  636. t-att-readonly="logged"
  637. t-attf-value="#{zip_code or ''}"
  638. placeholder="1030"/>
  639. </td>
  640. <td width="3%"></td>
  641. <td>
  642. <input type="text"
  643. class="form-control mandatory-field"
  644. name="city"
  645. required="True"
  646. t-att-readonly="logged"
  647. t-attf-value="#{city or ''}"
  648. placeholder="Bruxelles"/>
  649. </td>
  650. </tr>
  651. </table>
  652. </div>
  653. </div>
  654. <div t-attf-class="form-group #{error and 'country_id' in error and 'has-error' or ''}">
  655. <label class="col-md-3 col-sm-4 control-label"
  656. style="width:25%" for="country_id">
  657. Country
  658. </label>
  659. <select name="country_id"
  660. class="col-md-7 col-sm-8 form-control"
  661. t-att-readonly="logged"
  662. style="width:54%;margin-left:15px">
  663. <option value="">Country...</option>
  664. <t t-foreach="countries or []"
  665. t-as="country">
  666. <option t-att-value="country.id"
  667. t-att-selected="country.id == int(country_id)">
  668. <t t-esc="country.name"/>
  669. </option>
  670. </t>
  671. </select>
  672. </div>
  673. <br/>
  674. <div t-attf-class="form-group">
  675. <label>
  676. Contact Person
  677. </label>
  678. </div>
  679. <div t-attf-class="form-group #{error and 'firstname' in error and 'has-error' or ''}">
  680. <label class="col-md-3 col-sm-4 control-label"
  681. for="firstname">First Name
  682. </label>
  683. <div class="col-md-7 col-sm-8"
  684. style="padding-top:5px">
  685. <input type="text"
  686. class="form-control mandatory-field"
  687. name="firstname"
  688. required="True"
  689. t-att-readonly="logged"
  690. t-attf-value="#{firstname or ''}"
  691. placeholder="Didier"/>
  692. </div>
  693. </div>
  694. <div t-attf-class="form-group #{error and 'lastname' in error and 'has-error' or ''}">
  695. <label class="col-md-3 col-sm-4 control-label"
  696. for="lastname">Last Name
  697. </label>
  698. <div class="col-md-7 col-sm-8">
  699. <input type="text"
  700. class="form-control mandatory-field"
  701. name="lastname"
  702. required="True"
  703. t-att-readonly="logged"
  704. t-attf-value="#{lastname or ''}"
  705. placeholder="Bourdon"/>
  706. </div>
  707. </div>
  708. <div t-attf-class="form-group #{error and 'gender' in error and 'has-error' or ''}">
  709. <label class="col-md-3 col-sm-4 control-label"
  710. for="gender">Gender
  711. </label>
  712. <select name="gender"
  713. class="col-md-7 col-sm-8 form-control"
  714. required="True"
  715. t-att-readonly="logged"
  716. style="width:54%;margin-left:15px">
  717. <option value=""></option>
  718. <t t-foreach="genders or []"
  719. t-as="type">
  720. <option t-att-value="type[0]"
  721. t-att-selected="type[0] == gender">
  722. <t t-esc="type[1]"/>
  723. </option>
  724. </t>
  725. </select>
  726. </div>
  727. <div name="email_from_container"
  728. t-attf-class="form-group #{error and 'email_from' in error and 'has-error' or ''}">
  729. <label class="col-md-3 col-sm-4 control-label"
  730. for="email">Email
  731. </label>
  732. <div class="col-md-7 col-sm-8 bottom-line"
  733. style="padding-bottom:20px">
  734. <input type="email"
  735. class="form-control mandatory-field"
  736. name="email"
  737. required="True"
  738. t-att-readonly="logged"
  739. t-attf-value="#{email or ''}"
  740. placeholder="didier.bourdon@bees-coop.be"/>
  741. </div>
  742. </div>
  743. <div t-attf-class="form-group #{error and 'phone' in error and 'has-error' or ''}">
  744. <label class="col-md-3 col-sm-4 control-label"
  745. for="phone">Phone
  746. </label>
  747. <div class="col-md-7 col-sm-8 bottom-line"
  748. style="padding-bottom:20px">
  749. <input type="text" class="form-control"
  750. name="phone"
  751. required="True"
  752. t-att-readonly="logged"
  753. t-attf-value="#{phone or ''}"
  754. placeholder="e.g. (+32).81.81.37.00"/>
  755. </div>
  756. </div>
  757. <div t-attf-class="form-group #{error and 'contact_person_function' in error and 'has-error' or ''}">
  758. <label class="col-md-3 col-sm-4 control-label"
  759. for="contact_person_function">
  760. Function
  761. </label>
  762. <div class="col-md-7 col-sm-8">
  763. <input type="text"
  764. class="form-control mandatory-field"
  765. name="contact_person_function"
  766. required="True"
  767. t-att-readonly="logged"
  768. t-attf-value="#{contact_person_function or ''}"/>
  769. </div>
  770. </div>
  771. <div t-attf-class="form-group #{error and 'birthday' in error and 'has-error' or ''}">
  772. <label class="col-md-3 col-sm-4 control-label"
  773. for="birthdate">Birthdate
  774. </label>
  775. <div class="col-md-7 col-sm-8">
  776. <input type="text"
  777. data-inputmask="'alias': 'date'"
  778. class="form-control mandatory-field"
  779. name="birthdate" required="True"
  780. t-att-readonly="logged"
  781. t-attf-value="#{birthdate or ''}"
  782. placeholder="05/03/1978"/>
  783. </div>
  784. </div>
  785. <div t-attf-class="form-group #{error and 'lang' in error and 'has-error' or ''}">
  786. <label class="col-md-3 col-sm-4 control-label"
  787. style="width:25%" for="lang">Language
  788. </label>
  789. <select name="lang"
  790. class="col-md-7 col-sm-8 form-control"
  791. t-att-readonly="logged"
  792. style="width:30%;margin-left:15px">
  793. <option value="2">Language...</option>
  794. <t t-foreach="langs or []"
  795. t-as="langue">
  796. <option t-att-value="langue.code"
  797. t-att-selected="langue.code == lang">
  798. <t t-esc="langue.name"/>
  799. </option>
  800. </t>
  801. </select>
  802. <br/>
  803. <div class="bottom-line"
  804. style="margin-left:25%;margin-top:35px;width:59%"></div>
  805. </div>
  806. <div t-attf-class="form-group #{error and 'product_id' in error and 'has-error' or ''}">
  807. <label class="col-md-3 col-sm-4 control-label"
  808. style="width:25%"
  809. for="share_product_id">Parts type
  810. </label>
  811. <select id="share_product_id"
  812. name="share_product_id"
  813. class="col-md-7 col-sm-8 form-control "
  814. style="width:54%;margin-left:15px">
  815. <t t-foreach="products or []"
  816. t-as="product">
  817. <option t-att-value="product.id"
  818. t-att-selected="product.id == int(share_product_id)">
  819. <t t-esc="product.short_name"/>
  820. </option>
  821. </t>
  822. </select>
  823. </div>
  824. <div name="share_div" class="form-group">
  825. <table style="width:80%">
  826. <tr>
  827. <td width="30%">
  828. <label style="text-align:right; width:100%;padding-right:30px">
  829. Parts number
  830. </label>
  831. </td>
  832. <td width="15%">
  833. <div class="css_quantity input-group oe_website_spinner">
  834. <span class="input-group-addon"
  835. style="margin-left:0px">
  836. <a t-attf-href="#"
  837. class="mb8 js_add_cart_json">
  838. <i class="fa fa-minus"></i>
  839. </a>
  840. </span>
  841. <input type="text"
  842. class="js_quantity form-control"
  843. data-min="1"
  844. name="ordered_parts"
  845. t-attf-value="#{ordered_parts or 1}"/>
  846. <span class="input-group-addon">
  847. <a t-attf-href="#"
  848. class="mb8 float_left js_add_cart_json">
  849. <i class="fa fa-plus"></i>
  850. </a>
  851. </span>
  852. </div>
  853. </td>
  854. <td width="5%">x</td>
  855. <td id="share_price" width="7%">25
  856. </td>
  857. <td width="3%"></td>
  858. <td width="5%">=</td>
  859. <td width="20%">
  860. <div style="margin-top:12px"
  861. t-attf-class="form-group #{error and 'total_parts' in error and 'has-error' or ''}">
  862. <div>
  863. <input type="text"
  864. class="form-control total"
  865. name="total_parts"
  866. value="25"
  867. data-max="5000"
  868. t-att-readonly="'readonly'"
  869. />
  870. </div>
  871. </div>
  872. </td>
  873. </tr>
  874. </table>
  875. </div>
  876. <div class="bottom-line"
  877. style="margin-left:178px;margin-top:0px;width:61%"></div>
  878. <br/>
  879. <div id="data_policy_approved"
  880. t-if="display_data_policy"
  881. t-attf-class="form-group">
  882. <label class="col-md-3 col-sm-4 control-label"
  883. for="data_policy_approved">Privacy
  884. Policy
  885. </label>
  886. <div class="col-md-9 col-sm-8">
  887. <div class="checkbox">
  888. <label>
  889. <input type="checkbox"
  890. name="data_policy_approved"
  891. t-att-required="data_policy_required"
  892. t-att-checked="data_policy_approved"/>
  893. <t t-raw="data_policy_text"/>
  894. </label>
  895. </div>
  896. </div>
  897. </div>
  898. <div id="internal_rules_approved"
  899. t-if="display_internal_rules"
  900. t-attf-class="form-group">
  901. <label class="col-md-3 col-sm-4 control-label"
  902. for="internal_rules_approved">
  903. Internal Rules
  904. </label>
  905. <div class="col-md-9 col-sm-8">
  906. <div class="checkbox">
  907. <label>
  908. <input type="checkbox"
  909. name="internal_rules_approved"
  910. t-att-required="internal_rules_required"
  911. t-att-checked="internal_rules_approved"/>
  912. <t t-raw="internal_rules_text"/>
  913. </label>
  914. </div>
  915. </div>
  916. </div>
  917. <table style="margin-left:195px">
  918. <tr>
  919. <td width="80%">
  920. <div class="g-recaptcha"
  921. t-att-data-sitekey="website.recaptcha_key_site"
  922. data-theme="green"/>
  923. <br/>
  924. </td>
  925. <td>
  926. <div class="form-group">
  927. <div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
  928. <button class="btn btn-primary btn-lg">
  929. Send
  930. </button>
  931. </div>
  932. </div>
  933. </td>
  934. </tr>
  935. </table>
  936. <br/>
  937. </form>
  938. </div>
  939. </div>
  940. </div>
  941. <div class="oe_structure"/>
  942. </div>
  943. </t>
  944. </template>
  945. <record id="menu_becomecooperator" model="website.menu">
  946. <field name="name">Become cooperator</field>
  947. <field name="url">/page/become_cooperator</field>
  948. <field name="parent_id" ref="website.main_menu"/>
  949. <field name="sequence" type="int">65</field>
  950. </record>
  951. <!--<template id="footer_coop_email_contact" inherit_id="website.footer_default" customize_show="True" name="Coop email contact">
  952. <xpath expr="//span[@t-field='res_company.email']" position="replace">
  953. <span t-field="res_company.coop_email_contact"></span>
  954. </xpath>
  955. </template>-->
  956. <template id="company_description_coop_email_contact"
  957. inherit_id="website.company_description"
  958. name="Company Description Email Contact">
  959. <xpath expr="//div[@t-field='res_company.partner_id']"
  960. position="replace">
  961. <div t-field="res_company.partner_id" t-field-options='{
  962. "widget": "contact",
  963. "fields": ["name", "address", "phone", "mobile", "fax"]}'/>
  964. <ul class="list-unstyled">
  965. <li t-ignore="true">
  966. <i class="fa fa-envelope"></i>
  967. <span t-field="res_company.coop_email_contact"></span>
  968. </li>
  969. </ul>
  970. </xpath>
  971. </template>
  972. </odoo>