mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	Fixed various validation errors caught by the validator.nu HTML5 validator.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -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 %} | ||||
|   | ||||
| @@ -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 }}> | ||||
|   | ||||
| @@ -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" %}" /> | ||||
|   | ||||
| @@ -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 }}" /> | ||||
|   | ||||
| @@ -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" /> | ||||
|   | ||||
| @@ -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"> | ||||
|   | ||||
| @@ -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 }} | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user