July 2017
Intermediate to advanced
374 pages
8h
English
Let's create a profile page (profile.html), which will be accessible by the user already logged in at the home page in the navigation panel.
Add the following code to profile.html:
<div class="container">
<div class="row">
<center><h2>Profile</h2></center>
<div class="col-md-4 col-md-offset-4">
<form method=POST action="{{ url_for('profile') }}">
<div class="form-group">
<label >Username</label>
<input type="text" class="form-control" name="username" value='{{username}}'>
</div>
<div class="form-group">
<label >Password</label>
<input type="password" class="form-control" name="pass" value='{{password}}'>
</div>
<div class="form-group">
<label >Email</label>
<input type="email" class="form-control" name="email" value={{email}}> ...