As mentioned in my other thread,
<URL:https://groups.google.com/d/msg/web2py/w1x7_uDGfJc/Ix2x8tO1qLwJ>
I have a form with four inputs, which get pasted together to make the
"actual input".
Bootstrap is overriding my wishes to control the input size, making the
fields much to big (each should be 4 characters). It is using it's idea of
what input[type="text"] should look like, which coming out to 314 pixels.
My controller does
form = FORM('Activation code:',
INPUT(_name='left', requires=[IS_NOT_EMPTY(), IS_HEXSTR()],
_style="width: 10"),
INPUT(_name='lmid', requires=[IS_NOT_EMPTY(), IS_HEXSTR()],
_size="4"),
INPUT(_name='rmid', requires=[IS_NOT_EMPTY(), IS_HEXSTR()],
_size="4"),
INPUT(_name='right', requires=[IS_NOT_EMPTY(), IS_HEXSTR()],
_size="4"),
INPUT(_type='submit'),
_width="300px")
and my view does the (un-surprising)
{{=form}}
Which FF inspect-element says is
<form width="300px" method="post" enctype="multipart/form-data" action="#">
Activation code:
<input type="text" style="width: 10" name="left"></input>
<input type="text" size="4" name="lmid"></input>
<input type="text" size="4" name="rmid"></input>
<input type="text" size="4" name="right"></input>
<input type="submit"></input>
How can I beat this into the shape I want?
As a bonus, I'd like to support someone pasting the input values from an
email, where the pieces might be punctuated with a '-'. How difficult is
it to have the hyphens be understood as "done with the current input field,
move to the next input field" ?
Thanks.
/dps
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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 [email protected].
For more options, visit https://groups.google.com/d/optout.