Ticket #8869: contrib-comments-templates-htmlcompat.diff

File contrib-comments-templates-htmlcompat.diff, 5.7 KB (added by Jarek Zgoda, 16 years ago)

XHTML compliance fix for comment framework templates

  • django/contrib/comments/templates/comments/approve.html

     
    66  <h1>Really make this comment public?</h1>
    77  <blockquote>{{ comment|escape|linebreaks }}</blockquote>
    88  <form action="." method="POST">
    9     <input type="hidden" name="next" value="{{ next|escape }}" id="next">
     9    <input type="hidden" name="next" value="{{ next|escape }}" id="next" />
    1010    <p class="submit">
    11       <input type="submit" name="submit" value="Approve"> or <a href="{{ comment.permalink }}">cancel</a>
     11      <input type="submit" name="submit" value="Approve" /> or <a href="{{ comment.permalink }}">cancel</a>
    1212    </p>
    1313  </form>
    14 {% endblock %}
    15  No newline at end of file
     14{% endblock %}
  • django/contrib/comments/templates/comments/preview.html

     
    2727      {% endif %}
    2828    {% endfor %}
    2929    <p class="submit">
    30       <input type="submit" name="submit" class="submit-post" value="Post">
    31       <input type="submit" name="submit" class="submit-preview" value="Preview">
     30      <input type="submit" name="submit" class="submit-post" value="Post" />
     31      <input type="submit" name="submit" class="submit-preview" value="Preview" />
    3232    </p>
    3333  </form>
    34 {% endblock %}
    35  No newline at end of file
     34{% endblock %}
  • django/contrib/comments/templates/comments/delete.html

     
    66  <h1>Really remove this comment?</h1>
    77  <blockquote>{{ comment|escape|linebreaks }}</blockquote>
    88  <form action="." method="POST">
    9     <input type="hidden" name="next" value="{{ next|escape }}" id="next">
     9    <input type="hidden" name="next" value="{{ next|escape }}" id="next" />
    1010    <p class="submit">
    11       <input type="submit" name="submit" value="Remove"> or <a href="{{ comment.permalink }}">cancel</a>
     11      <input type="submit" name="submit" value="Remove" /> or <a href="{{ comment.permalink }}">cancel</a>
    1212    </p>
    1313  </form>
    14 {% endblock %}
    15  No newline at end of file
     14{% endblock %}
  • django/contrib/comments/templates/comments/moderation_queue.html

     
    2323
    2424{% block content %}
    2525{% if empty %}
    26   <p id="nocomments">No comments to moderate.</div>
     26  <p id="nocomments">No comments to moderate.</p>
    2727{% else %}
    2828<div id="content-main">
    2929  <div class="module" id="changelist">
     
    4545        <tr class="{% cycle 'row1' 'row2' %}">
    4646          <td class="actions">
    4747            <form action="{% url comments-approve comment.pk %}" method="POST">
    48               <input type="hidden" name="next" value="{% url comments-moderation-queue %}">
    49               <input class="approve submit" type="submit" name="submit" value="Approve">
     48              <input type="hidden" name="next" value="{% url comments-moderation-queue %}" />
     49              <input class="approve submit" type="submit" name="submit" value="Approve" />
    5050            </form>
    5151            <form action="{% url comments-delete comment.pk %}" method="POST">
    52               <input type="hidden" name="next" value="{% url comments-moderation-queue %}">
    53               <input class="remove submit" type="submit" name="submit" value="Remove">
     52              <input type="hidden" name="next" value="{% url comments-moderation-queue %}" />
     53              <input class="remove submit" type="submit" name="submit" value="Remove" />
    5454            </form>
    5555          </td>
    5656          <td>{{ comment.name|escape }}</td>
  • django/contrib/comments/templates/comments/flag.html

     
    66  <h1>Really flag this comment?</h1>
    77  <blockquote>{{ comment|escape|linebreaks }}</blockquote>
    88  <form action="." method="POST">
    9     <input type="hidden" name="next" value="{{ next|escape }}" id="next">
     9    <input type="hidden" name="next" value="{{ next|escape }}" id="next" />
    1010    <p class="submit">
    11       <input type="submit" name="submit" value="Flag"> or <a href="{{ comment.permalink }}">cancel</a>
     11      <input type="submit" name="submit" value="Flag" /> or <a href="{{ comment.permalink }}">cancel</a>
    1212    </p>
    1313  </form>
    14 {% endblock %}
    15  No newline at end of file
     14{% endblock %}
  • django/contrib/comments/templates/comments/reply.html

     
    1313    {% endif %}
    1414  {% endfor %}
    1515  <p class="submit">
    16     <input type="submit" name="submit" class="submit-post" value="Reply">
    17     <input type="submit" name="submit" class="submit-preview" value="Preview">
     16    <input type="submit" name="submit" class="submit-post" value="Reply" />
     17    <input type="submit" name="submit" class="submit-preview" value="Preview" />
    1818  </p>
    1919</form>
Back to Top