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.

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