Add classes to public forms to make them scriptable.

This commit is contained in:
Kailash Nadh 2023-08-07 09:48:08 +05:30
parent b1fa28980e
commit f4f51d11c5
2 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@
{{ L.T "public.confirmSubInfo" }} {{ L.T "public.confirmSubInfo" }}
</p> </p>
<form method="post"> <form method="post" class="optin-form">
<ul> <ul>
{{ range $i, $l := .Data.Lists }} {{ range $i, $l := .Data.Lists }}
<input type="hidden" name="l" value="{{ $l.UUID }}" /> <input type="hidden" name="l" value="{{ $l.UUID }}" />

View file

@ -3,7 +3,7 @@
<section class="section"> <section class="section">
{{ if not .Data.ShowManage }} {{ if not .Data.ShowManage }}
<h2>{{ L.T "public.unsubTitle" }}</h2> <h2>{{ L.T "public.unsubTitle" }}</h2>
<form method="post"> <form method="post" class="unsub-form">
<div> <div>
{{ if .Data.AllowBlocklist }} {{ if .Data.AllowBlocklist }}
<p>{{ L.T "public.unsubHelp" }}</p> <p>{{ L.T "public.unsubHelp" }}</p>
@ -23,7 +23,7 @@
</div> </div>
</form> </form>
{{ else }} {{ else }}
<form method="post"> <form method="post" class="manage-form">
<div> <div>
<input type="hidden" name="manage" value="true" /> <input type="hidden" name="manage" value="true" />
@ -62,7 +62,7 @@
</section> </section>
{{ if or .Data.AllowExport .Data.AllowWipe }} {{ if or .Data.AllowExport .Data.AllowWipe }}
<form id="data-form" method="post" action="" onsubmit="return handleData()"> <form id="data-form" class="data-form" method="post" action="" onsubmit="return handleData()">
<section> <section>
<h2>{{ L.T "public.privacyTitle" }}</h2> <h2>{{ L.T "public.privacyTitle" }}</h2>
{{ if .Data.AllowExport }} {{ if .Data.AllowExport }}