view email_subscribe.html @ 8:a794183069ad 5.6 tip

Update to 5.6 series
author Cédric Krier <ced@b2ck.com>
date Fri, 17 Jul 2020 13:40:05 +0200
parents 567ba1b8cd49
children
line wrap: on
line source

<!DOCTYPE html>
<html xmlns:py="http://genshi.edgewall.org/">
    <head>
        <title>Subscription Request</title>
    </head>
    <body>
        <py:for each="record in records">
        <div style="display: block; text-align: center">
            <div>
                <h1>Just one more step...</h1>
                <py:choose>
                    <py:when test="record.party and record.party.name">
                    <p>${record.party.name}</p>
                    </py:when>
                    <py:otherwise>
                    <p>${record.email}</p>
                    </py:otherwise>
                </py:choose>
                <form action="${record.get_email_subscribe_url()}">
                    <py:for each="name, value in extract_params(record.get_email_subscribe_url())">
                    <input type="hidden" name="${name}" value="${value}"/>
                    </py:for>
                    <button type="submit"
                            style="cursor: pointer
                            padding: 0.5em 1em; font-size: 2em;
                            border: 1px solid #2E6DA4; border-radius: 4px;
                            color: #FFF; background-color: #337AB7;">
                        Subscribe to ${record.list_.name}
                    </button>
                </form>
            </div>
            <hr style="margin-top: 20px;
                border-style: solid none none; border-color: #EEE"></hr>
            <div style="font-size: 80%; color: #777">
                <p>Button is not working? Paste this into your browser:</p>
                <p>${record.get_email_subscribe_url()}</p>
                <p>If you received this email by mistake, just ignore it.</p>
            </div>
        </div>
        </py:for>
    </body>
</html>