inou/portal/templates/consent_ru.tmpl

28 lines
1.8 KiB
Cheetah

{{define "consent_ru"}}
<div class="page-container" style="justify-content: center; align-items: center;">
<div class="page-card" style="padding: 48px; max-width: 440px; width: 100%;">
<div style="text-align: center; margin-bottom: 24px; font-size: 1.5rem;"><span class="inou">inou</span> <span style="font-weight: 400; color: var(--text-muted);">health</span></div>
<h1 style="font-size: 1.75rem; text-align: center;">Разрешить доступ</h1>
<p class="intro" style="text-align: center; margin-bottom: 32px;">
<strong>{{.ClientName}}</strong> хочет получить доступ к твоим медицинским данным как <strong>{{.UserName}}</strong>.
</p>
<div style="background: var(--bg-secondary); border-radius: 8px; padding: 16px; margin-bottom: 24px;">
<p style="font-size: 0.9rem; color: var(--text); margin: 0;">Это приложение сможет читать все медицинские данные в твоём досье.</p>
</div>
<form action="/oauth/authorize" method="POST">
<input type="hidden" name="client_id" value="{{.ClientID}}">
<input type="hidden" name="redirect_uri" value="{{.RedirectURI}}">
<input type="hidden" name="response_type" value="{{.ResponseType}}">
<input type="hidden" name="state" value="{{.State}}">
<input type="hidden" name="code_challenge" value="{{.CodeChallenge}}">
<input type="hidden" name="code_challenge_method" value="{{.CodeChallengeMethod}}">
<button type="submit" name="action" value="allow" class="btn btn-primary btn-full" style="margin-bottom: 12px;">Разрешить</button>
<button type="submit" name="action" value="deny" class="btn btn-secondary btn-full">Отклонить</button>
</form>
</div>
{{template "footer"}}
</div>
{{end}}