1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
openmptcprouter-feeds/luci-theme-bootstrap/ucode/template/themes/bootstrap/sysauth.ut
2023-06-23 07:36:24 +08:00

48 lines
1.3 KiB
Text

{#
Copyright 2022 Jo-Philipp Wich <jo@mein.io>
Licensed to the public under the Apache License 2.0.
-#}
{% include('header', { blank_page: true }) %}
<section hidden>
<form method="post" class="cbi-map">
<div class="cbi-section">
<div class="cbi-section-node">
<div class="cbi-value">
<label class="cbi-value-title" for="luci_username">{{ _('Username') }}</label>
<div class="cbi-value-field">
<input name="luci_username" id="luci_username" type="text" autocomplete="username" value="{{ entityencode(duser, true) }}">
</div>
</div>
<div class="cbi-value">
<label class="cbi-value-title" for="luci_password">{{ _('Password') }}</label>
<div class="cbi-value-field">
<input name="luci_password" id="luci_password" type="password" autocomplete="current-password">
</div>
</div>
</div>
</div>
</form>
<hr>
{% if (fuser): %}
<div class="alert-message error">
{{ _('Invalid username and/or password! Please try again.') }}
</div>
{% endif %}
<button class="btn cbi-button-positive important">{{ _('Login') }}</button>
</section>
<div id="view">
<div class="spinning">{{ _('Loading view…') }}</div>
<script type="text/javascript">
L.require('ui').then(function(ui) {
ui.instantiateView('bootstrap.sysauth');
});
</script>
</div>
{% include('footer', { blank_page: true }) %}