FAQ
hello there
I love using HTML::FormFu in these two aspects:
1) Validation - oh ,yeah :)
2) configuration (via yaml in my case)


nevertheless, is there any way we can control the rendering (in TT2)?
From what has been done in the catalyst tute for html::FormFu, i
noticed that it just lists down form elements line by line...
I am sure there are websites whereby the graphics designer would place
form elements in different styles..

This is a great tool. Please educate us more:)

thank you

K. Akimoto

Search Discussions

  • Dermot at Aug 18, 2008 at 2:13 pm
    2008/8/18 <[email protected]>:
    hello there
    I love using HTML::FormFu in these two aspects:
    1) Validation - oh ,yeah :)
    2) configuration (via yaml in my case)


    nevertheless, is there any way we can control the rendering (in TT2)?
    From what has been done in the catalyst tute for html::FormFu, i
    noticed that it just lists down form elements line by line...
    I am sure there are websites whereby the graphics designer would place
    form elements in different styles..

    This is a great tool. Please educate us more:)
    I agree it is a great tool - shame the mailing list is down.

    I think you have to set the attribute id/class for element (or
    fieldset) and use css to position those elements.

    - type: Checkbox
    name: truefalse
    label: True or False
    attributes:
    title: Is this true or is this false
    class: leftCheckBoxes



    Good luck,
    Dp.
  • Carl Franks at Aug 18, 2008 at 3:08 pm
    2008/8/18 Dermot <[email protected]>:
    I agree it is a great tool - shame the mailing list is down.
    The FormFu list uses the same server as this catalyst list - so it's
    probably not down ;)

    The old rawmode.org address has been killed though.
    I think all the documentation has been updated, but if you got the old
    address from somewhere recently, can you let me know where, and I'll
    try to get it fixed.

    Cheers,
    Carl
  • K. Akimoto at Aug 20, 2008 at 12:46 am
    Hi, there,

    Thank you Dermot for your response.
    I am not sure i see how introducing a class element for the element
    would help.

    For example, if we hand coded the form, we would have something like:


    <form method="post" action="...">
    ...

    <h3>Accessories</h3>
    <table border="0">
    <tr>

    <td>
    <input type="checkbox" name="battery"
    value="battery">additional battery
    </td>

    <td>
    <input type="checkbox" name="charger"
    value="charger">spare charger
    </td>
    </tr>
    <tr>

    <td>
    <input type="checkbox" name="screen_cleaner"
    value="screen_cleaner">screen cleaner
    </td>

    <td>
    <input type="checkbox" name="laptop_bag"
    value="laptop_bag">laptop carrybag
    </td>

    </tr>

    </table>


    <input type="submit" name="submit" Value="Submit">
    </form>



    Question: How do we have a form generated like the one above using
    HTML::FormFu?

    thank you.

    K. Akimoto










    Quoting Dermot <[email protected]>:
    2008/8/18 <[email protected]>:
    hello there
    I love using HTML::FormFu in these two aspects:
    1) Validation - oh ,yeah :)
    2) configuration (via yaml in my case)


    nevertheless, is there any way we can control the rendering (in TT2)?
    From what has been done in the catalyst tute for html::FormFu, i
    noticed that it just lists down form elements line by line...
    I am sure there are websites whereby the graphics designer would place
    form elements in different styles..

    This is a great tool. Please educate us more:)
    I agree it is a great tool - shame the mailing list is down.

    I think you have to set the attribute id/class for element (or
    fieldset) and use css to position those elements.

    - type: Checkbox
    name: truefalse
    label: True or False
    attributes:
    title: Is this true or is this false
    class: leftCheckBoxes



    Good luck,
    Dp.

    _______________________________________________
    List: [email protected]
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/[email protected]/
    Dev site: http://dev.catalyst.perl.org/

  • Dermot at Aug 20, 2008 at 5:08 pm

    2008/8/20 <[email protected]>:
    Hi, there,
    Thank you Dermot for your response.
    <form method="post" action="...">
    ...

    <h3>Accessories</h3>
    <table border="0">
    <tr>

    <td>
    <input type="checkbox" name="battery"
    value="battery">additional battery
    </td>

    <td>
    <input type="checkbox" name="charger"
    value="charger">spare charger
    </td>
    </tr>
    <tr>

    <td>
    <input type="checkbox" name="screen_cleaner"
    value="screen_cleaner">screen cleaner
    </td>

    <td>
    <input type="checkbox" name="laptop_bag"
    value="laptop_bag">laptop carrybag
    </td>

    </tr>

    </table>


    <input type="submit" name="submit" Value="Submit">
    </form>



    Question: How do we have a form generated like the one above using
    HTML::FormFu?
    I am not aware of a method for shoe-horning fields/fieldsets into a
    table within FormFu. It could be done with css selectors but I can't
    advise you on that. I think you should post to FormFu (not the
    Catalyst list). Someone there might detail you how you can do it.

    Good luck,
    Dp.
  • K. Akimoto at Aug 20, 2008 at 12:47 am
    If anyone has seen another tutorial (aside the one in the Catalyst manual),
    please post the link here. Would help a lot :)

    Thank you


    K.akimoto

    Quoting Dermot <[email protected]>:
    2008/8/18 <[email protected]>:
    hello there
    I love using HTML::FormFu in these two aspects:
    1) Validation - oh ,yeah :)
    2) configuration (via yaml in my case)


    nevertheless, is there any way we can control the rendering (in TT2)?
    From what has been done in the catalyst tute for html::FormFu, i
    noticed that it just lists down form elements line by line...
    I am sure there are websites whereby the graphics designer would place
    form elements in different styles..

    This is a great tool. Please educate us more:)
    I agree it is a great tool - shame the mailing list is down.

    I think you have to set the attribute id/class for element (or
    fieldset) and use css to position those elements.

    - type: Checkbox
    name: truefalse
    label: True or False
    attributes:
    title: Is this true or is this false
    class: leftCheckBoxes



    Good luck,
    Dp.

    _______________________________________________
    List: [email protected]
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive:
    http://www.mail-archive.com/[email protected]/
    Dev site: http://dev.catalyst.perl.org/

  • Ivorw at Aug 18, 2008 at 2:28 pm

    [email protected] wrote:
    hello there
    I love using HTML::FormFu in these two aspects:
    1) Validation - oh ,yeah :)
    2) configuration (via yaml in my case)


    nevertheless, is there any way we can control the rendering (in TT2)?
    From what has been done in the catalyst tute for html::FormFu, i
    noticed that it just lists down form elements line by line...
    I am sure there are websites whereby the graphics designer would place
    form elements in different styles..
    Try including the following line in your yaml:

    auto_id: %n

    This will add an id attribute to every element tag, using the element name.

    By the way, please join the HTML::FormFu mailing list as this is a good
    place to post such questions: [email protected]
  • Carl Franks at Aug 18, 2008 at 3:02 pm
    2008/8/18 <[email protected]>:
    hello there
    I love using HTML::FormFu in these two aspects:
    1) Validation - oh ,yeah :)
    2) configuration (via yaml in my case)


    nevertheless, is there any way we can control the rendering (in TT2)?
    From what has been done in the catalyst tute for html::FormFu, i
    noticed that it just lists down form elements line by line...
    I am sure there are websites whereby the graphics designer would place
    form elements in different styles..
    You can sign up to the HTML-FormFu mailing list here:
    http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

    Cheers,
    Carl
  • Ian Tegebo at Aug 21, 2008 at 12:10 am

    On Mon, Aug 18, 2008 at 5:59 AM, wrote:
    hello there
    I love using HTML::FormFu in these two aspects:
    1) Validation - oh ,yeah :)
    2) configuration (via yaml in my case)


    nevertheless, is there any way we can control the rendering (in TT2)?
    Try this:

    script/myapp_create.pl HTML::FormFu

    Then go into $app_root/root/formfu and confirm the templates have been created.

    Next add 'render_method: tt' to your form config.

    http://search.cpan.org/~cfranks/HTML-FormFu-0.03002/lib/HTML/FormFu.pm#render_method

    Caching is another matter.

    --
    Ian Tegebo

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedAug 18, '08 at 1:59p
activeAug 21, '08 at 12:10a
posts9
users5
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2023 Grokbase