PowerDNS-Admin/app/templates/login.html

131 lines
4.6 KiB
HTML
Raw Normal View History

2015-12-13 10:34:12 +01:00
<!DOCTYPE html>
<html>
2015-12-13 10:34:12 +01:00
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>DNS Control Panel - Log In</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
{% assets "css_login" -%}
<link rel="stylesheet" href="{{ ASSET_URL }}">
{%- endassets %}
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
2015-12-13 10:34:12 +01:00
</head>
<body class="hold-transition login-page">
<div class="login-box">
<div class="login-logo">
<a href="{{ url_for('index') }}">Sign In {{ login_title }}</a>
</div>
<!-- /.login-logo -->
<div class="login-box-body">
{% if error %}
<div class="alert alert-danger alert-dismissible">
<button type="button" class="close" data-dismiss="alert"
aria-hidden="true">&times;</button>
{{ error }}
</div>
{% endif %}
<form action="" method="post">
<div class="form-group">
{% if username %}
<input type="text" class="form-control" placeholder="Username" name="username" value="{{ username }}">
{% else %}
<input type="text" class="form-control" placeholder="Username" name="username">
2015-12-13 10:34:12 +01:00
{% endif %}
<span class="glyphicon glyphicon-user form-control-feedback"></span>
</div>
<div class="form-group">
{% if password %}
<input type="password" class="form-control" placeholder="Password" name="password" value="{{ password }}">
{% else %}
<input type="password" class="form-control" placeholder="Password" name="password">
{% endif %}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
2016-06-16 10:33:05 +02:00
<div class="form-group">
<input type="otptoken" class="form-control" placeholder="OTP Token" name="otptoken">
</div>
{% if ldap_enabled and basic_enabled %}
<div class="form-group">
<select class="form-control" name="auth_method">
<option value="LOCAL">LOCAL Authentication</option>
{% if login_ldap_first_setting %}
<option value="LDAP" selected="selected">LDAP Authentication</option>
{% else %}
<option value="LDAP">LDAP Authentication</option>
{% endif %}
</select>
2016-08-05 10:20:41 +02:00
</div>
{% elif ldap_enabled and not basic_enabled %}
<div class="form-group">
2016-08-05 10:20:41 +02:00
<input type="hidden" name="auth_method" value="LDAP">
</div>
{% elif basic_enabled and not ldap_enabled %}
<div class="form-group">
2016-08-05 10:20:41 +02:00
<input type="hidden" name="auth_method" value="LOCAL">
</div>
{% else %}
<div class="form-group">
2016-08-05 10:20:41 +02:00
<input type="hidden" name="auth_method" value="LOCAL">
</div>
{% endif %}
2016-08-05 10:20:41 +02:00
<div class="row">
<div class="col-xs-8">
<div class="checkbox icheck">
<label>
<input type="checkbox"> Remember Me
2015-12-13 10:34:12 +01:00
</label>
</div>
2015-12-13 10:34:12 +01:00
</div>
<!-- /.col -->
<div class="col-xs-4">
2016-05-11 02:11:17 +02:00
<button type="submit" class="btn btn-flat btn-primary btn-block">Sign In</button>
2015-12-13 10:34:12 +01:00
</div>
<!-- /.col -->
</div>
2015-12-13 10:34:12 +01:00
</form>
2017-09-22 16:28:09 +02:00
{% if google_enabled %}
<a href="{{ url_for('google_login') }}">Google oauth login</a>
{% endif %}
2017-10-31 19:21:22 +01:00
{% if saml_enabled %}
<br>
<a href="{{ url_for('saml_login') }}">SAML login</a>
{% endif %}
2016-08-05 10:20:41 +02:00
{% if github_enabled %}
2017-10-31 19:21:22 +01:00
<br>
2016-08-05 10:20:41 +02:00
<a href="{{ url_for('github_login') }}">Github oauth login</a>
{% endif %}
2016-06-13 06:48:48 +02:00
{% if signup_enabled %}
2017-10-31 19:21:22 +01:00
<br>
<a href="{{ url_for('register') }}" class="text-center">Create an account </a>
2016-06-13 06:48:48 +02:00
{% endif %}
</div>
<!-- /.login-box-body -->
<div class="login-box-footer">
<center><p>2018 &copy; Khanh Ngo</p></center>
</div>
2015-12-13 10:34:12 +01:00
</div>
<!-- /.login-box -->
{% assets "js_login" -%}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{%- endassets %}
2015-12-13 10:34:12 +01:00
<script>
$(function () {
$('input').iCheck({
checkboxClass: 'icheckbox_square-blue',
radioClass: 'iradio_square-blue',
increaseArea: '20%' // optional
});
});
2015-12-13 10:34:12 +01:00
</script>
</body>
</html>