Source

django-swingcms / swingcms / mailserver / templates / mailserver / subscribe_as_plugin.html

Full commit
{% load i18n %}



<div id='subscribe_as_plugin'>

    <table>
        <tr>
            <td class='col_1'>

                <h3>{% trans 'Subscribe our newsletter.' %}</h3><br />

                {% if plugin.link_to_privacy_policy %}

                        <div id='acceptance'>

                            {% trans 'read first our' %} <b><a href='{{ plugin.link_to_privacy_policy }}'>{% trans 'privacy policy' %}</a></b>

                        </div>

                    {% endif %}
            </td>
            <td class='col_2'>

                <form enctype='multipart/form-data' method='post' action="/subscribe" onsubmit='js_single_submit();'>

                    {% csrf_token %}

                    <span class='large'>
                        {{ plugin.form.email.as_widget }}
                    </span>
                    <br />

                    {% if plugin.form.categories %}
                        {{ plugin.form.categories.as_widget }}
                        <br />
                    {% endif %}

                    {{ plugin.form.mode.as_widget }}
                    <br />

                    {% if plugin.link_to_privacy_policy %}
                            {{ plugin.form.accept.as_widget }} <span>{{ plugin.form.accept.label }}</span>
                    {% endif %}

                    <input name='submit' class='submit' type='submit' value='Submit' />

                </form>

            </td>
        </tr>
    </table>

</div>