<form method="post" enctype="multipart/form-data">
    {statement::display()}
    <table class="table">
        <thead>
            <tr>
                <td colspan="2">Dodaj alternatywę</td>
            </tr>
        </thead>
    
        <tr>
            <td style="width:35%">Nazwa</td>
            <td><input type="text" class="form-control" name="nazwa" value="{$data['nazwa']}" /></td>
        </tr>
        
        <tr>
            <td>Temat</td>
            <td><select name="temat_id" class="form-control">
                <option value="">- wybierz -</option>
                {foreach from=$Tematy->Items item=Temat}
                <option value="{$Temat->id}"{if $Temat->id==$data['temat_id']} selected="selected"{/if}>{$Temat->nazwa}</option>
                {/foreach}
            </select></td>
        </tr>
        <tr>
            <td>Obraz:</td>
            <td>
                <input type="file" name="image" />
                <div>
                    <small>Opcjonalne</small>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="tac">
                <input class="btn btn-primary" type="submit" value="Zapisz" />
            </td>
        </tr>
    
    </table>
</form>