Adam,

That's quite a form!

It might take a while for me to understand
what's going on in there.

However, it is a nice thing to aim for.

Question: Why don't you put the output through
"HTML::Tidy" ?

-George

On 6/2/11 5:19 PM, Adam Prime wrote:
Often CSS isn't enough for complicated layouts.  For example take a look at 
this $work form:

https://fxtrade.oanda.ca/your_account/fxtrade/register/individual/beforeyoubegin

That's a FormFu form, but with pretty extensive use of the 'filename' parameter 
to handle all the complicated layout (and it gets more complicated on the pages 
after the first one)

Are other people leveraging this stuff?

Adam


On 11-06-02 04:42 PM, George Hrysanthopoulos wrote:
Kamen,

You are the man!

Thank you!

-George

On 6/2/11 5:15 AM, Kamen Naydenov wrote:
On Thu, Jun 2, 2011 at 11:27, George Hrysanthopoulos<x...@darksmile.net>  wrote:
Ok, this should be simple but I am drawing a blank.

How do I create a text field (or a password field),
in YML, and have the label start on a new line (not the same line
as the text field.

Normally (in a form) I just do:

Userid:<br /> <input type="text" size="30" /><br />

And it works.

Thank you in advance.

-George
Visual appearing of form elements is controlled via CSS styles (avoid
using<br />)
Here is example of YML for login form:
<yml>
---
auto_id: '%n'
auto_constraint_class: '%t'
# indicator is the field that is used to test for form submission
indicator: submit
auto_fieldset:
   legend: Login form
# Start listing the form elements
elements:
   - type: Text
     name: username
     label: Userid
   - type: Password
     name: password
     label: Pass
   - type: Submit
     name: submit
</yml>

Than you need something like following CSS snippet:
<css>
label { display: block; }
</css>

And this will put labels on new line.

best regards
Kamen

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu



_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu


_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu



_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to