So I have the following customer form defined in my view for prototyping:form = FORM(FIELDSET(DIV(LABEL('Email Address',_class="control-label"),DIV(INPUT(_class="input-large", _id="email",_name='email', requires=IS_NOT_EMPTY()),_class="controls"),_class="control-group"),DIV(DIV(BUTTON("Add Email", _type='submit', _class="btn"),_class="controls"),_class="control-group"),_class="gebo"),_class="form-horizontal")The issue is that I need to define the form in the controller so that I can run through the form accept (don't want to do that in the views). Even though I'm doing this in the controller, I would like the view to be responsible for styling the form. Are there any useful techniques anyone knows of so that I can do this in a reusable and maintainable way across my application?
f.custom.widget.fieldname['_size']=10<input class="string" id="test_fieldname" name="fieldname" size="10" type="text" value="" />--
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/Ecy_tG1o-3k/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.