{if $user}
<b>{$user.namePrefix} {$user.name} {$user.surname} {$user.nameSuffix}:</b>
<a href="index.php?site=student&amp;action=info&amp;id={$user.id}">[detaily]</a> |
<a href="index.php?site=student&amp;action=change_p&amp;id={$user.id}">[zmeniť heslo]</a><br />
{/if}
<div class="note">
  Študent musí mať vyplnené tieto údaje: <b>Meno</b>, <b>Priezvisko</b>, <b>ISIC</b>, <b>Rok štúdia</b><br />
  {if !$user}
    <br />
    Automaticky sa vygeneruje login v tvare: <b>MenoPriezvisko</b> bez diakritiky<br />
    Heslom nového študenta budú posledné 4 cifry čísla <b>ISIC</b>
  {/if}
</div>
{if $error != ""}
  <div class="error">
    {$error}
  </div>
{/if}
<form action="index.php?site=student{$formUrlSuffix}" method="post">
<table>
	<tr> 
    <td>Titul (pred)</td>
    <td><input type="text" name="nPrefix" size="10" maxlength="10" value="{$nPrefixV}" /></td>
	</tr> 
	<tr> 
    <td>Meno</td>
    <td><input type="text" name="name" size="20" maxlength="20" value="{$nameV}" /></td>
	</tr> 
	<tr> 
    <td>Priezvisko</td>
    <td><input type="text" name="surname" size="30" maxlength="30" value="{$surnameV}" /></td>
	</tr> 
	<tr> 
    <td>Titul (za)</td>
    <td><input type="text" name="nSuffix" size="10" maxlength="10" value="{$nSuffixV}" /></td>
	</tr> 
	<tr> 
    <td>ISIC</td>
    <td><input type="text" name="isic" size="10" maxlength="10" value="{$isicV}" /></td>
	</tr>
	<tr> 
    <td>Rok štúdia</td>
    <td><input type="text" name="year" size="1" maxlength="1" value="{$yearV}" /></td>
	</tr>
	<tr> 
    <td>Odbor</td>
    <td>
      <select name="spec">
      {foreach from=$specs item=spec}
      	<option value="{$spec.id}">{$spec.name}</option>
      {/foreach}
      </select>
    </td>
	</tr>
	<tr> 
    <td colspan="2"><input type="submit" name="Start" value="{$buttonLabel}" /></td>
	</tr> 
</table>
</form>

