Login

Removing all the extra comment fields

Author:
dipankarsarkar
Posted:
November 16, 2008
Language:
HTML/template
Version:
Not specified
Score:
1 (after 1 ratings)

This helps you remove the extra comments fields from appearing in the form. If you used just form they would appear. This is for Django 1.0 + only.

By Dipankar Sarkar Blog [email protected]

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
<form action="/comments/post/" method="post" name="comment_form" style="padding:5px;">
                <textarea class="textarea" name="comment" style="height:auto;" id="id_comment" rows="6" cols="60"></textarea
>
                {{ form.content_type }}
                {{ form.object_pk }}
                {{ form.timestamp }}
                {{ form.security_hash }}
                <div class="textarea_bolt">
                        <div id="commentsubscribe" class="checkbox">
                                {% show_comment_subscription request.user.id quip.id%}
                        </div>
                <div class="clear"></div>
                        <input  class="button float_left" type="button" name="post" id="preview" value="Post&raquo;" onClick
="submit_comment_form();">
                </div>
        </form>

More like this

  1. Bootstrap Accordian by Netplay4 5 years, 11 months ago
  2. Bootstrap theme for django-endless-pagination? by se210 8 years, 11 months ago
  3. Bootstrap theme for django-endless-pagination? by se210 8 years, 11 months ago
  4. Reusable form template with generic view by roldandvg 9 years ago
  5. Pagination Django with Boostrap by guilegarcia 9 years, 1 month ago

Comments

Please login first before commenting.