Guest User

Untitled

a guest
Mar 8th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. $form->populate( {
  2. auto_fieldset => { id => 'fs_login_form' },
  3. elements => [
  4. { type => 'Block', tag => 'dl', elements => [
  5.  
  6. { type => 'Block', content => 'Username', tag => 'dt' },
  7. { type => 'Block', tag => 'dd', elements =>
  8. { type => 'Text',
  9. name => 'login_login',
  10. constraints => [qw|Required|],
  11.  
  12. },
  13.  
  14. attrs => { class => 'data' },
  15. }
  16. ] } ],
  17. } );
  18.  
  19. # gives me
  20.  
  21. <form action="" method="post">
  22. <fieldset id="fs_login_form">
  23. <dl>
  24. <dt>
  25. Username
  26. </dt>
  27. <dd class="data">
  28. <div class="text">
  29. <input name="login_login" type="text" />
  30. </div>
  31. </dd>
  32. </dl>
Add Comment
Please, Sign In to add comment