Hi all,

my graphic design prescribes that every label in html FORMS should be
not capitalized and without any suffix. For example, a "my_date" field
should be rendered as:

<tr><th><label for="id_date">my date</label></th><td><input
id="id_date" type="text" class="date" value="10.05.2012" name="date" /
></td></tr>

To achieve this I need to set a "label" attribute in every Form. For
ModelForm (Forms automatically created from models) my only
possibility is to rewrite the entire form "by hand" in the HTML
template file.

Is there a better way to achieve this beahviour? Is it possible to
redefine the function used to convert the field name to the field
label?

E.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to