[Catalyst] HTML::FormFu - how to manually control the rendering?
    kakimoto at tpg.com.au 
    kakimoto at tpg.com.au
       
    Wed Aug 20 00:46:53 BST 2008
    
    
  
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 <paikkos at googlemail.com>:
> 2008/8/18  <kakimoto at tpg.com.au>:
> >
> > 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: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
> 
> 
> 
    
    
More information about the Catalyst
mailing list