change the create computer URL to a button

This commit is contained in:
Andreas Zweili 2020-02-29 11:45:26 +01:00
parent 06f1a6699e
commit 473cbf8919
1 changed files with 12 additions and 2 deletions

View File

@ -2,6 +2,16 @@
{% load render_table from django_tables2 %}
{% block section_title %}List of Computers{% endblock %}
{% block content %}
<p><a href="{% url 'computer_create' pk %}">Add Computer</a></p>
{% render_table computers %}
<div class="row mb-3">
<div class="col">
<form action="{% url 'computer_create' pk %}">
<input type="submit" value="Add Computer" class="btn btn-primary">
</form>
</div>
</div>
<div class="row">
<div class="col">
{% render_table computers %}
</div>
</div>
{% endblock %}