Hi all,

I am trying to change a class of a field using form.element on my user.html 
view:

{{=form.custom.begin}}
Name: {{
      form.element('input',_name='first_name')['_class']='input-medium'
      =form.custom.widget.first_name
}}
{{=form.custom.end}}


It changes the HTML on the source code:
Name:
<input id="auth_user_first_name" class="input-small" type="text" value="" 
name="first_name">

but does not change the page.

I already tried to remove all classes setting _class to '', and then using 
_size to change the size of the field. Nothing happen too... 

seems like the web2py default CSS is changing the input{text} css patterns 
and nothing we can do to change field class properties

Any ideas?

Thank you very much!

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to