2021-01-31 18:49:39 +08:00
|
|
|
{{ 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>
|
2021-04-17 16:04:37 +08:00
|
|
|
<input name="email" required="true" type="email" placeholder="{{ L.T "subscribers.email" }}" autofocus="true" >
|
2021-04-21 16:31:32 +08:00
|
|
|
|
|
|
|
<input name="nonce" class="nonce" value="" />
|
2021-01-31 18:49:39 +08:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label>{{ L.T "public.subName" }}</label>
|
|
|
|
<input name="name" type="text" placeholder="{{ L.T "public.subName" }}" >
|
|
|
|
</p>
|
2022-10-19 00:14:57 +08:00
|
|
|
<br />
|
2021-09-15 22:42:34 +08:00
|
|
|
<ul class="lists">
|
2021-01-31 18:49:39 +08:00
|
|
|
<h2>{{ L.T "globals.terms.lists" }}</h2>
|
|
|
|
{{ range $i, $l := .Data.Lists }}
|
2021-09-15 22:42:34 +08:00
|
|
|
<li>
|
|
|
|
<input checked="true" id="l-{{ $l.UUID}}" type="checkbox" name="l" value="{{ $l.UUID }}" >
|
|
|
|
<label for="l-{{ $l.UUID}}">{{ $l.Name }}</label>
|
2022-11-01 23:29:21 +08:00
|
|
|
{{ if ne $l.Description "" }}
|
|
|
|
<p class="description">{{ $l.Description }}</p>
|
|
|
|
{{ end }}
|
2021-09-15 22:42:34 +08:00
|
|
|
</li>
|
2021-01-31 18:49:39 +08:00
|
|
|
{{ end }}
|
2021-09-15 22:42:34 +08:00
|
|
|
</ul>
|
2021-01-31 18:49:39 +08:00
|
|
|
<p>
|
|
|
|
<button type="submit" class="button">{{ L.T "public.sub" }}</button>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{ template "footer" .}}
|
|
|
|
{{ end }}
|