Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

879 B
Raw Blame
{{ define "optin" }}
{{ template "header" .}}
<section>
    <h2>{{ L.T "globals.buttons.confirm" }}</h2>
    <p>
        {{ L.T "public.confirmSubInfo" }}
    </p>

    <form method="post" class="optin-form">
        <ul>
            {{ range $i, $l := .Data.Lists }}
                <input type="hidden" name="l" value="{{ $l.UUID }}" />
                {{ if eq $l.Type "public" }}
                    <li>{{ $l.Name }}</li>
                {{ else }}
                    <li>{{ L.Ts "public.subPrivateList" }}</li>
                {{ end }}
            {{ end }}
        </ul>
        <p>
            <input type="hidden" name="confirm" value="true" />
            <button type="submit" class="button" id="btn-unsub">
                {{ L.Ts "globals.buttons.confirmSubscription" }}
            </button>
        </p>
    </form>
</section>

{{ template "footer" .}}
{{ end }}