File tree Expand file tree Collapse file tree 4 files changed +29
-17
lines changed Expand file tree Collapse file tree 4 files changed +29
-17
lines changed Original file line number Diff line number Diff line change 301
301
'website/static/src/snippets/s_website_controller_page_listing_layout/options.xml' ,
302
302
'website/static/src/snippets/s_website_form/options.js' ,
303
303
'website/static/src/snippets/s_website_form/options.xml' ,
304
+ 'website/static/src/snippets/s_badge/options.xml' ,
304
305
'website/static/src/js/form_editor_registry.js' ,
305
306
'website/static/src/js/send_mail_form.js' ,
306
307
'website/static/src/xml/website_form.xml' ,
Original file line number Diff line number Diff line change @@ -15,3 +15,9 @@ registerWebsiteOption("WebsiteIconTools", {
15
15
selector : "span.fa, i.fa" ,
16
16
exclude : "[data-oe-xpath]" ,
17
17
} ) ;
18
+
19
+ registerWebsiteOption ( "BadgeOptions" , {
20
+ template : "website.s_badge_options" ,
21
+ selector : ".s_badge" ,
22
+ } ) ;
23
+
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <templates xml : space =" preserve" >
3
+
4
+ <t t-name =" website.s_badge_options" >
5
+ <WeColorpicker title.translate=" Color" name =" 'badge_colorpicker_opt'"
6
+ selectStyle =" 'true'"
7
+ cssProperty =" 'background-color'"
8
+ colorPrefix =" 'bg-'" />
9
+
10
+ <WeSelect title.translate=" Style" >
11
+ <WeButton selectClass =" 'text-bg-primary'" >Primary</WeButton >
12
+ <WeButton selectClass =" 'text-bg-secondary'" >Secondary</WeButton >
13
+ <WeButton selectClass =" 'text-bg-success'" >Success</WeButton >
14
+ <WeButton selectClass =" 'text-bg-info'" >Info</WeButton >
15
+ <WeButton selectClass =" 'text-bg-warning'" >Warning</WeButton >
16
+ <WeButton selectClass =" 'text-bg-danger'" >Danger</WeButton >
17
+ <WeButton selectClass =" 'text-bg-light'" >Light</WeButton >
18
+ <WeButton selectClass =" 'text-bg-dark'" >Dark</WeButton >
19
+ </WeSelect >
20
+ </t >
21
+
22
+ </templates >
Original file line number Diff line number Diff line change 7
7
</span >
8
8
</template >
9
9
10
- <template id =" s_badge_options" inherit_id =" website.snippet_options" >
11
- <xpath expr =" //div[@data-js='Box']" position =" before" >
12
- <div data-selector =" .s_badge" >
13
- <we-select string =" Style" >
14
- <we-button data-select-class =" text-bg-primary" >Primary</we-button >
15
- <we-button data-select-class =" text-bg-secondary" >Secondary</we-button >
16
- <we-button data-select-class =" text-bg-success" >Success</we-button >
17
- <we-button data-select-class =" text-bg-info" >Info</we-button >
18
- <we-button data-select-class =" text-bg-warning" >Warning</we-button >
19
- <we-button data-select-class =" text-bg-danger" >Danger</we-button >
20
- <we-button data-select-class =" text-bg-light" >Light</we-button >
21
- <we-button data-select-class =" text-bg-dark" >Dark</we-button >
22
- </we-select >
23
- </div >
24
- </xpath >
25
- </template >
26
-
27
10
<record id =" website.s_badge_000_variables_scss" model =" ir.asset" >
28
11
<field name =" name" >Badge 000 variables SCSS</field >
29
12
<field name =" bundle" >web._assets_primary_variables</field >
You can’t perform that action at this time.
0 commit comments