refactor: Change View to FormView

This commit is contained in:
Cristian 2020-08-28 09:58:32 -05:00
parent a06bd715a9
commit bc116c25f8
3 changed files with 96 additions and 73 deletions

View file

@ -28,7 +28,7 @@
<a href="/add" id="submit">&nbsp; Add more URLs </a>
</center>
{% else %}
<form id="add-form" action="?" method="POST" class="p-form">{% csrf_token %}
<form id="add-form" method="POST" class="p-form">{% csrf_token %}
<h1>Add new URLs to your archive</h1>
<br/>
{{ form.as_p }}