Move container div from base to templates, to allow for varying widths.
This commit is contained in:
parent
4bcdf7eca9
commit
a02c22c543
12 changed files with 273 additions and 245 deletions
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="container">
|
||||||
<div class="d-flex justify-content-center align-items-center pt-5">
|
<div class="d-flex justify-content-center align-items-center pt-5">
|
||||||
<form class="m-auto" method="post" action="{% url 'login' %}">
|
<form class="m-auto" method="post" action="{% url 'login' %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
@ -15,4 +16,5 @@
|
||||||
<p class="text-center mt-2"><a href="{% url 'signup' %}">Sign Up</a></p>
|
<p class="text-center mt-2"><a href="{% url 'signup' %}">Sign Up</a></p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="container">
|
||||||
<div class="d-flex justify-content-center align-items-center mt-5">
|
<div class="d-flex justify-content-center align-items-center mt-5">
|
||||||
<form class="m-auto" method="post" action="{% url 'password_change' %}">
|
<form class="m-auto" method="post" action="{% url 'password_change' %}">
|
||||||
<h2>Change Password</h2>
|
<h2>Change Password</h2>
|
||||||
|
@ -15,4 +16,5 @@
|
||||||
<button type="submit" class="btn btn-primary btn-block">Change Password</button>
|
<button type="submit" class="btn btn-primary btn-block">Change Password</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="container">
|
||||||
<div class="d-flex justify-content-center align-items-center pt-5">
|
<div class="d-flex justify-content-center align-items-center pt-5">
|
||||||
<form class="m-auto" method="post" action="{% url 'signup' %}">
|
<form class="m-auto" method="post" action="{% url 'signup' %}">
|
||||||
<h2>Sign Up</h2>
|
<h2>Sign Up</h2>
|
||||||
|
@ -21,4 +22,5 @@
|
||||||
<p class="text-center mt-2"><a href="{% url 'login' %}">Log In</a></p>
|
<p class="text-center mt-2"><a href="{% url 'login' %}">Log In</a></p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="container">
|
||||||
<h2>Bank</h2>
|
<h2>Bank</h2>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header d-flex">
|
<div class="card-header d-flex">
|
||||||
|
@ -24,4 +25,5 @@
|
||||||
{% block bank_footer %}
|
{% block bank_footer %}
|
||||||
{% endblock bank_footer %}
|
{% endblock bank_footer %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
.container {
|
||||||
|
max-width: 1140px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width:1600px) {
|
||||||
|
.container-wide {
|
||||||
|
max-width: 1500px
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* WoW class-coloured text */
|
/* WoW class-coloured text */
|
||||||
.color-druid, .color-class-1 {color: #ff7d0a;}
|
.color-druid, .color-class-1 {color: #ff7d0a;}
|
||||||
.color-hunter, .color-class-2 {color: #abd473;}
|
.color-hunter, .color-class-2 {color: #abd473;}
|
||||||
|
|
|
@ -43,10 +43,8 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="flex-shrink-0" role="main">
|
<main class="flex-shrink-0" role="main">
|
||||||
<div class="container">
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="footer mt-auto">
|
<footer class="footer mt-auto">
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="container">
|
||||||
<h2>Raids</h2>
|
<h2>Raids</h2>
|
||||||
<div class="d-flex justify-content-center mb-1">
|
<div class="d-flex justify-content-center mb-1">
|
||||||
<div class="btn-group" role="group" aria-label="Calendar navigation controls">
|
<div class="btn-group" role="group" aria-label="Calendar navigation controls">
|
||||||
|
@ -52,4 +53,5 @@
|
||||||
<div class="d-flex justify-content-end">
|
<div class="d-flex justify-content-end">
|
||||||
{% if perms.raids.add_raid %}<a class="btn btn-success" role="button" href="{% url 'raid_create' %}">Add New</a>{% endif %}
|
{% if perms.raids.add_raid %}<a class="btn btn-success" role="button" href="{% url 'raid_create' %}">Add New</a>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
@ -6,13 +6,15 @@
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="container container-wide">
|
||||||
<div class="card mb-3">
|
<div class="card mb-3">
|
||||||
<h5 class="card-header">Raid Details</h5>
|
<h5 class="card-header">Raid Details</h5>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
{% crispy raid_form %}
|
{% crispy raid_form %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container container-wide">
|
||||||
<div class="card mb-3">
|
<div class="card mb-3">
|
||||||
<h5 class="card-header">Raid Responses</h5>
|
<h5 class="card-header">Raid Responses</h5>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
@ -102,6 +104,7 @@
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,11 @@
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="container">
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<p>Are you sure you want to delete "{{ object }}"?</p>
|
<p>Are you sure you want to delete "{{ object }}"?</p>
|
||||||
<button type="submit" class="btn btn-danger">Confirm</button>
|
<button type="submit" class="btn btn-danger">Confirm</button>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
@ -6,5 +6,7 @@
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="container">
|
||||||
{% crispy form %}
|
{% crispy form %}
|
||||||
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
|
@ -134,6 +134,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="container">
|
||||||
<h2>Attendance</h2>
|
<h2>Attendance</h2>
|
||||||
<table class="table table-dark table-bordered text-center">
|
<table class="table table-dark table-bordered text-center">
|
||||||
<thead class="thead-light">
|
<thead class="thead-light">
|
||||||
|
@ -31,4 +32,5 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue