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.

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