On Dec 15, 12:02 pm, Continuation <selforgani...@gmail.com> wrote:
> This is a question about django-uni-form. But I figure many people
> here may have experienced with django-uni-form so I'd try asking here.
>
> I'm using django-uni-form to style my form using the filter my_form|
> as_uni_form:
>
> <form class="uniForm" id="my_form" method="post" action="./">
>       <fieldset class="inlineLabels">
>            {{ my_form|as_uni_form }}
>            <div  class="form_block">
>                 <input type="submit" value="Submit"/>
>            </div>
>        </fieldset>
> </form>
>
> It looks really good. But I need to customize it.
>
> For example, one of the field "percentage" of the form is of the type
> IntegerField. It is being rendered as an <input type="text">.
>
> The problem is that the text box is really wide, I'd like to make it
> only 2 character wide.
>
> Also I want to add a percentage sign "%" right after the text box so
> that users know they if they put in the number "10" in the text box,
> it means 10%.
>
> Is there anyway to do that with django-uni-form?

These aren't related to the use of uni-form

This is just a matter of using the right widget with attributes, and
labels and help text in your models/forms:

http://docs.djangoproject.com/en/1.1/ref/forms/widgets/

-Preston

>
> Thanks for your help.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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