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.

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