[html-formfu] Element labels before the element
Rippl, Steve
rippls at woodlandschools.org
Thu Apr 21 03:54:53 GMT 2011
One way perhaps is to use Multi along with appropriate css (and
reverse_multi, not sure if that's actually needed here!). The following
produced an inline pair of radios buttons with a label before and after.
The Hidden elements are there so the labels show up on re-rendering after a
constraint failure (see earlier thread).
- type: Multi
elements:
- type: Label
tag: span
name: jointcustody-label
value: "IS THERE A JOINT-CUSTODY OR WASHINGTON STATE PARENTING PLAN
IN EFFECT?"
container_tag: span
- type: Hidden
name: jointcustody-label
value: "IS THERE A JOINT-CUSTODY OR WASHINGTON STATE PARENTING PLAN
IN EFFECT?"
- type: Radio
name: jointcustody
label: yes
value: yes
container_tag: span
reverse_multi: 1
- type: Radio
name: jointcustody
label: no
value: no
container_tag: span
reverse_multi: 1
- type: Label
value: " (If yes, Washington State Parenting Plan must be on file
with the school for enforcement.) "
name: jointcustody2-label
- type: Hidden
name: jointcustody2-label
value: " (If yes, Washington State Parenting Plan must be on file
with the school for enforcement.) "
On Wed, Apr 20, 2011 at 2:09 PM, J. Bobby Lopez <jbl at jbldata.com> wrote:
> Hello,
>
> I'm just starting out with FormFu, and am looking for a way to place
> element labels before the element (not afterward) from within the .yml fi=
le.
>
> Also, for radio buttons; is there a way to have multiple radio buttons on=
a
> single line without any line breaks, or does this stuff all have to be do=
ne
> via CSS somehow?
>
> Thanks,
> -Bobby
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>
-- =
Steve Rippl
Technology Director
Woodland Public Schools
360 841 2730
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/html-formfu/attachments/20110420/6c=
29fe42/attachment.htm
More information about the HTML-FormFu
mailing list