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.

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