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
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"
  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" required="required" t-attf-value="#{company_register_number or ''}" placeholder="0647980091"/>
  320. </div>
  321. </div>
  322. <div t-attf-class="form-group #{error and 'company_name' in error and 'has-error' or ''}">
  323. <label class="col-md-3 col-sm-4 control-label" for="company_name">Company name</label>
  324. <div class="col-md-7 col-sm-8">
  325. <input type="text" class="form-control mandatory-field" name="company_name" required="required" t-attf-value="#{company_name or ''}" placeholder="La super coopérative"/>
  326. </div>
  327. </div>
  328. <div t-attf-class="form-group #{error and 'company_type' in error and 'has-error' or ''}">
  329. <label class="col-md-3 col-sm-4 control-label" for="company_type">Company type</label>
  330. <select name="company_type" class="col-md-7 col-sm-8 form-control" required="required" style="width:54%;margin-left:15px">
  331. <option value=""></option>
  332. <t t-foreach="company_types or []" t-as="type">
  333. <option t-att-value="type[0]" t-att-selected="type[0] == company_type"><t t-esc="type[1]"/></option>
  334. </t>
  335. </select>
  336. </div>
  337. <div t-attf-class="form-group #{error and 'company_email' in error and 'has-error' or ''}">
  338. <label class="col-md-3 col-sm-4 control-label" for="company_email">Company email</label>
  339. <div class="col-md-7 col-sm-8">
  340. <input type="text" class="form-control mandatory-field" name="company_email" required="required" t-attf-value="#{company_email or ''}" placeholder="administration@beescoop.be"/>
  341. </div>
  342. </div>
  343. <div t-attf-class="form-group #{error and 'iban' in error and 'has-error' or ''}">
  344. <label class="col-md-3 col-sm-4 control-label" for="iban">Bank Account Number</label>
  345. <div class="col-md-7 col-sm-8">
  346. <input type="text" class="form-control mandatory-field" name="iban" required="required" t-attf-value="#{iban or ''}" placeholder="BE48523080767127"/>
  347. </div>
  348. </div>
  349. <br/>
  350. <div t-attf-class="form-group">
  351. <label>
  352. Main Address
  353. </label>
  354. </div>
  355. <div t-attf-class="form-group #{error and 'address' in error and 'has-error' or ''}">
  356. <label class="col-md-3 col-sm-4 control-label" for="address">Address</label>
  357. <div class="col-md-7 col-sm-8">
  358. <input type="text" class="form-control mandatory-field" name="address" required="required" t-attf-value="#{address or ''}" placeholder="rue Van Hove, 19"/>
  359. </div>
  360. </div>
  361. <div t-attf-class="form-group #{error and 'zip_code' in error and 'has-error' or ''}">
  362. <label class="col-md-3 col-sm-4 control-label" for="zip_code">City</label>
  363. <div class="col-md-7 col-sm-8">
  364. <table>
  365. <tr>
  366. <td width="20%">
  367. <input type="text" class="form-control mandatory-field" name="zip_code" required="required" t-attf-value="#{zip_code or ''}" placeholder="1030"/>
  368. </td>
  369. <td width="3%"></td>
  370. <td>
  371. <input type="text" class="form-control mandatory-field" name="city" required="required" t-attf-value="#{city or ''}" placeholder="Bruxelles"/>
  372. </td>
  373. </tr>
  374. </table>
  375. </div>
  376. </div>
  377. <div t-attf-class="form-group #{error and 'country_id' in error and 'has-error' or ''}">
  378. <label class="col-md-3 col-sm-4 control-label" style="width:25%" for="country_id">Country</label>
  379. <select name="country_id" class="col-md-7 col-sm-8 form-control" style="width:54%;margin-left:15px">
  380. <option value="">Country...</option>
  381. <t t-foreach="countries or []" t-as="country">
  382. <option t-att-value="country.id" t-att-selected="country.id == int(country_id)"><t t-esc="country.name"/></option>
  383. </t>
  384. </select>
  385. </div>
  386. <br/>
  387. <div t-attf-class="form-group">
  388. <label>
  389. Contact Person
  390. </label>
  391. </div>
  392. <div t-attf-class="form-group #{error and 'firstname' in error and 'has-error' or ''}">
  393. <label class="col-md-3 col-sm-4 control-label" for="firstname">First Name</label>
  394. <div class="col-md-7 col-sm-8" style="padding-top:5px">
  395. <input type="text" class="form-control mandatory-field" name="firstname" required="required" t-attf-value="#{firstname or ''}" placeholder="Didier"/>
  396. </div>
  397. </div>
  398. <div t-attf-class="form-group #{error and 'lastname' in error and 'has-error' or ''}">
  399. <label class="col-md-3 col-sm-4 control-label" for="lastname">Last Name</label>
  400. <div class="col-md-7 col-sm-8">
  401. <input type="text" class="form-control mandatory-field" name="lastname" required="required" t-attf-value="#{lastname or ''}" placeholder="Bourdon"/>
  402. </div>
  403. </div>
  404. <div t-attf-class="form-group #{error and 'gender' in error and 'has-error' or ''}">
  405. <label class="col-md-3 col-sm-4 control-label" for="gender">Gender</label>
  406. <select name="gender" class="col-md-7 col-sm-8 form-control" required="required" style="width:54%;margin-left:15px">
  407. <option value=""></option>
  408. <t t-foreach="genders or []" t-as="type">
  409. <option t-att-value="type[0]" t-att-selected="type[0] == gender"><t t-esc="type[1]"/></option>
  410. </t>
  411. </select>
  412. </div>
  413. <div name="email_from_container" t-attf-class="form-group #{error and 'email_from' in error and 'has-error' or ''}">
  414. <label class="col-md-3 col-sm-4 control-label" for="email">Email</label>
  415. <div class="col-md-7 col-sm-8 bottom-line" style="padding-bottom:20px">
  416. <input type="email" class="form-control mandatory-field" name="email" required="required" t-attf-value="#{email or ''}" placeholder="didier.bourdon@bees-coop.be"/>
  417. </div>
  418. </div>
  419. <div t-attf-class="form-group #{error and 'phone' in error and 'has-error' or ''}">
  420. <label class="col-md-3 col-sm-4 control-label" for="phone">Phone</label>
  421. <div class="col-md-7 col-sm-8 bottom-line" style="padding-bottom:20px">
  422. <input type="text" class="form-control" name="phone" required="required" t-attf-value="#{phone or ''}" placeholder="e.g. (+32).81.81.37.00"/>
  423. </div>
  424. </div>
  425. <div t-attf-class="form-group #{error and 'contact_person_function' in error and 'has-error' or ''}">
  426. <label class="col-md-3 col-sm-4 control-label" for="contact_person_function">Function</label>
  427. <div class="col-md-7 col-sm-8">
  428. <input type="text" class="form-control mandatory-field" name="contact_person_function" required="required" t-attf-value="#{contact_person_function or ''}"/>
  429. </div>
  430. </div>
  431. <div t-attf-class="form-group #{error and 'birthday' in error and 'has-error' or ''}">
  432. <label class="col-md-3 col-sm-4 control-label" for="birthdate">Birthdate</label>
  433. <div class="col-md-7 col-sm-8">
  434. <input type="text" data-inputmask="'alias': 'date'" class="form-control mandatory-field" name="birthdate" required="required" t-attf-value="#{birthdate or ''}" placeholder="05/03/1978"/>
  435. </div>
  436. </div>
  437. <div t-attf-class="form-group #{error and 'lang' in error and 'has-error' or ''}" >
  438. <label class="col-md-3 col-sm-4 control-label" style="width:25%" for="lang">Language</label>
  439. <select name="lang" class="col-md-7 col-sm-8 form-control " style="width:30%;margin-left:15px">
  440. <option value="2">Language...</option>
  441. <t t-foreach="langs or []" t-as="langue">
  442. <option t-att-value="langue.code" t-att-selected="langue.code == lang"><t t-esc="langue.name"/></option>
  443. </t>
  444. </select>
  445. <br/>
  446. <div class="bottom-line" style="margin-left:25%;margin-top:35px;width:59%"></div>
  447. </div>
  448. <div t-attf-class="form-group #{error and 'product_id' in error and 'has-error' or ''}">
  449. <label class="col-md-3 col-sm-4 control-label" style="width:25%" for="share_product_id">Parts type</label>
  450. <select id="share_product_id" name="share_product_id" class="col-md-7 col-sm-8 form-control " style="width:54%;margin-left:15px">
  451. <t t-foreach="products or []" t-as="product">
  452. <option t-att-value="product.id" t-att-selected="product.id == int(share_product_id)"><t t-esc="product.short_name"/></option>
  453. </t>
  454. </select>
  455. </div>
  456. <div class="form-group">
  457. <table style="width:80%">
  458. <tr>
  459. <td width="30%">
  460. <label style="text-align:right; width:100%;padding-right:30px">Parts number</label>
  461. </td>
  462. <td width="15%">
  463. <div class="css_quantity input-group oe_website_spinner">
  464. <span class="input-group-addon" style="margin-left:0px">
  465. <a t-attf-href="#" class="mb8 js_add_cart_json">
  466. <i class="fa fa-minus"></i>
  467. </a>
  468. </span>
  469. <input type="text" class="js_quantity form-control" data-min="1" name="ordered_parts" t-attf-value="#{ordered_parts or 1}"/>
  470. <span class="input-group-addon">
  471. <a t-attf-href="#" class="mb8 float_left js_add_cart_json">
  472. <i class="fa fa-plus"></i>
  473. </a>
  474. </span>
  475. </div>
  476. </td>
  477. <td width="5%">x </td>
  478. <td id="share_price" width="7%">25</td>
  479. <td width="3%"></td>
  480. <td width="5%">= </td>
  481. <td width="20%">
  482. <div style="margin-top:12px" t-attf-class="form-group #{error and 'total_parts' in error and 'has-error' or ''}">
  483. <div>
  484. <input type="text" class="form-control total" name="total_parts" value="25" data-max="5000"
  485. t-att-readonly="'readonly'"
  486. />
  487. </div>
  488. </div>
  489. </td>
  490. </tr>
  491. </table>
  492. </div>
  493. <div class="bottom-line" style="margin-left:178px;margin-top:0px;width:61%"></div>
  494. <br/>
  495. <div id="data_policy_approved" t-if="display_data_policy" t-attf-class="form-group" >
  496. <label class="col-md-3 col-sm-4 control-label" for="data_policy_approved">Privacy Policy</label>
  497. <div class="col-md-9 col-sm-8">
  498. <div class="checkbox">
  499. <label>
  500. <input type="checkbox"
  501. name="data_policy_approved"
  502. t-att="{'required': 'required'} if data_policy_required else {}"
  503. t-attf-value="#{data_policy_approved or ''}"/>
  504. <t t-raw="data_policy_text"/>
  505. </label>
  506. </div>
  507. </div>
  508. </div>
  509. <div id="internal_rules_approved" t-if="display_internal_rules" t-attf-class="form-group" >
  510. <label class="col-md-3 col-sm-4 control-label" for="internal_rules_approved">Internal Rules</label>
  511. <div class="col-md-9 col-sm-8">
  512. <div class="checkbox">
  513. <label>
  514. <input type="checkbox"
  515. name="internal_rules_approved"
  516. t-att="{'required': 'required'} if internal_rules_required else {}"
  517. t-attf-value="#{internal_rules_approved or ''}"/>
  518. <t t-raw="internal_rules_text"/>
  519. </label>
  520. </div>
  521. </div>
  522. </div>
  523. <div t-attf-class="form-group" >
  524. <div class="col-md-7 col-sm-8">
  525. <table style="margin-left:195px">
  526. <tr>
  527. <td width="80%">
  528. <div class="g-recaptcha" t-att-data-sitekey="website.recaptcha_site_key" data-theme="green"/><br/>
  529. </td>
  530. <td>
  531. <div class="form-group">
  532. <div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
  533. <button class="btn btn-primary btn-lg">Send</button>
  534. </div>
  535. </div>
  536. </td>
  537. </tr>
  538. </table>
  539. </div>
  540. </div>
  541. <br/>
  542. </form>
  543. </div>
  544. </div>
  545. </div>
  546. <div class="oe_structure"/>
  547. </div>
  548. </t>
  549. </template>
  550. <record id="menu_becomecooperator" model="website.menu">
  551. <field name="name">Become cooperator</field>
  552. <field name="url">/page/become_cooperator</field>
  553. <field name="parent_id" ref="website.main_menu"/>
  554. <field name="sequence" type="int">65</field>
  555. </record>
  556. <template id="footer_coop_email_contact" inherit_id="website.footer_default" customize_show="True" name="Coop email contact">
  557. <xpath expr="//span[@t-field='res_company.email']" position="replace">
  558. <span t-field="res_company.coop_email_contact"></span>
  559. </xpath>
  560. </template>
  561. <template id="company_description_coop_email_contact" inherit_id="website.company_description" name="Company Description Email Contact">
  562. <xpath expr="//div[@t-field='res_company.partner_id']" position="replace">
  563. <div t-field="res_company.partner_id" t-field-options='{
  564. "widget": "contact",
  565. "fields": ["name", "address", "phone", "mobile", "fax"]}'/>
  566. <ul class="list-unstyled">
  567. <li t-ignore="true"><i class="fa fa-envelope"></i><span t-field="res_company.coop_email_contact"></span></li>
  568. </ul>
  569. </xpath>
  570. </template>
  571. </data>
  572. </openerp>