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,34 +13,36 @@
{% 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 %}
{% csrf_token %} <form method="POST">
{% for item in form %} {% csrf_token %}
<div class="form-group"> {% for item in form %}
<label for="{{ item.id_for_label }}">{{ item.help_text }}</label> <div class="form-group">
{{ item }} <label for="{{ item.id_for_label }}">{{ item.help_text }}</label>
</div> {{ item }}
{% endfor %} </div>
<button type="submit" class="btn btn-default">Submit</button> {% endfor %}
</form> <button type="submit" class="btn btn-default">Submit</button>
{% endblock %} </form>
{% 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,29 +13,29 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<table class="table table-striped table-bordered table-hover"> <div class="container">
<thead> <table class="table table-striped table-bordered table-hover">
<tr> <thead>
<th>#</th> <tr>
<th>Username</th> <th>#</th>
<th>Email</th> <th>Username</th>
<th>Superuser</th> <th>Email</th>
</tr> <th>Superuser</th>
</thead> </tr>
<tbody data-link="row" class="rowlink"> </thead>
{% for user in users %} <tbody data-link="row" class="rowlink">
<tr> {% for user in users %}
<td><a href="{{user.id}}/">{{user.id}}</a></td> <tr>
<td>{{user.username}}</td> <td><a href="{{user.id}}/">{{user.id}}</a></td>
<td>{{user.email}}</td> <td>{{user.username}}</td>
<td>{{user.is_superuser}}</td> <td>{{user.email}}</td>
</tr> <td>{{user.is_superuser}}</td>
{% endfor %} </tr>
</tbody> {% endfor %}
</tbody>
</table>
</table> <a class="btn btn-default" href="/comic/settings/users/add/" role="button">Add User</a>
<a class="btn btn-default" href="/comic/settings/users/add/" role="button">Add User</a> </div>
{% endblock %} {% endblock %}
{% block script %} {% block script %}