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

View File

@@ -13,13 +13,14 @@
{% endblock %}
{% block content %}
{% if error_message %}
<div class="alert alert-danger" role="alert">{{ error_message|safe }}</div>
{% endif %}
{% if success_message %}
<div class="alert alert-success" role="alert">{{ success_message|safe }}</div>
{% endif %}
<form method="POST">
<div class="container">
{% if error_message %}
<div class="alert alert-danger" role="alert">{{ error_message|safe }}</div>
{% endif %}
{% if success_message %}
<div class="alert alert-success" role="alert">{{ success_message|safe }}</div>
{% endif %}
<form method="POST">
{% csrf_token %}
{% for item in form %}
<div class="form-group">
@@ -28,19 +29,20 @@
</div>
{% endfor %}
<button type="submit" class="btn btn-default">Submit</button>
</form>
{% endblock %}
</form>
{% endblock %}
{% block content2 %}
{% if error_message %}
<div class="alert alert-danger" role="alert">{{ error_message }}</div>
{% endif %}
<form method="POST">
{% block content2 %}
{% if error_message %}
<div class="alert alert-danger" role="alert">{{ error_message }}</div>
{% endif %}
<form method="POST">
{% csrf_token %}
<div class="form-group">
<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 }}">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</form>
</div>
{% endblock %}

View File

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