table view

This commit is contained in:
Alicja Cięciwa
2020-12-28 23:07:31 +01:00
parent a68bc6c7c2
commit b8c345a3b8
9 changed files with 52 additions and 14 deletions

26
templates/workplaces.html Normal file
View File

@@ -0,0 +1,26 @@
{% extends "base.html" %}
{% block content %}
{% load crispy_forms_tags %}
<!-- Show workplaces -->
<div class="table-view">
<a href="{% url 'addworkplace' %}">+ Dodaj pracę</a> <br><br>
<table class="table">
<thead>
<tr>
<th scope="col">Miejsca pracy</th>
</tr>
</thead>
<tbody>
{% for wp in workplaces.all %}
<tr>
<td>{{ wp.workplace }} <br></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}