daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Mar 8th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top