added containers for the rest of hte pages after last commit.

This commit is contained in:
2015-07-30 10:49:57 +01:00
parent 231fcb4c27
commit af1ba13d86
3 changed files with 56 additions and 52 deletions

View File

@@ -11,6 +11,7 @@
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="container">
<h2 class="center">Comics</h2> <h2 class="center">Comics</h2>
<div class="list-group"> <div class="list-group">
{% if file_list %} {% if file_list %}
@@ -26,4 +27,5 @@
<p class="list-group-item">No comics.</p> <p class="list-group-item">No comics.</p>
{% endif %} {% endif %}
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@@ -13,13 +13,14 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{% if error_message %} <div class="container">
<div class="alert alert-danger" role="alert">{{ error_message|safe }}</div> {% if error_message %}
{% endif %} <div class="alert alert-danger" role="alert">{{ error_message|safe }}</div>
{% if success_message %} {% endif %}
<div class="alert alert-success" role="alert">{{ success_message|safe }}</div> {% if success_message %}
{% endif %} <div class="alert alert-success" role="alert">{{ success_message|safe }}</div>
<form method="POST"> {% endif %}
<form method="POST">
{% csrf_token %} {% csrf_token %}
{% for item in form %} {% for item in form %}
<div class="form-group"> <div class="form-group">
@@ -28,19 +29,20 @@
</div> </div>
{% endfor %} {% endfor %}
<button type="submit" class="btn btn-default">Submit</button> <button type="submit" class="btn btn-default">Submit</button>
</form> </form>
{% endblock %} {% endblock %}
{% block content2 %} {% block content2 %}
{% if error_message %} {% if error_message %}
<div class="alert alert-danger" role="alert">{{ error_message }}</div> <div class="alert alert-danger" role="alert">{{ error_message }}</div>
{% endif %} {% endif %}
<form method="POST"> <form method="POST">
{% csrf_token %} {% csrf_token %}
<div class="form-group"> <div class="form-group">
<label for="base_directory">Base Directory</label> <label for="base_directory">Base Directory</label>
<input type="text" class="form-control" id="base_directory" name="base_directory" placeholder="Base Directory" value="{{ base_dir.value }}"> <input type="text" class="form-control" id="base_directory" name="base_directory" placeholder="Base Directory" value="{{ base_dir.value }}">
</div> </div>
<button type="submit" class="btn btn-default">Submit</button> <button type="submit" class="btn btn-default">Submit</button>
</form> </form>
</div>
{% endblock %} {% endblock %}

View File

@@ -13,7 +13,8 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<table class="table table-striped table-bordered table-hover"> <div class="container">
<table class="table table-striped table-bordered table-hover">
<thead> <thead>
<tr> <tr>
<th>#</th> <th>#</th>
@@ -32,10 +33,9 @@
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
</table>
<a class="btn btn-default" href="/comic/settings/users/add/" role="button">Add User</a>
</table> </div>
<a class="btn btn-default" href="/comic/settings/users/add/" role="button">Add User</a>
{% endblock %} {% endblock %}
{% block script %} {% block script %}