2018-08-20 11:29:49 +02:00
|
|
|
<flectra>
|
|
|
|
<template id="portal_digest_unsubscribed" name="Unsubscription">
|
|
|
|
<t t-call="portal.portal_layout">
|
|
|
|
<div class="container mt8">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-6 offset-lg-3">
|
|
|
|
<h3>Digest Subscriptions</h3>
|
|
|
|
<div class="alert alert-success text-center" role="status">
|
|
|
|
<p>You have been successfully unsubscribed from <string t-field="digest.name"/></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</template>
|
2018-08-31 14:09:21 +02:00
|
|
|
|
|
|
|
<record model="ir.ui.view" id="email_template_preview_digest_form">
|
|
|
|
<field name="name">email_template.preview.digest.form</field>
|
|
|
|
<field name="model">email_template.preview</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Preview Of Digest">
|
|
|
|
Choose an example <field name="model_id" class="oe_inline" readonly="1"/> record:
|
|
|
|
<field name="res_id" class="oe_inline" style="margin-left: 8px;"/>
|
|
|
|
<field name="body_html" widget="html" readonly="1"
|
|
|
|
nolabel="1" options='{"safe": True}'/>
|
|
|
|
<footer>
|
|
|
|
<button string="Discard" class="btn-default" special="cancel"/>
|
|
|
|
</footer>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="wizard_email_template_preview_digest" model="ir.actions.act_window">
|
|
|
|
<field name="name">Preview of Digest</field>
|
|
|
|
<field name="res_model">email_template.preview</field>
|
|
|
|
<field name="src_model">digest.digest</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="view_id" ref="email_template_preview_digest_form"/>
|
|
|
|
<field name="target">new</field>
|
|
|
|
<field name="context">{'template_id':template_id, 'default_res_id': active_id}</field>
|
|
|
|
</record>
|
|
|
|
|
2018-08-20 11:29:49 +02:00
|
|
|
</flectra>
|