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.

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