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.

1031 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-if="website.recaptcha_key_site"
  452. t-att-data-sitekey="website.recaptcha_key_site"
  453. data-theme="green"/>
  454. <br/>
  455. </td>
  456. <td>
  457. <div class="form-group">
  458. <div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
  459. <button class="btn btn-primary btn-lg">
  460. Send
  461. </button>
  462. </div>
  463. </div>
  464. </td>
  465. </tr>
  466. </table>
  467. <br/>
  468. </form>
  469. </div>
  470. </div>
  471. </div>
  472. <div class="oe_structure"/>
  473. </div>
  474. </t>
  475. </template>
  476. <template id="becomecompanycooperator" name="Become Cooperator">
  477. <t t-call="website.layout">
  478. <div id="wrap">
  479. <div class="oe_structure"/>
  480. <div class="container oe_easymy_coop">
  481. <h2 class="energie">Become Cooperator</h2>
  482. <br/>
  483. <div class="row">
  484. <div class="col-md-8">
  485. <form action="/subscription/subscribe_share"
  486. method="post" class="form-horizontal mt32"
  487. enctype="multipart/form-data">
  488. <p style="color:red;">
  489. <t t-esc="error_msg"/>
  490. </p>
  491. <input type="hidden" name="csrf_token"
  492. t-att-value="request.csrf_token()"/>
  493. <div t-attf-class="form-group"
  494. style="display: none;">
  495. <label>
  496. <input type="checkbox"
  497. t-att-checked="logged"
  498. name="logged"/>
  499. Logged
  500. </label>
  501. <label>
  502. <input type="checkbox"
  503. t-att-value="is_company"
  504. checked="checked"
  505. name="is_company"/>
  506. Is a company?
  507. </label>
  508. </div>
  509. <div t-attf-class="form-group">
  510. <label>
  511. Company Info
  512. </label>
  513. </div>
  514. <div t-attf-class="form-group #{error and 'company_register_number' in error and 'has-error' or ''}">
  515. <label class="col-md-3 col-sm-4 control-label"
  516. for="company_register_number">Company
  517. Register Number
  518. </label>
  519. <div class="col-md-7 col-sm-8">
  520. <input type="text"
  521. class="form-control mandatory-field"
  522. name="company_register_number"
  523. required="True"
  524. t-att-readonly="logged"
  525. t-attf-value="#{company_register_number or ''}"
  526. placeholder="0647980091"/>
  527. </div>
  528. </div>
  529. <div t-attf-class="form-group #{error and 'company_name' in error and 'has-error' or ''}">
  530. <label class="col-md-3 col-sm-4 control-label"
  531. for="company_name">Company name
  532. </label>
  533. <div class="col-md-7 col-sm-8">
  534. <input type="text"
  535. class="form-control mandatory-field"
  536. name="company_name"
  537. required="True"
  538. t-att-readonly="logged"
  539. t-attf-value="#{company_name or ''}"
  540. placeholder="La super coopérative"/>
  541. </div>
  542. </div>
  543. <div t-attf-class="form-group #{error and 'company_type' in error and 'has-error' or ''}">
  544. <label class="col-md-3 col-sm-4 control-label"
  545. for="company_type">Company type
  546. </label>
  547. <select name="company_type"
  548. class="col-md-7 col-sm-8 form-control"
  549. required="True"
  550. t-att-readonly="logged"
  551. style="width:54%;margin-left:15px">
  552. <option value=""></option>
  553. <t t-foreach="company_types or []"
  554. t-as="type">
  555. <option t-att-value="type[0]"
  556. t-att-selected="type[0] == company_type">
  557. <t t-esc="type[1]"/>
  558. </option>
  559. </t>
  560. </select>
  561. </div>
  562. <div t-attf-class="form-group #{error and 'company_email' in error and 'has-error' or ''}">
  563. <label class="col-md-3 col-sm-4 control-label"
  564. for="company_email">Company email
  565. </label>
  566. <div class="col-md-7 col-sm-8">
  567. <input type="text"
  568. class="form-control mandatory-field"
  569. name="company_email"
  570. required="True"
  571. t-attf-value="#{company_email or ''}"
  572. placeholder="administration@beescoop.be"/>
  573. </div>
  574. </div>
  575. <div t-if="not logged"
  576. t-attf-class="form-group #{error and 'email_from' in error and 'has-error' or ''}">
  577. <label class="col-md-3 col-sm-4 control-label"
  578. for="confirm_email">Confirm Email
  579. </label>
  580. <div class="col-md-7 col-sm-8 bottom-line"
  581. style="padding-bottom:20px">
  582. <input type="confirm_email"
  583. class="form-control mandatory-field"
  584. name="confirm_email"
  585. t-att-required="not logged"
  586. t-att-readonly="logged"
  587. t-attf-value="#{confirm_email or ''}"
  588. placeholder="didier.bourdon@bees-coop.be"/>
  589. </div>
  590. </div>
  591. <div t-attf-class="form-group #{error and 'iban' in error and 'has-error' or ''}">
  592. <label class="col-md-3 col-sm-4 control-label"
  593. for="iban">Bank Account Number
  594. </label>
  595. <div class="col-md-7 col-sm-8">
  596. <input type="text"
  597. class="form-control mandatory-field"
  598. name="iban"
  599. required="True"
  600. t-att-readonly="logged"
  601. t-attf-value="#{iban or ''}"
  602. placeholder="BE48523080767127"/>
  603. </div>
  604. </div>
  605. <br/>
  606. <div t-attf-class="form-group">
  607. <label>
  608. Main Address
  609. </label>
  610. </div>
  611. <div t-attf-class="form-group #{error and 'address' in error and 'has-error' or ''}">
  612. <label class="col-md-3 col-sm-4 control-label"
  613. for="address">Address
  614. </label>
  615. <div class="col-md-7 col-sm-8">
  616. <input type="text"
  617. class="form-control mandatory-field"
  618. name="address"
  619. required="True"
  620. t-att-readonly="logged"
  621. t-attf-value="#{address or ''}"
  622. placeholder="rue Van Hove, 19"/>
  623. </div>
  624. </div>
  625. <div t-attf-class="form-group #{error and 'zip_code' in error and 'has-error' or ''}">
  626. <label class="col-md-3 col-sm-4 control-label"
  627. for="zip_code">City
  628. </label>
  629. <div class="col-md-7 col-sm-8">
  630. <table>
  631. <tr>
  632. <td width="20%">
  633. <input type="text"
  634. class="form-control mandatory-field"
  635. name="zip_code"
  636. required="True"
  637. t-att-readonly="logged"
  638. t-attf-value="#{zip_code or ''}"
  639. placeholder="1030"/>
  640. </td>
  641. <td width="3%"></td>
  642. <td>
  643. <input type="text"
  644. class="form-control mandatory-field"
  645. name="city"
  646. required="True"
  647. t-att-readonly="logged"
  648. t-attf-value="#{city or ''}"
  649. placeholder="Bruxelles"/>
  650. </td>
  651. </tr>
  652. </table>
  653. </div>
  654. </div>
  655. <div t-attf-class="form-group #{error and 'country_id' in error and 'has-error' or ''}">
  656. <label class="col-md-3 col-sm-4 control-label"
  657. style="width:25%" for="country_id">
  658. Country
  659. </label>
  660. <select name="country_id"
  661. class="col-md-7 col-sm-8 form-control"
  662. t-att-readonly="logged"
  663. style="width:54%;margin-left:15px">
  664. <option value="">Country...</option>
  665. <t t-foreach="countries or []"
  666. t-as="country">
  667. <option t-att-value="country.id"
  668. t-att-selected="country.id == int(country_id)">
  669. <t t-esc="country.name"/>
  670. </option>
  671. </t>
  672. </select>
  673. </div>
  674. <br/>
  675. <div t-attf-class="form-group">
  676. <label>
  677. Contact Person
  678. </label>
  679. </div>
  680. <div t-attf-class="form-group #{error and 'firstname' in error and 'has-error' or ''}">
  681. <label class="col-md-3 col-sm-4 control-label"
  682. for="firstname">First Name
  683. </label>
  684. <div class="col-md-7 col-sm-8"
  685. style="padding-top:5px">
  686. <input type="text"
  687. class="form-control mandatory-field"
  688. name="firstname"
  689. required="True"
  690. t-att-readonly="logged"
  691. t-attf-value="#{firstname or ''}"
  692. placeholder="Didier"/>
  693. </div>
  694. </div>
  695. <div t-attf-class="form-group #{error and 'lastname' in error and 'has-error' or ''}">
  696. <label class="col-md-3 col-sm-4 control-label"
  697. for="lastname">Last Name
  698. </label>
  699. <div class="col-md-7 col-sm-8">
  700. <input type="text"
  701. class="form-control mandatory-field"
  702. name="lastname"
  703. required="True"
  704. t-att-readonly="logged"
  705. t-attf-value="#{lastname or ''}"
  706. placeholder="Bourdon"/>
  707. </div>
  708. </div>
  709. <div t-attf-class="form-group #{error and 'gender' in error and 'has-error' or ''}">
  710. <label class="col-md-3 col-sm-4 control-label"
  711. for="gender">Gender
  712. </label>
  713. <select name="gender"
  714. class="col-md-7 col-sm-8 form-control"
  715. required="True"
  716. t-att-readonly="logged"
  717. style="width:54%;margin-left:15px">
  718. <option value=""></option>
  719. <t t-foreach="genders or []"
  720. t-as="type">
  721. <option t-att-value="type[0]"
  722. t-att-selected="type[0] == gender">
  723. <t t-esc="type[1]"/>
  724. </option>
  725. </t>
  726. </select>
  727. </div>
  728. <div name="email_from_container"
  729. t-attf-class="form-group #{error and 'email_from' in error and 'has-error' or ''}">
  730. <label class="col-md-3 col-sm-4 control-label"
  731. for="email">Email
  732. </label>
  733. <div class="col-md-7 col-sm-8 bottom-line"
  734. style="padding-bottom:20px">
  735. <input type="email"
  736. class="form-control mandatory-field"
  737. name="email"
  738. required="True"
  739. t-att-readonly="logged"
  740. t-attf-value="#{email or ''}"
  741. placeholder="didier.bourdon@bees-coop.be"/>
  742. </div>
  743. </div>
  744. <div t-attf-class="form-group #{error and 'phone' in error and 'has-error' or ''}">
  745. <label class="col-md-3 col-sm-4 control-label"
  746. for="phone">Phone
  747. </label>
  748. <div class="col-md-7 col-sm-8 bottom-line"
  749. style="padding-bottom:20px">
  750. <input type="text" class="form-control"
  751. name="phone"
  752. required="True"
  753. t-att-readonly="logged"
  754. t-attf-value="#{phone or ''}"
  755. placeholder="e.g. (+32).81.81.37.00"/>
  756. </div>
  757. </div>
  758. <div t-attf-class="form-group #{error and 'contact_person_function' in error and 'has-error' or ''}">
  759. <label class="col-md-3 col-sm-4 control-label"
  760. for="contact_person_function">
  761. Function
  762. </label>
  763. <div class="col-md-7 col-sm-8">
  764. <input type="text"
  765. class="form-control mandatory-field"
  766. name="contact_person_function"
  767. required="True"
  768. t-att-readonly="logged"
  769. t-attf-value="#{contact_person_function or ''}"/>
  770. </div>
  771. </div>
  772. <div t-attf-class="form-group #{error and 'birthday' in error and 'has-error' or ''}">
  773. <label class="col-md-3 col-sm-4 control-label"
  774. for="birthdate">Birthdate
  775. </label>
  776. <div class="col-md-7 col-sm-8">
  777. <input type="text"
  778. data-inputmask="'alias': 'date'"
  779. class="form-control mandatory-field"
  780. name="birthdate" required="True"
  781. t-att-readonly="logged"
  782. t-attf-value="#{birthdate or ''}"
  783. placeholder="05/03/1978"/>
  784. </div>
  785. </div>
  786. <div t-attf-class="form-group #{error and 'lang' in error and 'has-error' or ''}">
  787. <label class="col-md-3 col-sm-4 control-label"
  788. style="width:25%" for="lang">Language
  789. </label>
  790. <select name="lang"
  791. class="col-md-7 col-sm-8 form-control"
  792. t-att-readonly="logged"
  793. style="width:30%;margin-left:15px">
  794. <option value="2">Language...</option>
  795. <t t-foreach="langs or []"
  796. t-as="langue">
  797. <option t-att-value="langue.code"
  798. t-att-selected="langue.code == lang">
  799. <t t-esc="langue.name"/>
  800. </option>
  801. </t>
  802. </select>
  803. <br/>
  804. <div class="bottom-line"
  805. style="margin-left:25%;margin-top:35px;width:59%"></div>
  806. </div>
  807. <div t-attf-class="form-group #{error and 'product_id' in error and 'has-error' or ''}">
  808. <label class="col-md-3 col-sm-4 control-label"
  809. style="width:25%"
  810. for="share_product_id">Parts type
  811. </label>
  812. <select id="share_product_id"
  813. name="share_product_id"
  814. class="col-md-7 col-sm-8 form-control "
  815. style="width:54%;margin-left:15px">
  816. <t t-foreach="products or []"
  817. t-as="product">
  818. <option t-att-value="product.id"
  819. t-att-selected="product.id == int(share_product_id)">
  820. <t t-esc="product.short_name"/>
  821. </option>
  822. </t>
  823. </select>
  824. </div>
  825. <div name="share_div" class="form-group">
  826. <table style="width:80%">
  827. <tr>
  828. <td width="30%">
  829. <label style="text-align:right; width:100%;padding-right:30px">
  830. Parts number
  831. </label>
  832. </td>
  833. <td width="15%">
  834. <div class="css_quantity input-group oe_website_spinner">
  835. <span class="input-group-addon"
  836. style="margin-left:0px">
  837. <a t-attf-href="#"
  838. class="mb8 js_add_cart_json">
  839. <i class="fa fa-minus"></i>
  840. </a>
  841. </span>
  842. <input type="text"
  843. class="js_quantity form-control"
  844. data-min="1"
  845. name="ordered_parts"
  846. t-attf-value="#{ordered_parts or 1}"/>
  847. <span class="input-group-addon">
  848. <a t-attf-href="#"
  849. class="mb8 float_left js_add_cart_json">
  850. <i class="fa fa-plus"></i>
  851. </a>
  852. </span>
  853. </div>
  854. </td>
  855. <td width="5%">x</td>
  856. <td id="share_price" width="7%">25
  857. </td>
  858. <td width="3%"></td>
  859. <td width="5%">=</td>
  860. <td width="20%">
  861. <div style="margin-top:12px"
  862. t-attf-class="form-group #{error and 'total_parts' in error and 'has-error' or ''}">
  863. <div>
  864. <input type="text"
  865. class="form-control total"
  866. name="total_parts"
  867. value="25"
  868. data-max="5000"
  869. t-att-readonly="'readonly'"
  870. />
  871. </div>
  872. </div>
  873. </td>
  874. </tr>
  875. </table>
  876. </div>
  877. <div class="bottom-line"
  878. style="margin-left:178px;margin-top:0px;width:61%"></div>
  879. <br/>
  880. <div id="data_policy_approved"
  881. t-if="display_data_policy"
  882. t-attf-class="form-group">
  883. <label class="col-md-3 col-sm-4 control-label"
  884. for="data_policy_approved">Privacy
  885. Policy
  886. </label>
  887. <div class="col-md-9 col-sm-8">
  888. <div class="checkbox">
  889. <label>
  890. <input type="checkbox"
  891. name="data_policy_approved"
  892. t-att-required="data_policy_required"
  893. t-att-checked="data_policy_approved"/>
  894. <t t-raw="data_policy_text"/>
  895. </label>
  896. </div>
  897. </div>
  898. </div>
  899. <div id="internal_rules_approved"
  900. t-if="display_internal_rules"
  901. t-attf-class="form-group">
  902. <label class="col-md-3 col-sm-4 control-label"
  903. for="internal_rules_approved">
  904. Internal Rules
  905. </label>
  906. <div class="col-md-9 col-sm-8">
  907. <div class="checkbox">
  908. <label>
  909. <input type="checkbox"
  910. name="internal_rules_approved"
  911. t-att-required="internal_rules_required"
  912. t-att-checked="internal_rules_approved"/>
  913. <t t-raw="internal_rules_text"/>
  914. </label>
  915. </div>
  916. </div>
  917. </div>
  918. <table style="margin-left:195px">
  919. <tr>
  920. <td width="80%">
  921. <div class="g-recaptcha"
  922. t-att-data-sitekey="website.recaptcha_key_site"
  923. data-theme="green"/>
  924. <br/>
  925. </td>
  926. <td>
  927. <div class="form-group">
  928. <div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
  929. <button class="btn btn-primary btn-lg">
  930. Send
  931. </button>
  932. </div>
  933. </div>
  934. </td>
  935. </tr>
  936. </table>
  937. <br/>
  938. </form>
  939. </div>
  940. </div>
  941. </div>
  942. <div class="oe_structure"/>
  943. </div>
  944. </t>
  945. </template>
  946. <record id="menu_becomecooperator" model="website.menu">
  947. <field name="name">Become cooperator</field>
  948. <field name="url">/page/become_cooperator</field>
  949. <field name="parent_id" ref="website.main_menu"/>
  950. <field name="sequence" type="int">65</field>
  951. </record>
  952. <!--<template id="footer_coop_email_contact" inherit_id="website.footer_default" customize_show="True" name="Coop email contact">
  953. <xpath expr="//span[@t-field='res_company.email']" position="replace">
  954. <span t-field="res_company.coop_email_contact"></span>
  955. </xpath>
  956. </template>-->
  957. <template id="company_description_coop_email_contact"
  958. inherit_id="website.company_description"
  959. name="Company Description Email Contact">
  960. <xpath expr="//div[@t-field='res_company.partner_id']"
  961. position="replace">
  962. <div t-field="res_company.partner_id" t-field-options='{
  963. "widget": "contact",
  964. "fields": ["name", "address", "phone", "mobile", "fax"]}'/>
  965. <ul class="list-unstyled">
  966. <li t-ignore="true">
  967. <i class="fa fa-envelope"></i>
  968. <span t-field="res_company.coop_email_contact"></span>
  969. </li>
  970. </ul>
  971. </xpath>
  972. </template>
  973. </odoo>