Files
odoo_source/addons/mass_mailing/views/editor_field_html.xml
T
qsm-odoo 88c2b6843a [REF] web,web_editor,website(_*),report,pos,mass_mailing: assets
* Remove recursive assets inclusions (i.e. assets_editor was including
assets_common, summernote, ...)
* Better construct the assets (link, then script + type attribute)
* Better include the assets (split js / css, always use t-call-assets)
* Simplifies the number of assets
* Move bootstrap js to assets common
* assets_frontend is now created by web module to allow using it on the
connexion page but also in the web_editor, where colors have to be
bootstrap/theme ones. Note: if a module depends on website, then keep
using the inherit_id="WEBSITE.assets_frontend"
2016-02-24 13:47:06 +01:00

80 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="assets_editor" inherit_id="web_editor.assets_editor">
<xpath expr="link[last()]" position="after">
<link rel="stylesheet" type="text/less" href="/mass_mailing/static/src/less/mass_mailing_editor.less"/>
</xpath>
</template>
<!-- Template Choice page -->
<template id="FieldTextHtmlInline" name="Editor layout">
<t t-set="head">
<t t-if="enable_editor">
<link rel="stylesheet" href="/mass_mailing/static/src/css/mass_mailing_editor_thumb.css" type="text/css"/>
<script type="text/javascript" src="/mass_mailing/static/src/js/mass_mailing_editor.js"></script>
</t>
</t>
<t t-set="add_html">
<t t-if="enable_editor">
<span id="choose_template" class="o_not_editable o_css_editor">
<span class="btn btn-primary">Theme</span>
<span class="btn btn-primary hidden">Cancel selection</span>
</span>
</t>
</t>
<t t-call="web_editor.layout">
<div t-if="not edit_translations" id="editable_area" class="o_editable" t-att-data-oe-model="model" t-att-data-oe-field="field" t-att-data-oe-id="res_id" data-oe-type="html"><t t-raw="content"/></div>
<div t-if="edit_translations" id="editable_area"><t t-raw="content"/></div>
<div id="templates" class="o_not_editable o_css_editor hidden" t-if="enable_editor">
<h1 class="page-header mt16 email_head panel-primary">
Select a theme
<button type="button" class="btn btn-sm btn-default fa fa-info-circle" data-toggle="tooltip" data-placement="bottom" title="Here you can design your own template from scratch by selecting your favorite theme."></button>
</h1>
<t t-call="mass_mailing.mass_mail_theme_list"/>
<div class="hidden">
<h1 class="page-header mt16">
Choose a Template
</h1>
<div id="email_template_list">
<div class="hidden">
<div class="theme_thumbnail">
<div class="overlay text-center">
<p>template</p>
<a class="btn btn-primary btn-sm js_template_set"> Select </a>
</div>
<div class="template_preview js_content"/>
</div>
</div>
</div>
</div>
</div>
</t>
</template>
<template id="FieldTextHtmlPopupContent" name="Editor layout">
<t t-set="head">
<link rel="stylesheet" href="/mass_mailing/static/src/css/mass_mailing_editor_thumb.css" type="text/css"/>
<link rel="stylesheet" href="/mass_mailing/static/src/css/mass_mailing_popup.css" type="text/css"/>
</t>
<t t-call="web_editor.layout">
<div class="modal-dialog modal-md show" id="o_newsletter_popup">
<div class="modal-content o_popup_modal_content">
<div class="o_popup_modal_body text-center">
<div class="o_popup_content_dev">
<div id="editable_area" class="o_editable" t-att-data-oe-model="model" t-att-data-oe-field="field" t-att-data-oe-id="res_id" data-oe-type="html">
<!-- Can be removed once default values are ok for the editor -->
<t t-raw="content">
</t>
</div>
</div>
</div>
</div>
</div>
</t>
</template>
</odoo>