Files
odoo_source/addons/mass_mailing/views/unsubscribe.xml
T
Julien De Coster d88c34d11e [IMP] Mass mailings send in cron
1. The merge of the "email_template" module into the "mail" module.
2. The send action of the mass mailing has been moved from the frontend to a cron, because it was too slow to send over 10,000 mails (the user's browser was blocked for 15 - 20 minutes). Mass mailings have now their own process in the kanban view.
3. Mails sent from the mail form are sent immediatly instead of from the mail queue (for instance, when you go to sales > customers > list view > select 2 -3 customers > More > Partner Mass Mailing).
4. Users have now the choice from which mailing list they want to unsubscribe when they click on the unsubscribe link at the bottom of the mail.
5. Mass mailings inherit from their campaign UTMs and mass mailing campaigns are linked to an UTM campaign.
6. Many little improvements
2015-01-07 18:01:58 +01:00

72 lines
3.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="unsubscribe">
<div class="container o_unsubscribe_form">
<div class="row">
<form t-attf-action="/mail/mailing/unsubscribe" method="POST" id="unsubscribe_form">
<input type="hidden" name="email" t-att-value="email"/>
<input type="hidden" name="mailing_id" t-att-value="mailing_id"/>
<div class="col-md-6 col-md-offset-3">
<h1 class="page-header">Mailing Subscriptions</h1>
<t t-if="contacts">
<div class="alert alert-info text-center">
<p>Choose your mailing subscriptions.</p>
</div>
<ul class="list-group">
<t t-foreach="contacts" t-as="contact">
<li class="list-group-item">
<input type="checkbox" class="mail_list_checkbox" name="contact_ids"
t-att-value="contact['id']" t-att-checked="'checked' if contact['opt_out'] == False else ''"/>
<t t-esc="contact.list_id.name"/>
</li>
</t>
</ul>
<div class="text-center mb16">
<input type="submit" id="send_form" class="btn btn-primary" value="Update my subscriptions"/>
</div>
</t>
<t t-if="contacts == False">
<div class="alert alert-info text-center">
<p>You are not subscribed to any of our mailing list.</p>
</div>
</t>
</div>
</form>
</div>
</div>
</template>
<template id="unsubscribed">
<div class="container mt8">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h1 class="page-header">Mailing Subscriptions</h1>
<div class="alert alert-success text-center">
<p>Your changes have been saved.</p>
</div>
</div>
</div>
</div>
</template>
<template id="page_unsubscribe" name="Unsubscribe">
<t t-call="website.layout">
<t t-call="mass_mailing.unsubscribe"/>
</t>
</template>
<template id="page_unsubscribed" name="Unsubscribed">
<t t-call="website.layout">
<t t-call="mass_mailing.unsubscribed"/>
</t>
</template>
</data>
</openerp>