File tree Expand file tree Collapse file tree 8 files changed +57
-46
lines changed Expand file tree Collapse file tree 8 files changed +57
-46
lines changed Original file line number Diff line number Diff line change 165
165
'mass_mailing/static/src/xml/mass_mailing.editor.xml' ,
166
166
'mass_mailing/static/src/js/snippets.options.xml' ,
167
167
'mass_mailing/static/src/js/snippets.registry.js' ,
168
+ 'mass_mailing/static/src/snippets/s_hr/options.xml' ,
168
169
],
169
170
'web.assets_frontend' : [
170
171
'mass_mailing/static/src/js/tours/**/*' ,
Original file line number Diff line number Diff line change @@ -12,3 +12,9 @@ registerMassMailingOption("MassMailingIconTools", {
12
12
selector : "span.fa, i.fa, img" ,
13
13
exclude : "[data-oe-type='image'] > img, [data-oe-xpath]" ,
14
14
} ) ;
15
+
16
+ registerMassMailingOption ( "MassMailingHrOptions" , {
17
+ template : "mass_mailing.s_hr_options" ,
18
+ selector : ".s_hr" ,
19
+ target : "hr" ,
20
+ } ) ;
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 =" mass_mailing.s_hr_options" >
5
+ <t t-call =" mass_mailing.snippet_options_border_line_widgets" >
6
+ <t t-set =" label" >Border</t >
7
+ <t t-set =" direction" t-value =" 'top'" />
8
+ </t >
9
+ <WeSelect title.translate=" Width" >
10
+ <WeButton selectClass =" 'w-25'" >25%</WeButton >
11
+ <WeButton selectClass =" 'w-50'" >50%</WeButton >
12
+ <WeButton selectClass =" 'w-75'" >75%</WeButton >
13
+ <WeButton selectClass =" 'w-100'" name =" 'so_width_100'" >100%</WeButton >
14
+ </WeSelect >
15
+ <WeButtonGroup title.translate=" Alignment" dependencies =" '!so_width_100'" >
16
+ <WeButton class =" 'fa fa-fw fa-align-left'" tooltip.translate=" Left" selectClass =" 'me-auto'" />
17
+ <WeButton class =" 'fa fa-fw fa-align-center'" tooltip.translate=" Center" selectClass =" 'mx-auto'" />
18
+ <WeButton class =" 'fa fa-fw fa-align-right'" tooltip.translate=" Right" selectClass =" 'ms-auto'" />
19
+ </WeButtonGroup >
20
+ </t >
21
+
22
+ </templates >
Original file line number Diff line number Diff line change 10
10
</xpath >
11
11
</template >
12
12
13
- <template id =" s_hr_options" inherit_id =" mass_mailing.snippet_options" >
14
- <xpath expr =" ." position =" inside" >
15
- <div data-selector =" .s_hr" data-target =" hr" >
16
- <!-- TODO @owl-options: do convert & uncomment this. Just commented
17
- in legacy to avoid errors. -->
18
- <!-- <t t-call="mass_mailing.snippet_options_border_line_widgets">
19
- <t t-set="label">Border</t>
20
- <t t-set="direction" t-value="'top'"/>
21
- </t> -->
22
- <we-select string =" Width" >
23
- <we-button data-select-class =" w-25" >25%</we-button >
24
- <we-button data-select-class =" w-50" >50%</we-button >
25
- <we-button data-select-class =" w-75" >75%</we-button >
26
- <we-button data-select-class =" w-100" data-name =" so_width_100" >100%</we-button >
27
- </we-select >
28
- <we-button-group string =" Alignment" data-dependencies =" !so_width_100" >
29
- <we-button class =" fa fa-fw fa-align-left" title =" Left" data-select-class =" me-auto" />
30
- <we-button class =" fa fa-fw fa-align-center" title =" Center" data-select-class =" mx-auto" />
31
- <we-button class =" fa fa-fw fa-align-right" title =" Right" data-select-class =" ms-auto" />
32
- </we-button-group >
33
- </div >
34
- </xpath >
35
- </template >
36
-
37
13
<record id =" mass_mailing.s_hr_000_scss" model =" ir.asset" >
38
14
<field name =" name" >Hr 000 SCSS</field >
39
15
<field name =" bundle" >web.assets_frontend</field >
Original file line number Diff line number Diff line change 302
302
'website/static/src/snippets/s_website_form/options.js' ,
303
303
'website/static/src/snippets/s_website_form/options.xml' ,
304
304
'website/static/src/snippets/s_badge/options.xml' ,
305
+ 'website/static/src/snippets/s_hr/options.xml' ,
305
306
'website/static/src/js/form_editor_registry.js' ,
306
307
'website/static/src/js/send_mail_form.js' ,
307
308
'website/static/src/xml/website_form.xml' ,
Original file line number Diff line number Diff line change @@ -21,3 +21,8 @@ registerWebsiteOption("BadgeOptions", {
21
21
selector : ".s_badge" ,
22
22
} ) ;
23
23
24
+ registerWebsiteOption ( "WebsiteHrOptions" , {
25
+ template : "website.s_hr_options" ,
26
+ selector : ".s_hr" ,
27
+ target : "hr" ,
28
+ } ) ;
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_hr_options" >
5
+ <t t-call =" website.snippet_options_border_line_widgets" >
6
+ <t t-set =" label" >Border</t >
7
+ <t t-set =" direction" t-value =" 'top'" />
8
+ </t >
9
+ <WeSelect title.translate=" Width" >
10
+ <WeButton selectClass =" 'w-25'" >25%</WeButton >
11
+ <WeButton selectClass =" 'w-50'" >50%</WeButton >
12
+ <WeButton selectClass =" 'w-75'" >75%</WeButton >
13
+ <WeButton selectClass =" 'w-100'" name =" 'so_width_100'" >100%</WeButton >
14
+ </WeSelect >
15
+ <WeButtonGroup title.translate=" Alignment" dependencies =" '!so_width_100'" >
16
+ <WeButton class =" 'fa fa-fw fa-align-left'" tooltip.translate=" Left" selectClass =" 'me-auto'" />
17
+ <WeButton class =" 'fa fa-fw fa-align-center'" tooltip.translate=" Center" selectClass =" 'mx-auto'" />
18
+ <WeButton class =" 'fa fa-fw fa-align-right'" tooltip.translate=" Right" selectClass =" 'ms-auto'" />
19
+ </WeButtonGroup >
20
+ </t >
21
+
22
+ </templates >
Original file line number Diff line number Diff line change 7
7
</div >
8
8
</template >
9
9
10
- <template id =" s_hr_options" inherit_id =" website.snippet_options" >
11
- <xpath expr =" ." position =" inside" >
12
- <div data-selector =" .s_hr" data-target =" hr" >
13
- <t t-call =" website.snippet_options_border_line_widgets" >
14
- <t t-set =" label" >Border</t >
15
- <t t-set =" direction" t-value =" 'top'" />
16
- </t >
17
- <we-select string =" Width" >
18
- <we-button data-select-class =" w-25" >25%</we-button >
19
- <we-button data-select-class =" w-50" >50%</we-button >
20
- <we-button data-select-class =" w-75" >75%</we-button >
21
- <we-button data-select-class =" w-100" data-name =" so_width_100" >100%</we-button >
22
- </we-select >
23
- <we-button-group string =" Alignment" data-dependencies =" !so_width_100" >
24
- <we-button class =" fa fa-fw fa-align-left" title =" Left" data-select-class =" me-auto" />
25
- <we-button class =" fa fa-fw fa-align-center" title =" Center" data-select-class =" mx-auto" />
26
- <we-button class =" fa fa-fw fa-align-right" title =" Right" data-select-class =" ms-auto" />
27
- </we-button-group >
28
- </div >
29
- </xpath >
30
- </template >
31
-
32
10
<record id =" website.s_hr_000_scss" model =" ir.asset" >
33
11
<field name =" name" >Hr 000 SCSS</field >
34
12
<field name =" bundle" >web.assets_frontend</field >
You can’t perform that action at this time.
0 commit comments