Created
September 26, 2020 04:35
-
-
Save tjkhara/66e648792fc951ab52612107cdaaea8d to your computer and use it in GitHub Desktop.
Flask html template with bootstrap formatting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% extends "base.html" %} | |
| {% block content %} | |
| <div class="jumbotron"> | |
| <div align='center'> | |
| <h1>Welcome to the page for {{ current_user.username }}</h1> | |
| <img align="center" src="{{ url_for('static', filename='profile_pics/'+current_user.profile_image) }}"> | |
| </div> | |
| </div> | |
| <div class="container"> | |
| <form method="POST"> | |
| {{ form.hidden_tag() }} | |
| <div class="form-group"> | |
| {{ form.username.label(class='form-group') }} {{ form.username(class='form-control') }} | |
| </div> | |
| <div class="form-group"> | |
| {{ form.email.label(class='form-group') }} {{ form.email(class='form-control') }} | |
| </div> | |
| <div class="form-group"> | |
| {{ form.picture.label(class='form-group') }} {{ form.picture(class='form-control') }} | |
| </div> | |
| <div class="form-group"> | |
| {{ form.submit(class="btn btn-primary") }} | |
| </div> | |
| </form> | |
| </div> | |
| {% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment