diff options
| author | Julien Mougenot <jum@odoo.com> | 2020-03-11 09:38:29 +0000 |
|---|---|---|
| committer | Julien Mougenot <jum@odoo.com> | 2020-03-13 14:08:33 +0000 |
| commit | e68d3bb09d1f844387ceb20aa76022ace48507d9 (patch) | |
| tree | d238fa35dcb11e5628112377a9daf569405ca74b /addons/board/static/src/xml/board.xml | |
| parent | 18e5416636b19b0953b1e6e26bfaeab1ebecce4c (diff) | |
[REF] *: Adapt all modules to new control panel
Adaptation of the code throughout all modules to properly instantiate the newly
refactored control panel and update it accordingly.
Part of task 2196029
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Diffstat (limited to 'addons/board/static/src/xml/board.xml')
| -rw-r--r-- | addons/board/static/src/xml/board.xml | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/addons/board/static/src/xml/board.xml b/addons/board/static/src/xml/board.xml index bd2ec9fe605..c81892aca07 100644 --- a/addons/board/static/src/xml/board.xml +++ b/addons/board/static/src/xml/board.xml @@ -80,15 +80,27 @@ <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="AddToBoardMenu" owl="1"> + <li class="o_menu_item o_add_to_board" role="menuitem"> + <button type="button" class="dropdown-item" + t-ref="fallback-focus" + t-on-click="state.open = !state.open" + > + <t>Add to my Dashboard</t> + </button> + <t t-if="state.open"> + <div class="dropdown-item-text"> + <input type="text" class="o_input" autofocus="" + t-model.trim="state.name" + t-on-keydown="_onInputKeydown" + /> + </div> + <div class="dropdown-item-text"> + <button type="button" class="btn btn-primary" t-on-click="_addToBoard">Add</button> + </div> + </t> + </li> +</t> <t t-name="SearchView.addtodashboard"> <a href="#" class="dropdown-item o_add_to_dashboard_link o_closed_menu">Add to my Dashboard</a> |
