1
0
mirror of https://github.com/Adam-Ant/QuotesDB synced 2024-07-11 07:06:10 +00:00

Move some structure to child files, allows more flexibility

This commit is contained in:
Adam Dodman 2017-10-05 22:05:34 +01:00
parent 130584e280
commit b99c0f195f
6 changed files with 43 additions and 30 deletions

View File

@ -1,5 +1,6 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block body %} {% block body %}
<div class="container">
<h1> Add new Quote </h1> <h1> Add new Quote </h1>
<form method="post"> <form method="post">
<div class="form-group"> <div class="form-group">
@ -24,4 +25,5 @@
</div> </div>
</form> </form>
</div>
{% endblock %} {% endblock %}

View File

@ -1,8 +1,10 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block body %} {% block body %}
<div class="container">
<div class="jumbotron"> <div class="jumbotron">
<h1>Clockwork Quotes Database</h1> <h1>Clockwork Quotes Database</h1>
<p><a class="btn btn-lg btn-success" href="/quotes" role="button">View Quotes</a></p> <p><a class="btn btn-lg btn-success" href="/quotes" role="button">View Quotes</a></p>
<p><a class="btn btn-lg btn-info" href="/addquote" role="button">Add a Quote</a></p> <p><a class="btn btn-lg btn-info" href="/addquote" role="button">Add a Quote</a></p>
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@ -54,8 +54,10 @@
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endwith %} {% endwith %}
</div>
{% block body %}{% endblock %} {% block body %}{% endblock %}
<div class="container">
<footer class="footer"> <footer class="footer">
<p>&copy; Adam Dodman 2017</p> <p>&copy; Adam Dodman 2017</p>
</footer> </footer>

View File

@ -1,5 +1,6 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block body %} {% block body %}
<div class="container">
<form method="post" role="form" data-toggle="validator"> <form method="post" role="form" data-toggle="validator">
<div class="form-group has-feedback"> <div class="form-group has-feedback">
<label class="control-label col-sm-4" for="username">Username:</label> <label class="control-label col-sm-4" for="username">Username:</label>
@ -21,6 +22,7 @@
</div> </div>
</div> </div>
</form> </form>
</div>
{% endblock %} {% endblock %}

View File

@ -1,5 +1,6 @@
{% extends "layout.html" %} {% extends "layout.html" %}
{% block body %} {% block body %}
<div class="container">
<h1> Password Reset: </h1> <h1> Password Reset: </h1>
<form method="post" role="form" data-toggle="validator"> <form method="post" role="form" data-toggle="validator">
<div class="form-group"> <div class="form-group">
@ -29,6 +30,6 @@
</div> </div>
</div> </div>
</form> </form>
</div>
{% endblock %} {% endblock %}

View File

@ -17,6 +17,8 @@
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<div class="container-fluid">
<div class="col-md-12">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-hover table-bordered" id="QuoteTable"> <table class="table table-hover table-bordered" id="QuoteTable">
<thead> <thead>
@ -47,4 +49,6 @@
</tbody> </tbody>
</table> </table>
</div> </div>
</div>
</div>
{% endblock %} {% endblock %}