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.

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