{if $course.id > 0}
  <b>{$course.name}:</b>
  <a href="index.php?site=course&amp;action=info&amp;id={$course.id}">[detaily]</a> |
  <a href="index.php?site=course&amp;action=delete&amp;id={$course.id}">[vymazať]</a><br />
{/if}
<div class="note">
  Predmet musí mať vyplnený <b>Názov</b>, ktorý nekoliduje s názvom iného predmetu.
</div>
{if $error != ""}
  <div class="error">
    {$error}
  </div>
{/if}
<form action="index.php?site=course{$formUrlSuffix}" method="post">
<table>
	<tr> 
    <td>Názov</td>
    <td><input type="text" name="name" size="50" maxlength="128" value="{$nameV}" /></td>
	</tr> 
	<tr> 
    <td>Kód</td>
    <td><input type="text" name="code" size="15" maxlength="15" value="{$codeV}" /></td>
	</tr> 
	<tr> 
    <td valign="top">Popis</td>
    <td><textarea name="description" rows="10" cols="50">{$descriptionV}</textarea></td>
	</tr> 
	<tr>
	  <td>Učiteľ</td>
	  <td>
	    <select name="teacher">	     
      {foreach from=$teachers item=teacher}
      	<option value="{$teacher.id}">{$teacher.namePrefix} {$teacher.surname}
        {$teacher.name} {$teacher.nameSuffix}</option>
      {/foreach}    
	    </select>
	  </td>
	</tr>
	<tr> 
    <td colspan="2"><input type="submit" name="Start" value="{$buttonLabel}" /></td>
	</tr> 
</table>
</form>

