<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

<!-- Email Designer main page -->
<template id="designer_index" name="Email Designer">
    <t t-call="website.layout">
        <t t-set="head">
            <script type="text/javascript" src="/website_mail/static/src/js/website_email_designer.js"></script>
        </t>
        <div id="wrap">
            <div class="container">
                <h1 t-field="template.name"/>
                <a t-att-href="'/web#action=email_template.action_email_template_tree_all&amp;id=%d' % template.id">
                    Back to back-end
                </a>
                <div class="row" style="width: 600px;">
                    <div class="row">
                        <div class="col-lg-3"><b>Email From</b></div>
                        <div class="col-lg-9"><span t-field="template.email_from"/></div>
                    </div>

                    <div class="row">
                        <div class="col-lg-3"><b>To (Email)</b></div>
                        <div class="col-lg-9"><span t-field="template.email_to"/></div>
                    </div>

                    <div class="row">
                        <div class="col-lg-3"><b>To (Partners)</b></div>
                        <div class="col-lg-9"><span t-field="template.partner_to"/></div>
                    </div>

                    <div class="row">
                        <div class="col-lg-3"><b>Reply To</b></div>
                        <div class="col-lg-9"><span t-field="template.reply_to"/></div>
                    </div>

                    <div class="row">
                        <div class="col-lg-3"><b>Subject</b></div>
                        <div class="col-lg-9"><span t-field="template.subject"/></div>
                    </div>

                    <div class="row well">
                        <div t-field="template.body_html" style="position: relative;"/>
                    </div>
                </div>
            </div>
        </div>
    </t>
    <t t-set="website.footer"></t>
</template>

</data>
</openerp>


<commit_msg>[IMP] website_mail: email designer: improved template + link to backend<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>

<!-- Email Designer main page -->
<template id="designer_index" name="Email Designer">
    <t t-call="website.layout">
        <t t-set="head">
            <script type="text/javascript" src="/website_mail/static/src/js/website_email_designer.js"></script>
        </t>
        <div id="wrap">
            <div class="container">
                <div class="row">
                    <div class="col-md-8">
                        <a class="pull-right mt32"
                                t-att-href="'/web#return_label=Website&amp;action=email_template.action_email_template_tree_all&amp;view_type=form&amp;id=%d' % template.id">
                            <button class="btn btn-primary">Back to Template Form</button>
                        </a>
                        <h1 t-field="template.name"/>
                        <div class="row" style="width: 600px;">
                            <div class="row">
                                <div class="col-lg-3"><b>Email From</b></div>
                                <div class="col-lg-9"><span t-field="template.email_from"/></div>
                            </div>

                            <div class="row">
                                <div class="col-lg-3"><b>To (Email)</b></div>
                                <div class="col-lg-9"><span t-field="template.email_to"/></div>
                            </div>

                            <div class="row">
                                <div class="col-lg-3"><b>To (Partners)</b></div>
                                <div class="col-lg-9"><span t-field="template.partner_to"/></div>
                            </div>

                            <div class="row">
                                <div class="col-lg-3"><b>Reply To</b></div>
                                <div class="col-lg-9"><span t-field="template.reply_to"/></div>
                            </div>

                            <div class="row">
                                <div class="col-lg-3"><b>Subject</b></div>
                                <div class="col-lg-9"><span t-field="template.subject"/></div>
                            </div>

                            <div class="row well">
                                <div t-field="template.body_html" style="position: relative;"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </t>
    <t t-set="website.footer"></t>
</template>

</data>
</openerp>



{'fraction_non_alphanumeric': 0.16781898177247015, 'fraction_numerical': 0.007751937984496124, 'mean_word_length': 1.223567768979972, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 2, '>': 155, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4224652', 'n_tokens_mistral': 1390, 'n_tokens_neox': 1305, 'n_words': 217}