Commit 15eafe4e authored by Gil Forcada's avatar Gil Forcada

Use request.path as the action on all forms that return to themselves

parent 9bc502c5
......@@ -15,7 +15,7 @@
<ul>{% for obj in queryset %}
<li>{{ obj }}</li>
{% endfor %}</ul>
<form action="" method="post">{% csrf_token %}
<form action="{{ request.path }}" method="post">{% csrf_token %}
<div>
{% for obj in queryset %}
<input type="hidden" name="{{ action_checkbox_name }}" value="{{ obj.pk }}" />
......
......@@ -13,7 +13,7 @@
<p><a href="{{ module.homepage }}">{{ module.homepage }}</a></p>
{% endif %}
<form action="#" method="POST" class="djform">
<form action="{{ request.path }}" method="POST" class="djform">
{% csrf_token %}
<table>
<tr><td><h4>{% trans "Branch" %}</h4></td><td><h4>{% trans "Release" %}</h4></td><td><h4>{% trans "Category" %}</h4></td></tr>
......
......@@ -6,7 +6,7 @@
<h2>{% trans "Change your details" %}</h2>
<form action="" method="POST" class="djform">
<form action="{{ request.path }}" method="POST" class="djform">
{% csrf_token %}
<table>
{{ form.as_table }}
......
......@@ -7,7 +7,7 @@
<p>{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}</p>
<form action="" method="post" class="djform">
<form action="{{ request.path }}" method="post" class="djform">
{% csrf_token %}
<table>
<tr>
......
......@@ -7,7 +7,7 @@
<h2>{% trans "Join a new team" %}</h2>
<form action="" method="POST">
<form action="{{ request.path }}" method="POST">
{% csrf_token %}
<p><em>{% trans "I would like to join the following team as 'translator':" %}</em><br />
{{ form.teams }}
......
......@@ -11,7 +11,7 @@
<p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
<form action="" method="post">
<form action="{{ request.path }}" method="post">
{% csrf_token %}
{% if form.new_password1.errors %}{{ form.new_password1.errors }}{% endif %}
<p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
......
......@@ -10,7 +10,7 @@
<p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one." %}</p>
<form action="" method="post">{% csrf_token %}
<form action="{{ request.path }}" method="post">{% csrf_token %}
{% if form.email.errors %}{{ form.email.errors }}{% endif %}
<p><label for="id_email">{% trans 'E-mail address:' %}</label> {{ form.email }} <input type="submit" value="{% trans 'Reset my password' %}" /></p>
</form>
......
......@@ -83,7 +83,7 @@ $(document).ready(function() {
<h3>{{ group.title }}</h3>
{% if group.form %}
<form action="#" method="POST">
<form action="{{ request.path }}" method="POST">
{% csrf_token %}
<ul class="foot">
{% for field in group.form.get_fields %}
......
......@@ -15,7 +15,7 @@ $(document).ready(function() {
<div class="maxwidth">
<h1>{% blocktrans with team.get_description as lang %}{{ lang }} Translation Team{% endblocktrans %}</h1>
<form action="#" method="POST" class="djform">
<form action="{{ request.path }}" method="POST" class="djform">
{% csrf_token %}
<table>
{% if form.coordinatorship %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment