Newer
Older
<!DOCTYPE html>
<html>
<head>
{% for src in js %}
<script type="text/javascript" src="{{ src }}"></script>
{% endfor %}
{% for src in css %}
<link type="text/css" rel="stylesheet" href="{{ src }}">
{% endfor %}
<link type="text/css" rel="stylesheet" href="{{ url_for( 'send_app_files', path = 'app.css' ) }}">
<script type="text/javascript">
baseurl = "{{ baseurl }}";
challenge = "{{ challenge }}";
login_action = function()
{
var username = $( '#username' ).val();
var password = $( '#password' ).val();
var passval = sha512( challenge + ':' + sha512( username + ':' + password ) );
$( '#password' ).val( passval );
};
</script>
</head>
<body>
<div class="icnml_login">
<h1 style="margin-bottom: 0px">ICNML</h1>
<h4 style="margin-top: 0px">International Close Non-Matches Library</h4>
<div class="ui-widget-header ui-corner-top icnml_login_top">Please enter your login information</div>
<form action="{{ url_for( 'do_login' ) }}" method="post" onsubmit="login_action();" id="login_form">
<div class="ui-widget-content ui-corner-bottom icnml_login_form">
<div class="icnml_login_field">
<div style="text-align: right;">
<label for="username">Username</label>
</div>
<div>
<input id="username" name="username" type="text" style="width: 100%">
</div>
<div style="text-align: right;">
<label for="password">Password</label>
</div>
<div>
<input id="password" name="password" type="password" style="width: 100%">
<div>
<input id="challenge" name="challenge" type="hidden" value="{{ challenge }}">
</div>
<div class="icnml_login_button">
<input class="ui-button ui-widget ui-state-default ui-corner-all" type="submit" value="Login">
</div>
</div>
</form>
</div>
</body>
</html>