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.

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