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.

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