mirror of
https://github.com/Adam-Ant/QuotesDB
synced 2024-12-20 11:34:35 +00:00
Move some structure to child files, allows more flexibility
This commit is contained in:
parent
130584e280
commit
b99c0f195f
@ -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 %}
|
||||||
|
@ -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 %}
|
||||||
|
@ -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>© Adam Dodman 2017</p>
|
<p>© Adam Dodman 2017</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -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 %}
|
||||||
|
@ -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 %}
|
||||||
|
@ -17,34 +17,38 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="table-responsive">
|
<div class="container-fluid">
|
||||||
<table class="table table-hover table-bordered" id="QuoteTable">
|
<div class="col-md-12">
|
||||||
<thead>
|
<div class="table-responsive">
|
||||||
<tr>
|
<table class="table table-hover table-bordered" id="QuoteTable">
|
||||||
<th>Date Added</th>
|
<thead>
|
||||||
<th>User</th>
|
<tr>
|
||||||
<th>Quote</th>
|
<th>Date Added</th>
|
||||||
<th>Context</th>
|
<th>User</th>
|
||||||
{% if data[1] %}
|
<th>Quote</th>
|
||||||
<th>Added By:</th>
|
<th>Context</th>
|
||||||
<th><span class="glyphicon glyphicon-trash"></span></th>
|
{% if data[1] %}
|
||||||
{% endif %}
|
<th>Added By:</th>
|
||||||
</tr>
|
<th><span class="glyphicon glyphicon-trash"></span></th>
|
||||||
</thead>
|
{% endif %}
|
||||||
<tbody>
|
</tr>
|
||||||
{% for entry in data[0] %}
|
</thead>
|
||||||
<tr>
|
<tbody>
|
||||||
<td><a href="/">{{ entry[2] }}</a></td>
|
{% for entry in data[0] %}
|
||||||
<td>{{ uid_to_user(entry[3]) }}</td>
|
<tr>
|
||||||
<td>{{ entry[1] }}</td>
|
<td><a href="/">{{ entry[2] }}</a></td>
|
||||||
<td>{{ entry[4] }}</td>
|
<td>{{ uid_to_user(entry[3]) }}</td>
|
||||||
{% if data[1] %}
|
<td>{{ entry[1] }}</td>
|
||||||
<td>{{ uid_to_user(entry[5]) }}</td>
|
<td>{{ entry[4] }}</td>
|
||||||
<td><a href="/deletequote?id={{ entry[0] }}" class="btn btn-danger"role="button" ><span class="glyphicon glyphicon-trash"></span></a></td>
|
{% if data[1] %}
|
||||||
{% endif %}
|
<td>{{ uid_to_user(entry[5]) }}</td>
|
||||||
</tr>
|
<td><a href="/deletequote?id={{ entry[0] }}" class="btn btn-danger"role="button" ><span class="glyphicon glyphicon-trash"></span></a></td>
|
||||||
{% endfor %}
|
{% endif %}
|
||||||
</tbody>
|
</tr>
|
||||||
</table>
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user