kanidm/server/core/templates/oauth2_device_login.html
George Wu a3358828a8
Add support for prefers-color-scheme using Bootstrap classes. ()
* Add support for prefers-color-scheme using Bootstrap classes.
* Move stylesheet changes to separate javascript file.
* fix(html): don't specify the integrity hash in the tag for style.js
* fix(log): debug-log integrity hashes for troubleshooting
* fix(css): move to using bootstrap standard variables for colours and theming
* fix(js): rewrite to simplify and use standard bootstrap functionality
* fix(makefile): codespell thingie was complaining
* run prettier on css/js.

---------

Co-authored-by: James Hodgkinson <james@terminaloutcomes.com>
2025-01-06 10:58:42 +00:00

36 lines
1.2 KiB
HTML

(% extends "base.html" %)
(% block body %)
<main id="main" class="flex-shrink-0 form-signin">
<center>
(% if domain_custom_image %)
<img src="/ui/images/domain" alt="Kanidm" class="kanidm_logo" />
(% else %)
<img src="/pkg/img/logo-square.svg" alt="Kanidm" class="kanidm_logo" />
(% endif %)
<br />
<label for="user_code" class="form-label">Please enter the code
provided to log in!</label>
<form id="login" action="/ui/oauth2/device" method="post">
<div class="input-group mb-3">
<input
autofocus=true
class="autofocus form-control"
id="user_code"
name="user_code"
type="text"
autocomplete
value="(( user_code ))"
required=true />
</div>
<div class="input-group mb-3 justify-content-md-center">
<button
type="submit"
class="btn btn-primary">Continue</button>
</div>
</form>
</center>
</main>
(% endblock %)