Skip to content

Commit

Permalink
Add novalidate to the forms
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfs committed Oct 16, 2017
1 parent fe646c5 commit 7d4cd52
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/edit_post.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{% endblock %}

{% block content %}
<form method="post" class="mb-4">
<form method="post" class="mb-4" novalidate>
{% csrf_token %}
{% include 'includes/form.html' %}
<button type="submit" class="btn btn-success">Save changes</button>
Expand Down
2 changes: 1 addition & 1 deletion templates/new_topic.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{% endblock %}

{% block content %}
<form method="post">
<form method="post" class="mb-4" novalidate>
{% csrf_token %}
{% include 'includes/form.html' %}
<button type="submit" class="btn btn-success">Post</button>
Expand Down
2 changes: 1 addition & 1 deletion templates/reply_topic.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

{% block content %}

<form method="post" class="mb-4">
<form method="post" class="mb-4" novalidate>
{% csrf_token %}
{% include 'includes/form.html' %}
<button type="submit" class="btn btn-success">Post a reply</button>
Expand Down

0 comments on commit 7d4cd52

Please sign in to comment.