The following snippets (and their relevant options) were added to `mass_mailing`, mostly duplicated from the website builder: - s_cover - s_title - s_text_block - s_comparisons - s_color_blocks_2 - s_three_columns - s_image_text - s_text_image - s_picture - s_features - s_numbers - s_masonry_block - s_media_list - s_showcase - s_company_team - s_call_to_action - s_references - s_product_list - s_features_grid - s_alert - s_rating - s_blockquote - s_hr - s_text_highlight - s_coupon_code The following snippets were removed to make way for the new: - s_mail_block_banner - s_mail_block_title_sub - s_mail_block_paragraph - s_mail_block_comparison_table - s_mail_block_two_cols - s_mail_block_three_cols - s_mail_block_image_text - s_mail_block_text_image - s_mail_block_image - s_mail_block_footer_separator - s_mail_block_steps - s_mail_block_discount2 The following standalone snippet options were added, mostly duplicated from the website builder: - Box - layout_column - SnippetMove - snippet_options_text_align (via web_editor) - snippet_options_width (via web_editor) - snippet_options_block_align (via web_editor) - BodyWidth (based on ContainerWidth but only for the mailing's body) - minHeight - so_snippet_addition - so_content_addition - sizing_x - vAlignment Styles and selectors were adapted to the specifics of `mass_mailing`. task-2554899 X-original-commit: e5e1d4255ab416581b2ef7159c0c28540528771c Part-of: odoo/odoo#77724 Co-authored-by: Antoine Guenet <age@odoo.com> Co-authored-by: Elisabeth Dickinson <edi@odoo.com>
73 lines
3.8 KiB
XML
73 lines
3.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="s_rating" name="Rating">
|
|
<div class="s_rating pt16 pb16 px-3 o_mail_snippet_general" data-vcss="001" data-icon="fa-star" data-snippet="s_rating">
|
|
<h4 class="s_rating_title">Quality</h4>
|
|
<div class="s_rating_icons o_not_editable">
|
|
<span class="s_rating_active_icons">
|
|
<i class="fa fa-star"></i>
|
|
<i class="fa fa-star"></i>
|
|
<i class="fa fa-star"></i>
|
|
</span>
|
|
<span class="s_rating_inactive_icons">
|
|
<i class="fa fa-star-o"></i>
|
|
<i class="fa fa-star-o"></i>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<template id="s_rating_options" inherit_id="mass_mailing.snippet_options">
|
|
<xpath expr="." position="inside">
|
|
<div data-js="Rating" data-selector=".s_rating">
|
|
<we-select string="Icon">
|
|
<we-button data-set-icons="fa-star"><i class="fa fa-fw fa-star"/> Stars</we-button>
|
|
<we-button data-set-icons="fa-thumbs-up"><i class="fa fa-fw fa-thumbs-up"/> Thumbs</we-button>
|
|
<we-button data-set-icons="fa-circle"><i class="fa fa-fw fa-circle"/> Circles</we-button>
|
|
<we-button data-set-icons="fa-square"><i class="fa fa-fw fa-square"/> Squares</we-button>
|
|
<we-button data-set-icons="fa-heart"><i class="fa fa-fw fa-heart"/> Hearts</we-button>
|
|
<we-button data-set-icons="custom" class="d-none">Custom</we-button>
|
|
</we-select>
|
|
<we-row string="⌙ Active">
|
|
<we-colorpicker data-select-style="" data-apply-to=".s_rating_active_icons" data-css-property="color" data-color-prefix="text-"/>
|
|
<we-button data-custom-icon="true" data-custom-active-icon="true" data-no-preview="true">
|
|
<i class="fa fa-fw fa-refresh mr-1"/> Replace Icon
|
|
</we-button>
|
|
</we-row>
|
|
<we-row string="⌙ Inactive">
|
|
<we-colorpicker data-select-style="" data-apply-to=".s_rating_inactive_icons" data-css-property="color" data-color-prefix="text-"/>
|
|
<we-button data-custom-icon="true" data-custom-active-icon="false" data-no-preview="true">
|
|
<i class="fa fa-fw fa-refresh mr-1"/> Replace Icon
|
|
</we-button>
|
|
</we-row>
|
|
<we-row string="Score">
|
|
<we-input data-active-icons-number="true" data-step="1"/>
|
|
<span class="mx-2">/</span>
|
|
<we-input data-total-icons-number="true" data-step="1"/>
|
|
</we-row>
|
|
<we-button-group string="Size" data-apply-to=".s_rating_icons">
|
|
<we-button data-select-class="" title="Small" data-img="/website/static/src/img/snippets_options/size_small.svg"/>
|
|
<we-button data-select-class="fa-2x" title="Medium" data-img="/website/static/src/img/snippets_options/size_medium.svg"/>
|
|
<we-button data-select-class="fa-3x" title="Large" data-img="/website/static/src/img/snippets_options/size_large.svg"/>
|
|
</we-button-group>
|
|
<we-checkbox string="Display Inline" data-select-class="s_rating_inline" data-no-preview="true"/>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
|
|
<record id="mass_mailing.s_rating_000_scss" model="ir.asset">
|
|
<field name="name">Rating 000 SCSS</field>
|
|
<field name="bundle">web.assets_frontend</field>
|
|
<field name="path">mass_mailing/static/src/snippets/s_rating/000.scss</field>
|
|
<field name="active" eval="False"/>
|
|
</record>
|
|
|
|
<record id="mass_mailing.s_rating_001_scss" model="ir.asset">
|
|
<field name="name">Rating 001 SCSS</field>
|
|
<field name="bundle">web.assets_frontend</field>
|
|
<field name="path">mass_mailing/static/src/snippets/s_rating/001.scss</field>
|
|
</record>
|
|
|
|
</odoo>
|