{{ define "optin" }}
{{ template "header" .}}
<section>
    <h2>Confirm</h2>
    <p>
        You have been added to the following mailing lists:
    </p>

    <form method="post">
        <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>Private list</li>
                {{ end }}
            {{ end }}
        </ul>
        <p>
            <input type="hidden" name="confirm" value="true" />
            <button type="submit" class="button" id="btn-unsub">Confirm subscription(s)</button>
        </p>
    </form>
</section>

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