|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <templates id="template" xml:space="preserve">
|
| 3 | + <t t-name="website.ThemePreviewForm.ControlPanel.BreadCrumbs"> |
| 4 | + <t t-set="breadcrumb" t-value="breadcrumbs.slice(-1)[0] || {}"/> |
| 5 | + <div class="o_breadcrumb d-flex gap-1"> |
| 6 | + <div class="active d-flex flex-column"> |
| 7 | + <h4 class="mb-0"><t t-call="web.Breadcrumb.Name"/></h4> |
| 8 | + </div> |
| 9 | + </div> |
| 10 | + </t> |
| 11 | + |
3 | 12 | <t t-name="website.ThemePreviewForm.ControlPanel" t-inherit="web.ControlPanel" t-inherit-mode="primary">
|
| 13 | + <xpath expr="//*[hasclass('o_control_panel')]" position="attributes"> |
| 14 | + <attribute name="class" remove="pb-3" add="pb-2" separator=" "/> |
| 15 | + </xpath> |
| 16 | + <xpath expr="//*[hasclass('o_control_panel_main_buttons')]" position="inside"> |
| 17 | + <button class="o_switch_theme btn btn-secondary d-none d-md-inline-block me-1" t-on-click.stop="this.back"> |
| 18 | + <i class="oi oi-arrow-left" role="img" aria-label="Go Back"/> |
| 19 | + </button> |
| 20 | + </xpath> |
| 21 | + <xpath expr="//*[hasclass('o_control_panel_actions')]" position="attributes"> |
| 22 | + <attribute name="class" remove="justify-content-lg-around" add="justify-content-sm-end flex-grow-1 flex-shrink-1 flex-basis-sm-0" separator=" "/> |
| 23 | + </xpath> |
4 | 24 | <xpath expr="//div[hasclass('o_control_panel_navigation')]" position="replace">
|
5 |
| - <div class="d-none d-md-flex align-items-end justify-content-end order-2 order-lg-1 w-100 gap-1" role="group"> |
6 |
| - <input class="btn-check" id="themeViewerDesktop" type="radio" name="viewer" data-mode='desktop' autocomplete="off" checked='checked'/> |
7 |
| - <label class="btn btn-secondary" for="themeViewerDesktop" t-on-click="this.onDesktopClick">Desktop</label> |
8 |
| - <input class="btn-check" id="themeViewerMobile" type="radio" name="viewer" data-mode='mobile' autocomplete="off"/> |
9 |
| - <label class="btn btn-secondary" for="themeViewerMobile" t-on-click="this.onMobileClick">Mobile</label> |
| 25 | + <div class="o_control_panel_switch_device d-none d-lg-flex" role="group"> |
| 26 | + <div class="btn-group"> |
| 27 | + <input class="btn-check" id="themeViewerDesktop" type="radio" name="viewer" data-mode='desktop' autocomplete="off" checked="checked"/> |
| 28 | + <label class="btn btn-secondary" for="themeViewerDesktop" t-on-click="this.onDesktopClick"> |
| 29 | + <i class="fa fa-fw fa-desktop" role="img" aria-label="Desktop"/> |
| 30 | + </label> |
| 31 | + <input class="btn-check" id="themeViewerMobile" type="radio" name="viewer" data-mode='mobile' autocomplete="off"/> |
| 32 | + <label class="btn btn-secondary" for="themeViewerMobile" t-on-click="this.onMobileClick"> |
| 33 | + <i class="fa fa-fw fa-mobile" role="img" aria-label="Mobile"/> |
| 34 | + </label> |
| 35 | + </div> |
10 | 36 | </div>
|
11 | 37 | </xpath>
|
| 38 | + <xpath expr="//t[@t-else]/Breadcrumbs" position="replace"> |
| 39 | + <t t-call="website.ThemePreviewForm.ControlPanel.BreadCrumbs"/> |
| 40 | + </xpath> |
12 | 41 | </t>
|
13 | 42 |
|
14 | 43 | <t t-name="website.ThemePreviewFormController" t-inherit="web.FormView" t-inherit-mode="primary">
|
15 | 44 | <xpath expr="//Layout" position="inside">
|
16 | 45 | <t t-set-slot="layout-actions">
|
17 |
| - <div> |
18 |
| - <div class="o_form_buttons_view" role="toolbar" aria-label="Main actions"> |
19 |
| - <ViewButton className="'btn btn-primary o_use_theme'" |
20 |
| - clickParams="{type: 'object', name: 'button_choose_theme'}" |
21 |
| - record="this.model.root"> |
22 |
| - <t t-set-slot="contents">Start Now</t> |
23 |
| - </ViewButton> |
24 |
| - <button class="btn btn-link o_switch_theme" t-on-click.stop="this.back"> |
25 |
| - Choose another theme |
26 |
| - </button> |
27 |
| - </div> |
28 |
| - </div> |
| 46 | + <ViewButton className="'btn btn-primary o_use_theme'" |
| 47 | + clickParams="{type: 'object', name: 'button_choose_theme'}" |
| 48 | + record="this.model.root"> |
| 49 | + <t t-set-slot="contents">Use this theme</t> |
| 50 | + </ViewButton> |
29 | 51 | </t>
|
30 | 52 | </xpath>
|
31 | 53 | </t>
|
32 | 54 |
|
33 | 55 | <t t-name="website.ThemePreviewKanban.ControlPanel.BreadCrumbs">
|
34 | 56 | <div class="o_breadcrumb d-flex gap-1">
|
35 | 57 | <div class="active d-flex flex-column">
|
36 |
| - <div class="text-truncate">Pick a Theme</div> |
| 58 | + <div class="fw-bold text-truncate">Pick a Theme</div> |
37 | 59 | <div class="text-muted small">Don't worry, you can switch later.</div>
|
38 | 60 | </div>
|
39 | 61 | </div>
|
40 | 62 | </t>
|
41 | 63 |
|
42 | 64 | <t t-name="website.ThemePreviewKanban.ControlPanel" t-inherit="web.ControlPanel" t-inherit-mode="primary">
|
| 65 | + <xpath expr="//*[hasclass('o_control_panel')]" position="attributes"> |
| 66 | + <attribute name="class" remove="pb-3" add="pb-2" separator=" "/> |
| 67 | + </xpath> |
43 | 68 | <xpath expr="//t[@t-else]/Breadcrumbs" position="replace">
|
44 | 69 | <t t-call="website.ThemePreviewKanban.ControlPanel.BreadCrumbs"/>
|
45 | 70 | </xpath>
|
46 | 71 | <xpath expr="//div[contains(@class,'o_control_panel_navigation')]" position="replace">
|
47 |
| - <div> |
48 |
| - <a class="btn btn-secondary" t-on-click="this.close" aria-label="Close" data-tooltip="Close"> |
49 |
| - <i class="fa fa-times" /> |
50 |
| - </a> |
51 |
| - </div> |
| 72 | + <a class="btn btn-secondary align-self-center" t-on-click="this.close" aria-label="Close" data-tooltip="Close"> |
| 73 | + <i class="fa fa-times" role="img" aria-label="close"/> |
| 74 | + </a> |
52 | 75 | </xpath>
|
53 | 76 | </t>
|
54 | 77 | </templates>
|
0 commit comments