Created
June 30, 2009 08:32
-
-
Save monken/138067 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$form->populate( { | |
auto_fieldset => { id => 'fs_login_form' }, | |
elements => [ | |
{ type => 'Block', tag => 'dl', elements => [ | |
{ type => 'Block', content => 'Username', tag => 'dt' }, | |
{ type => 'Block', tag => 'dd', elements => | |
{ type => 'Text', | |
name => 'login_login', | |
constraints => [qw|Required|], | |
}, | |
attrs => { class => 'data' }, | |
} | |
] } ], | |
} ); | |
# gives me | |
<form action="" method="post"> | |
<fieldset id="fs_login_form"> | |
<dl> | |
<dt> | |
Username | |
</dt> | |
<dd class="data"> | |
<div class="text"> | |
<input name="login_login" type="text" /> | |
</div> | |
</dd> | |
</dl> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment