mirror of
https://github.com/lukin/keywind.git
synced 2025-01-10 01:46:24 +00:00
Add template for device flow page
This commit is contained in:
parent
bdf966fdae
commit
626f0b9f8b
1 changed files with 28 additions and 0 deletions
28
theme/keywind/login/login-oauth2-device-verify-user-code.ftl
Normal file
28
theme/keywind/login/login-oauth2-device-verify-user-code.ftl
Normal 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>
|
Loading…
Reference in a new issue