[FIX] New Edge option.background grid.
[odoo/odoo.git] / addons / base_diagram / static / src / xml / base_diagram.xml
1 <template>
2     <t t-name="DiagramView">
3         <div class="oe_diagram_header" t-att-id="element_id + '_header'">
4                 <h2 class="oe_view_title"><t t-esc="fields_view.arch.attrs.string"/></h2>
5                         <div class="oe_diagram_buttons">
6                                 <button type="button" id="new_node" class="oe_diagram_button_new">New Node</button>
7                                 <button type="button" id="new_edge" class="oe_diagram_button_new">New Edge</button>
8                                 <label>Show Grid:</label><input type="checkbox" id="toggle_grid" checked="checked"/>
9                         </div>
10                 <div class="oe_diagram_pager">
11                     <button type="button" data-pager-action="first">First</button>
12                     <button type="button" data-pager-action="previous">&lt;&lt;</button>
13             
14                     <span class="oe_pager_index">0</span> / <span class="oe_pager_count">0</span>
15             
16                     <button type="button" data-pager-action="next">&gt;&gt;</button>
17                     <button type="button" data-pager-action="last">Last</button>
18                 </div>
19                 </div>
20         <div id="dia-canvas" class="diagram show_grid" style="overflow: auto;"></div>
21     </t>
22 </template>