mirror of
https://github.com/django/django.git
synced 2025-12-04 00:55:36 +00:00
Fixed #29038 -- Removed closing slash from HTML void tags.
This commit is contained in:
parent
4b0f39d9fb
commit
ff05de760c
112 changed files with 1487 additions and 1483 deletions
|
|
@ -535,8 +535,8 @@ Use the arrow keys to move up and down.
|
|||
+++ b/docs/ref/forms/api.txt
|
||||
@@ -1065,3 +1065,13 @@ You can put several Django forms inside one ``<form>`` tag. To give each
|
||||
>>> print(father.as_ul())
|
||||
<li><label for="id_father-first_name">First name:</label> <input type="text" name="father-first_name" id="id_father-first_name" /></li>
|
||||
<li><label for="id_father-last_name">Last name:</label> <input type="text" name="father-last_name" id="id_father-last_name" /></li>
|
||||
<li><label for="id_father-first_name">First name:</label> <input type="text" name="father-first_name" id="id_father-first_name"></li>
|
||||
<li><label for="id_father-last_name">Last name:</label> <input type="text" name="father-last_name" id="id_father-last_name"></li>
|
||||
+
|
||||
+The prefix can also be specified on the form class::
|
||||
+
|
||||
|
|
|
|||
|
|
@ -307,7 +307,7 @@ Here's what the "base.html" template, including the use of :doc:`static files
|
|||
<title>{% block title %}{% endblock %}</title>
|
||||
</head>
|
||||
<body>
|
||||
<img src="{% static "images/sitelogo.png" %}" alt="Logo" />
|
||||
<img src="{% static "images/sitelogo.png" %}" alt="Logo">
|
||||
{% block content %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@ tutorial, so that the template contains an HTML ``<form>`` element:
|
|||
<form action="{% url 'polls:vote' question.id %}" method="post">
|
||||
{% csrf_token %}
|
||||
{% for choice in question.choice_set.all %}
|
||||
<input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}" />
|
||||
<label for="choice{{ forloop.counter }}">{{ choice.choice_text }}</label><br />
|
||||
<input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}">
|
||||
<label for="choice{{ forloop.counter }}">{{ choice.choice_text }}</label><br>
|
||||
{% endfor %}
|
||||
<input type="submit" value="Vote" />
|
||||
<input type="submit" value="Vote">
|
||||
</form>
|
||||
|
||||
A quick rundown:
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ Next, add the following at the top of ``polls/templates/polls/index.html``:
|
|||
|
||||
{% load static %}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}" />
|
||||
<link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}">
|
||||
|
||||
The ``{% static %}`` template tag generates the absolute URL of static files.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue