Make it look good

This commit is contained in:
Maximilian Friedersdorff 2022-07-10 11:15:48 +01:00
parent aca86e2e04
commit 75cae77a59
10 changed files with 126 additions and 48 deletions

View file

@ -1,9 +1,17 @@
{% extends "base.html" %}
{% load django_bootstrap5 %}
{% block content %}
<h1>Circle {{ object.name }}</h1>
<form action="#" method="post">
{% csrf_token %}
{{ form }}
<input type="submit" value="Post">
</form>
<div class="container">
<div class="row">
<div class="col">
<h1>Create a new circle</h1>
<form action="" method="post">
{% csrf_token %}
{% bootstrap_form form %}
{% bootstrap_button button_type="submit" content="OK" %}
</form>
</div>
</div>
</div>
{% endblock content %}

View file

@ -1,9 +1,22 @@
{% extends "base.html" %}
{% block content %}
<h1>Your Circles</h1>
<ul>
{% for circle in object_list %}
<li><a href="{% url "circles:circle_update" circle.pk %}">{{ circle.name }}</a></li>
{% endfor %}
</ul>
<div class="container">
<div class="row">
<div class="col">
<h1>Your Circles</h1>
<table class="table">
<tr>
<th>Name</th>
<th>Members</th>
</tr>
{% for circle in object_list %}
<tr>
<td><a href="{% url "circles:circle_update" circle.pk %}">{{ circle.name }}</a></td>
<td>{{ circle.members.all }}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
{% endblock content %}