Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed various validation errors caught by the validator.nu HTML5 vali…

…dator.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2bb3401d06c423b49748f2ec4f1570cd0c9e83a4 1 parent 26cda43
@spookylukey spookylukey authored
View
2  django/contrib/admin/templates/admin/change_list.html
@@ -87,7 +87,7 @@
{% endif %}
{% endblock %}
- <form id="changelist-form" action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>{% csrf_token %}
+ <form id="changelist-form" action="." method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>{% csrf_token %}
{% if cl.formset %}
<div>{{ cl.formset.management_form }}</div>
{% endif %}
View
2  django/contrib/admin/templates/admin/change_list_results.html
@@ -5,7 +5,7 @@
{% endif %}
{% if results %}
<div class="results">
-<table cellspacing="0" id="result_list">
+<table id="result_list">
<thead>
<tr>
{% for header in result_headers %}<th scope="col"{{ header.class_attrib }}>
View
2  django/contrib/admin/templates/admin/delete_confirmation.html
@@ -32,7 +32,7 @@
{% else %}
<p>{% blocktrans with object as escaped_object %}Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted:{% endblocktrans %}</p>
<ul>{{ deleted_objects|unordered_list }}</ul>
- <form action="" method="post">{% csrf_token %}
+ <form action="." method="post">{% csrf_token %}
<div>
<input type="hidden" name="post" value="yes" />
<input type="submit" value="{% trans "Yes, I'm sure" %}" />
View
2  django/contrib/admin/templates/admin/delete_selected_confirmation.html
@@ -33,7 +33,7 @@
{% for deletable_object in deletable_objects %}
<ul>{{ deletable_object|unordered_list }}</ul>
{% endfor %}
- <form action="" method="post">{% csrf_token %}
+ <form action="." method="post">{% csrf_token %}
<div>
{% for obj in queryset %}
<input type="hidden" name="{{ action_checkbox_name }}" value="{{ obj.pk|unlocalize }}" />
View
2  django/contrib/admin/templates/admin/search_form.html
@@ -1,7 +1,7 @@
{% load adminmedia %}
{% load i18n %}
{% if cl.search_fields %}
-<div id="toolbar"><form id="changelist-search" action="" method="get">
+<div id="toolbar"><form id="changelist-search" action="." method="get">
<div><!-- DIV needed for valid HTML -->
<label for="searchbar"><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label>
<input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" />
View
2  django/contrib/admin/templates/registration/password_change_form.html
@@ -9,7 +9,7 @@
{% block content %}<div id="content-main">
-<form action="" method="post">{% csrf_token %}
+<form action="." method="post">{% csrf_token %}
<div>
{% if form.errors %}
<p class="errornote">
View
2  django/contrib/admin/templates/registration/password_reset_confirm.html
@@ -13,7 +13,7 @@
<p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p>
-<form action="" method="post">{% csrf_token %}
+<form action="." method="post">{% csrf_token %}
{{ form.new_password1.errors }}
<p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
{{ form.new_password2.errors }}
View
2  django/contrib/admin/templates/registration/password_reset_form.html
@@ -11,7 +11,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="." method="post">{% csrf_token %}
{{ form.email.errors }}
<p><label for="id_email">{% trans 'E-mail address:' %}</label> {{ form.email }} <input type="submit" value="{% trans 'Reset my password' %}" /></p>
</form>
View
2  django/contrib/formtools/templates/formtools/form.html
@@ -4,7 +4,7 @@
{% if form.errors %}<h1>Please correct the following errors</h1>{% else %}<h1>Submit</h1>{% endif %}
-<form action="" method="post">{% csrf_token %}
+<form action="." method="post">{% csrf_token %}
<table>
{{ form }}
</table>
View
4 django/contrib/formtools/templates/formtools/preview.html
@@ -15,7 +15,7 @@
<p>Security hash: {{ hash_value }}</p>
-<form action="" method="post">{% csrf_token %}
+<form action="." method="post">{% csrf_token %}
{% for field in form %}{{ field.as_hidden }}
{% endfor %}
<input type="hidden" name="{{ stage_field }}" value="2" />
@@ -25,7 +25,7 @@
<h1>Or edit it again</h1>
-<form action="" method="post">{% csrf_token %}
+<form action="." method="post">{% csrf_token %}
<table>
{{ form }}
</table>
Please sign in to comment.
Something went wrong with that request. Please try again.