diff options
| author | Fabien Meghazi <fme@openerp.com> | 2011-06-01 15:48:00 +0200 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2011-06-01 15:48:00 +0200 |
| commit | 82d7cefef253239ec2a4fcac4ac870e23e31ceba (patch) | |
| tree | 2af01f865784aef0c1a442694ceac68635f86dd4 /addons/base_dashboard/static/src/xml | |
| parent | dac344cf3115e6e872809c5c03d3ff07968df6e5 (diff) | |
[ADD] Save Dashboard's custom views with "Undo" button support
bzr revid: fme@openerp.com-20110601134800-d9j48t4f287pokr6
Diffstat (limited to 'addons/base_dashboard/static/src/xml')
| -rw-r--r-- | addons/base_dashboard/static/src/xml/base_dashboard.xml | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/addons/base_dashboard/static/src/xml/base_dashboard.xml b/addons/base_dashboard/static/src/xml/base_dashboard.xml index 349823847aa..80667dec557 100644 --- a/addons/base_dashboard/static/src/xml/base_dashboard.xml +++ b/addons/base_dashboard/static/src/xml/base_dashboard.xml @@ -1,6 +1,9 @@ <template> <t t-name="DashBoard"> <div class="oe-dashboard-links"> + <button type="button" class="button oe-dashboard-link-undo" t-att-style="view.fields_view.custom_view_id ? null : 'display: none'"> + Undo + </button> <button type="button" class="button oe-dashboard-link-add_widget"> Add Widget </button> @@ -40,10 +43,12 @@ </div> </t> <t t-name="DashBoard.xml"> - <board t-att-style="style"> - <column t-foreach="columns" t-as="column"> - <action t-foreach="column" t-as="action" t-att="action"/> - </column> - </board> + <form t-att-string="form_title"> + <board t-att-style="style"> + <column t-foreach="columns" t-as="column"> + <action t-foreach="column" t-as="action" t-att="action"/> + </column> + </board> + </form> </t> </template> |
