diff options
| author | Mathieu Duckerts-Antoine <dam@odoo.com> | 2018-12-06 12:39:43 +0000 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2018-12-07 13:16:10 +0000 |
| commit | 38dc5c18b4d407982351bb37b1c0a06d6dc20b5f (patch) | |
| tree | 95454c36730ee8f166555a928076ebd2cbf9e1fa /addons/board/static/src/xml/board.xml | |
| parent | 84a1d7bd59ebfc283745a0b1b65b0872ffc21182 (diff) | |
[REF] board: adapt code to search refactoring
This rev. adapts the code of the 'Add to Dashboard' entry of the
Favotires menu, according to the large SearchView refactoring. It
also does some tweaks for the dashboard app due to the move of the
ControlPanel from the ActionManager to the controllers.
Part of task 1893568
Diffstat (limited to 'addons/board/static/src/xml/board.xml')
| -rw-r--r-- | addons/board/static/src/xml/board.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/board/static/src/xml/board.xml b/addons/board/static/src/xml/board.xml index cb907290fd1..4e6f65a7803 100644 --- a/addons/board/static/src/xml/board.xml +++ b/addons/board/static/src/xml/board.xml @@ -74,6 +74,16 @@ <iframe width="100%" frameborder="0" t-att-src="url"/> </t> +<div t-name="AddToBoardMenu"> + <button type="button" class="dropdown-item o_add_to_board o_menu_header">Add to my Dashboard</button> + <div t-if="widget.isOpen" class="dropdown-item-text o_add_to_board"> + <input class="o_input o_add_to_board_input" type="text"/> + </div> + <div t-if="widget.isOpen" class="dropdown-item-text o_add_to_board"> + <button type="button" class="btn btn-primary o_add_to_board_confirm_button">Add</button> + </div> +</div> + <t t-name="SearchView.addtodashboard"> <a href="#" class="dropdown-item o_add_to_dashboard_link o_closed_menu">Add to my Dashboard</a> <div class="dropdown-item-text o_add_to_dashboard"> |
