Add template for device flow page

This commit is contained in:
Sergey Shatunov 2024-06-14 06:34:06 +08:00
parent bdf966fdae
commit 626f0b9f8b
No known key found for this signature in database
GPG key ID: C9228B4C880E14B6

View file

@ -0,0 +1,28 @@
<#import "template.ftl" as layout>
<#import "components/atoms/button.ftl" as button>
<#import "components/atoms/button-group.ftl" as buttonGroup>
<#import "components/atoms/form.ftl" as form>
<#import "components/atoms/input.ftl" as input>
<@layout.registrationLayout; section>
<#if section = "header">
${msg("oauth2DeviceVerificationTitle")}
<#elseif section = "form">
<@form.kw action=url.oauth2DeviceVerificationAction method="post">
<@input.kw
autocomplete="off"
autofocus=true
label=msg("verifyOAuth2DeviceUserCode")
name="device_user_code"
type="text"
dir="ltr"
/>
<@buttonGroup.kw>
<@button.kw color="primary" name="submitAction" type="submit">
${msg("doSubmit")}
</@button.kw>
</@buttonGroup.kw>
</@form.kw>
</#if>
</@layout.registrationLayout>