
   <form action="{$smarty.server.PHP_SELF}" method="POST">
   <input type="hidden" name="action" value="addUserFromSource" />
   <input type="hidden" name="source_id" value="{$source->getId()}" />
   <fieldset>
      <legend>{i18n}Create a new user{/i18n}</legend>
      {foreach item=oWidget from=$fields}
        {$oWidget->render()}
      {/foreach}
      <input type="hidden" name="dn" value="{$dn}" />
      <input type="hidden" name="samaccountname" value="{$samaccountname}" />
      <div class="form_actions">
         <input type="submit" name="submit[create]" value="{i18n}create user{/i18n}" />
         <input type="submit" name="kt_cancel[]" value="{i18n}Cancel{/i18n}" />
      </div>
   </fieldset>
   </form>

