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.

680 lines
36 KiB

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