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.

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