webclient_templates.xml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- vim:fdn=3:
  3. -->
  4. <openerp>
  5. <data>
  6. <template id="assets_backend5" name="eiru_base_menu assets" inherit_id="web.assets_backend">
  7. <xpath expr="." position="inside">
  8. <link rel="stylesheet" href="/eiru_base_menu/static/src/css/advance_nav.css"/>
  9. <script type="text/javascript" src="/eiru_base_menu/static/src/js/advance_nav.js"></script>
  10. </xpath>
  11. </template>
  12. <template id="eiru_base_menu.webclient_bootstrap" inherit_id="web.webclient_bootstrap" name="Webclient Bootstrap">
  13. <xpath expr="//div[@id='oe_main_menu_placeholder']" position="replace">
  14. <div class="navbar-collapse collapse" id="oe_main_menu_placeholder">
  15. <button class="oe_leftbar_open show1" title="Left menu button">
  16. <i class="fa fa-bars"></i>
  17. </button>
  18. <t t-call="web.menu"/>
  19. </div>
  20. </xpath>
  21. <xpath expr="//div[@class='openerp openerp_webclient_container']" position="replace">
  22. <div class="openerp openerp_webclient_container">
  23. <div class="oe_webclient">
  24. <div class="oe_leftbar leftbarhide" valign="top">
  25. <div groups="base.group_user,base.group_portal">
  26. <t t-call="eiru_base_menu.leftmenu"/>
  27. <!-- <t t-call="web.menu_secondary"/> -->
  28. </div>
  29. </div>
  30. <div class="oe_application"/>
  31. </div>
  32. </div>
  33. </xpath>
  34. </template>
  35. <template id="eiru_base_menu.leftmenu">
  36. <a class="oe_logo" t-att-href="'/web/?debug' if debug else '/web'">
  37. <span class="oe_logo_edit">Edit Company data</span>
  38. <img src='/web/binary/company_logo'/>
  39. </a>
  40. <div>
  41. <div>
  42. <div class="oe_secondary_menus_container">
  43. <t t-foreach="menu_data['children']" t-as="menu">
  44. <t t-if="menu['name'] == 'Inicio'" >
  45. <t t-foreach="menu['children']" t-as="menu">
  46. <div class="oe_secondary_menu_section">
  47. <t t-esc="menu['name']"/>
  48. </div>
  49. <t t-call="web.menu_secondary_submenu"/>
  50. </t>
  51. </t>
  52. </t>
  53. </div>
  54. </div>
  55. </div>
  56. </template>
  57. <template id="eiru_base_menu.menu" inherit_id="web.menu">
  58. <xpath expr="//ul[@class='nav navbar-nav navbar-left oe_application_menu_placeholder']" position="replace">
  59. <ul class="nav navbar-nav navbar-left oe_application_menu_placeholder" style="width:auto">
  60. <li t-foreach="menu_data['children']" t-as="menu" class="tnav">
  61. <t t-call="web.menu_link"/>
  62. <t t-call="web.menu_secondary_submenu"/>
  63. </li>
  64. <li id="menu_more_container" class="dropdown open1" style="display: none;">
  65. <a href="#" class="dropdown-toggle" data-toggle="dropdown">More <b class="caret"></b></a>
  66. <ul id="menu_more" class="dropdown-menu"></ul>
  67. </li>
  68. </ul>
  69. </xpath>
  70. </template>
  71. </data>
  72. </openerp>