forgejo/templates/user/auth/consent.tmpl
Minecon724 799d99c9b4
Some checks are pending
/ release (push) Waiting to run
testing / backend-checks (push) Waiting to run
testing / frontend-checks (push) Waiting to run
testing / test-unit (push) Blocked by required conditions
testing / test-e2e (push) Blocked by required conditions
testing / test-remote-cacher (redis) (push) Blocked by required conditions
testing / test-remote-cacher (valkey) (push) Blocked by required conditions
testing / test-remote-cacher (garnet) (push) Blocked by required conditions
testing / test-remote-cacher (redict) (push) Blocked by required conditions
testing / test-mysql (push) Blocked by required conditions
testing / test-pgsql (push) Blocked by required conditions
testing / test-sqlite (push) Blocked by required conditions
testing / security-check (push) Blocked by required conditions
Terms of Service support
2025-05-06 16:10:14 +00: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 }}