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>
21 lines
1.2 KiB
XML
21 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="s_coupon_code" name="Promo Code">
|
|
<div class="o_mail_snippet_general o_mail_block_discount2 s_discount2 px-3 pt32 pb32">
|
|
<h2 class="text-center"><b>GET $20 OFF</b></h2>
|
|
<p class="text-center">
|
|
Here's your coupon code - but hurry! Ends 9/28
|
|
</p>
|
|
<table border="0" cellpadding="0" cellspacing="0" align="center" class="border" style="border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt;">
|
|
<tr>
|
|
<td width="50" height="50" align="center" class="o_mail_no_resize bg-300 text-center" style="width:50px!important; min-width: 50px; max-width:5.6rem;"><i class="fa fa-2x fa-ticket"></i></td>
|
|
<td width="200" height="50" align="center" class="text-center" style="font-size: 15px; line-height: 22px; font-weight: 700; min-width: 150px; width: 200px;">ENDOFSUMMER20</td>
|
|
</tr>
|
|
</table>
|
|
<div class="text-center pt24">
|
|
<a role="button" href="#" class="btn btn-primary">Use now</a>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</odoo>
|