change the create computer URL to a button
This commit is contained in:
parent
06f1a6699e
commit
473cbf8919
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue