mirror of
https://github.com/knadh/listmonk.git
synced 2025-03-01 16:55:26 +08:00
45 lines
1.6 KiB
HTML
45 lines
1.6 KiB
HTML
{{ define "subscription-form" }}
|
|
{{ template "header" . }}
|
|
<section>
|
|
<h2>{{ L.T "public.subTitle" }}</h2>
|
|
|
|
<form method="post" action="" class="form">
|
|
<div>
|
|
<p>
|
|
<label>{{ L.T "subscribers.email" }}</label>
|
|
<input name="email" required="true" type="email" placeholder="{{ L.T "subscribers.email" }}" autofocus="true" >
|
|
|
|
<input name="nonce" class="nonce" value="" />
|
|
</p>
|
|
<p>
|
|
<label>{{ L.T "public.subName" }}</label>
|
|
<input name="name" type="text" placeholder="{{ L.T "public.subName" }}" >
|
|
</p>
|
|
<br />
|
|
<ul class="lists">
|
|
<h2>{{ L.T "globals.terms.lists" }}</h2>
|
|
{{ range $i, $l := .Data.Lists }}
|
|
<li>
|
|
<input checked="true" id="l-{{ $l.UUID}}" type="checkbox" name="l" value="{{ $l.UUID }}" >
|
|
<label for="l-{{ $l.UUID}}">{{ $l.Name }}</label>
|
|
{{ if ne $l.Description "" }}
|
|
<p class="description">{{ $l.Description }}</p>
|
|
{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
<p>
|
|
<button type="submit" class="button">{{ L.T "public.sub" }}</button>
|
|
|
|
{{ if .EnablePublicArchive }}
|
|
<p class="right">
|
|
<a href="{{ .RootURL }}/archive">{{ L.T "public.archiveTitle" }}</a>
|
|
</p>
|
|
{{ end }}
|
|
</p>
|
|
</div>
|
|
</form>
|
|
</section>
|
|
|
|
{{ template "footer" .}}
|
|
{{ end }}
|