Skip to content

Commit

Permalink
b #4268 contact forms validate on server not browser
Browse files Browse the repository at this point in the history
  • Loading branch information
StephDriver committed Oct 11, 2024
1 parent fdf80ed commit 7c6430e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/templates/admin/journal/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h4>{% trans 'Contact Information' %}</h4>
</div>
<div class="large-8 columns">
<h3>{% trans "Contact" %}</h3>
<form method="POST">
<form method="POST" novalidate>
{% include "elements/forms/errors.html" with form=contact_form %}
{% csrf_token %}
<div class="row expanded">
Expand Down
2 changes: 1 addition & 1 deletion src/themes/OLH/templates/journal/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h4>{% trans 'Contact Information' %}</h4>
</div>
<div class="large-8 columns">
<h3>{% trans "Contact" %}</h3>
<form method="POST">
<form method="POST" novalidate>
{% include "elements/forms/errors.html" with form=contact_form %}
{% csrf_token %}
<label for="id_recipient">{% trans "Who would you like to contact?" %}</label>
Expand Down
2 changes: 1 addition & 1 deletion src/themes/OLH/templates/press/journal/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h5>{{ contact.name }}</h5>
</div>
<div class="large-8 columns">
<h4>{% trans "Contact" %}</h4>
<form method="POST">
<form method="POST" novalidate>
{% include "elements/forms/errors.html" with form=contact_form %}
{% csrf_token %}
<label for="id_recipient">{% trans "Who would you like to contact?" %}</label>
Expand Down
2 changes: 1 addition & 1 deletion src/themes/clean/templates/journal/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h2>{% trans 'Contact Information' %}</h2>
</div>
<div class="col-md-8">
<h2>{% trans "Contact" %}</h2>
<form method="POST">
<form method="POST" novalidate>
{% include "elements/forms/errors.html" with form=contact_form %}
{% csrf_token %}
<div class="form-group">
Expand Down
2 changes: 1 addition & 1 deletion src/themes/material/templates/journal/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h5>{{ contact.name }}</h5>
<span class="card-title">
{% trans "Contact" %}
</span>
<form method="POST">
<form method="POST" novalidate>
{% include "elements/forms/errors.html" with form=contact_form %}
{% csrf_token %}

Expand Down

0 comments on commit 7c6430e

Please sign in to comment.