forgejo/templates/user/auth/consent.tmpl
Minecon724 3bf340d1ca
feat: Legal checkboxes (#14)
commit 28a23b5a57
Author: Minecon724 <minecon724@noreply.git.m724.eu>
Date:   Sat Sep 13 11:57:09 2025 +0000

    Add the form

commit 3fed792929
Author: Minecon724 <minecon724@noreply.git.m724.eu>
Date:   Sat Sep 13 11:56:59 2025 +0000

    Add the config option
2025-10-05 17:16:53 +02:00

21 lines
801 B
Go HTML Template

{{ if (.TermsOfServiceURL) }}
<div class="inline field required">
<div class="ui checkbox">
<input id="consent_terms" name="consent_terms" type="checkbox">
<label for="consent_terms">{{ ctx.Locale.Tr "consent.terms_of_service" .TermsOfServiceURL }}</label>
</div>
</div>
{{ else }}
<input id="consent_terms" name="consent_terms" type="checkbox" checked hidden>
{{ end }}
{{ if (.PrivacyPolicyURL) }}
<div class="inline field required">
<div class="ui checkbox">
<input id="consent_privacy" name="consent_privacy" type="checkbox">
<label for="consent_privacy">{{ ctx.Locale.Tr "consent.privacy_policy" .PrivacyPolicyURL }}</label>
</div>
</div>
{{ else }}
<input id="consent_privacy" name="consent_privacy" type="checkbox" checked hidden>
{{ end }}