2021-09-11 11:35:15 +00:00
|
|
|
{{ define "content" }}
|
|
|
|
<form class="form-signin" method="post">
|
|
|
|
<img src="/images/CAcert-logo.svg" width="300" height="68" alt="CAcert" class="mb-4">
|
|
|
|
<h1 class="h3 mb-3">{{ .Title }}</h1>
|
|
|
|
<p class="text-left">{{ .IntroText }}</p>
|
|
|
|
<p class="text-left">{{ .EmailChoiceText }}</p>
|
2023-08-03 08:45:21 +00:00
|
|
|
{{ with .FlashMessage }}
|
|
|
|
<div class="alert alert-{{ .Type }}" role="alert">
|
|
|
|
{{ .Message }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2021-09-11 11:35:15 +00:00
|
|
|
<div class="mb-3">
|
|
|
|
{{ if eq (len .emails) 1 }}
|
|
|
|
{{ $email_address := index .emails 0 }}
|
|
|
|
<input type="hidden" name="email" value="{{ $email_address }}" id="email_0">
|
|
|
|
<label for="email_0">{{ $email_address }}</label>
|
|
|
|
{{ else }}
|
|
|
|
{{ range $index, $element := .emails }}
|
2023-08-03 08:43:37 +00:00
|
|
|
<div class="form-check">
|
|
|
|
<input class="form-check-input" type="radio" name="email"
|
|
|
|
value="{{ $element }}" id="email_{{ $index }}"><label
|
|
|
|
class="form-check-label" for="email_{{ $index }}">{{ $element }}</label>
|
|
|
|
</div>
|
2021-09-11 11:35:15 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ .csrfField }}
|
|
|
|
</div>
|
|
|
|
<p class="text-left">{{ .RequestText }}</p>
|
|
|
|
<div class="mb-2">
|
2023-08-03 08:43:37 +00:00
|
|
|
<button class="btn btn-primary" type="submit" name="use-identity"
|
2021-09-11 11:35:15 +00:00
|
|
|
value="accept">{{ .AcceptLabel }}</button>
|
|
|
|
<button class="btn btn-outline-secondary" type="submit" name="use-identity"
|
|
|
|
value="reject">{{ .RejectLabel }}</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{{ end }}
|