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.

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