<div class="space"></div>
{include file=$webdoc.template_dir|cat:"message.tpl"}
{if !$no_display}
    
    <p>Add new user:</p>
    <form method="post" action="">
      <table class="record" border=0>
        <tr><th>Login:</th></tr><tr><td>{insert_form type="text" name="login" value=$record.login}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Password:</th></tr><tr><td>{insert_form type="password" name="pass"}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Password again:</th></tr><tr><td>{insert_form type="password" name="pass_again"}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Role:</th></tr><tr><td>{html_radios name="role_id" values=$values output=$names selected=$id separator=" "}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Name:</th></tr><tr><td>{insert_form type="text" name="name" value=$record.name}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Surname:</th></tr><tr><td>{insert_form type="text" name="surname" value=$record.surname}</td></tr><tr class="space"><td></td></tr>
        <tr><th>E-mail:</th></tr><tr><td>{insert_form type="text" name="email" value=$record.email}</td></tr><tr class="space"><td></td></tr>
        <tr><th>Active:</th></tr><tr><td>{insert_form type="checkbox" name="active" value="1" checked=$record.active}</td></tr><tr class="space"><td></td></tr>
        {if $record.person_id}{insert_form type="hidden" name="person_id" value=$record.person_id}{/if}
        <tr><td colspan="2">{if $record.person_id}{insert_form type="submit" value="Edit"}{else}{insert_form type="submit" value="Add"}{/if}</td><tr>
      </table>
    </form>
{/if}