				<div class="panelRightTop"></div>
				<div class="panelRightBody">
					<div class="paddedContent">
<div class="panelContentTop"><h2><a href="#" class="long">Dodaj użytkownika:</a></h2></div>
<div class="panelContentBody">


<form action="{url User=Add}" method="post">
    <br />
    <table class="maintable" >
	<tr>
	    <td align="right" width="100"><b>Login*:</b></td>
	    <td><input class="input avf" type="text" name="login" value="{if isset($user)}{$user.login}{/if}" />
	    {if isset($error.login)}<div style="color: red;" id="actionError">{$error.login}</div>{/if}
	    </td>
	</tr> 
	<tr>
	    <td align="right"><b>Hasło*:</b></td>
	    <td><input class="input avf" type="password" name="password" />
	    {if isset($error.password)}<div style="color: red;" id="actionError">{$error.password}</div>{/if}
	    </td>
	</tr>
	<tr>
	    <td align="right"><b>Powtórz hasło*:</b></td><td><input class="input" type="password" name="passwordconf" />
	    {if isset($error.passwordconf)}<div style="color: red;" id="actionError">{$error.passwordconf}</div>{/if}
	    {if isset($error.passwordconfDif)}<div style="color: red;" id="actionError">{$error.passwordconfDif}</div>{/if}
	    </td>
	</tr>
	<tr>
	    <td align="right"><b>Imię*</b></td><td><input class="input" type="text" name="firstName" value="{if isset($user)}{$user.firstName}{/if}" />
	    {if isset($error.firstName)}<div style="color: red;" id="actionError">{$error.firstName}</div>{/if}
	    </td>
	</tr>
	<tr>
	    <td align="right"><b>Nazwisko*</b></td><td><input class="input" type="text" name="lastName" value="{if isset($user)}{$user.lastName}{/if}" />
	    {if isset($error.lastName)}<div style="color: red;" id="actionError">{$error.lastName}</div>{/if}
	    </td>
	</tr>
	<tr>
	    <td align="right"><b>Email*:</b></td><td><input class="input" type="text" name="email" value="{if isset($user)}{$user.email}{/if}" />
	    {if isset($error.email)}<div style="color: red;" id="actionError">{$error.email}</div>{/if}
	    </td>
	</tr>
	<tr>
	    <td align="right" valign="top"><b>Opis:</b></td><td><textarea class="input"  name="description" >{if isset($user)}{$user.description}{/if}</textarea></td>
	</tr>
	<tr>
	    <td align="right"><b>Rola*:</b></td><td>
		<select class="input" style="width: 100px;" name="role">
		    {foreach item=role from=$userRole}
		    <option value="{$role.role}" {if isset($user) && $role.role == $user.role}selected{/if} >{$role.role}</option>
		    {/foreach}
		</select>
	    
	    {if isset($error.role)}<div style="color: red;" id="actionError">{$error.role}</div>{/if}
	    </td>
	</tr>
	<tr>
	    <td></td><td><input type="submit" name="AddUser" value="Dodaj" /></td>
	</tr>
    </table>
    <div id="messages"></div>

</form>

</div>
	<div class="panelContentBottom"></div>
	</div>
				</div>
				<div class="panelRightBottom">
					<div class="panelButtons">
					{*
						<form method="post" action="">
							<input type="submit" class="button buttonAnuluj" value="" name=""/> 
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="submit" class="button buttonPodglad" value="" name=""/>
							<input type="submit" class="button buttonZapisz" value="" name=""/>
							<input type="submit" class="button120 buttonZapiszIPublikuj" value="" name=""/>
						</form>
						*}
					</div>
					
				</div>