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" }}
</p>
<form method="post">
<form method="post" class="optin-form">
<ul>
{{ range $i, $l := .Data.Lists }}
<input type="hidden" name="l" value="{{ $l.UUID }}" />

View file

@ -3,7 +3,7 @@
<section class="section">
{{ if not .Data.ShowManage }}
<h2>{{ L.T "public.unsubTitle" }}</h2>
<form method="post">
<form method="post" class="unsub-form">
<div>
{{ if .Data.AllowBlocklist }}
<p>{{ L.T "public.unsubHelp" }}</p>
@ -23,7 +23,7 @@
</div>
</form>
{{ else }}
<form method="post">
<form method="post" class="manage-form">
<div>
<input type="hidden" name="manage" value="true" />
@ -62,7 +62,7 @@
</section>
{{ 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>
<h2>{{ L.T "public.privacyTitle" }}</h2>
{{ if .Data.AllowExport }}