overview + center

This commit is contained in:
vabene1111
2018-02-01 00:20:47 +01:00
parent c382e9df24
commit 9bdc303f0e
9 changed files with 267 additions and 70 deletions

View File

@@ -1,4 +1,5 @@
{% extends "base.html" %}
{% load django_tables2 %}
{% block title %}Rezepte{% endblock %}
@@ -6,17 +7,7 @@
<h1>Übersicht</h1>
<table class="table table-bordered table-hover">
<tr>
<th>Name</th>
<th>Kategorie</th>
</tr>
{% for recipe in recipes %}
<tr>
<td>{{ recipe.name }}</td>
<td>{{ recipe.category }}</td>
</tr>
{% endfor %}
</table>
{% render_table recipes %}
{% endblock %}