54 lines
1.8 KiB
HTML
54 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Login with mongodb flask</title>
|
|
|
|
<link href="http://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="http://getbootstrap.com/examples/jumbotron-narrow/jumbotron-narrow.css" rel="stylesheet">
|
|
<link href="../static/signup.css" rel="stylesheet">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
<div class="header">
|
|
<nav>
|
|
<ul class="nav nav-pills pull-right">
|
|
<li role="presentation" ><a href="/main">Home</a></li>
|
|
<li role="presentation"><a href="/signin">Sign In</a></li>
|
|
<li role="presentation" class="active"><a href="#">Sign Up</a></li>
|
|
</ul>
|
|
</nav>
|
|
<h3 class="text-muted">Login with mongodb flask</h3>
|
|
</div>
|
|
|
|
<div class="jumbotron">
|
|
<h1>Signup</h1>
|
|
{% with messages = get_flashed_messages() %}
|
|
{% if messages %}
|
|
<ul class=flashes>
|
|
{% for message in messages %}
|
|
<li>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endwith %}
|
|
<form class="form-signin" action="/signup" method="post">
|
|
<label for="inputName" class="sr-only">Username</label>
|
|
<input type="name" name="username" id="inputName" class="form-control" placeholder="Username" required autofocus>
|
|
<label for="inputEmail" class="sr-only">Email address</label>
|
|
<input type="email" name="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus>
|
|
<label for="inputPassword" class="sr-only">Password</label>
|
|
<input type="password" name="password" id="inputPassword" class="form-control" placeholder="Password" required>
|
|
<button id="btnSignUp" class="btn btn-lg btn-primary btn-block" onclick = 'this.form.submit();' type="button">Signup</button>
|
|
</form>
|
|
</div>
|
|
|
|
<footer class="footer">
|
|
<p>© 2017</p>
|
|
</footer>
|
|
|
|
</div>
|
|
</body>
|
|
</html> |