<?php
/* Smarty version 3.1.30, created on 2018-02-16 20:25:47
  from "/home/users/spine/public_html/decydownik/admin/alternatywy/add.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_5a87303b7a78e9_41049075',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '2fd19426ff1737ddc43d04d28c3b48b6c9f5c841' => 
    array (
      0 => '/home/users/spine/public_html/decydownik/admin/alternatywy/add.tpl',
      1 => 1517960576,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5a87303b7a78e9_41049075 (Smarty_Internal_Template $_smarty_tpl) {
?>
<form method="post" enctype="multipart/form-data">
    <?php echo 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="<?php echo $_smarty_tpl->tpl_vars['data']->value['nazwa'];?>
" /></td>
        </tr>
        
        <tr>
            <td>Temat</td>
            <td><select name="temat_id" class="form-control">
                <option value="">- wybierz -</option>
                <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['Tematy']->value->Items, 'Temat');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['Temat']->value) {
?>
                <option value="<?php echo $_smarty_tpl->tpl_vars['Temat']->value->id;?>
"<?php if ($_smarty_tpl->tpl_vars['Temat']->value->id == $_smarty_tpl->tpl_vars['data']->value['temat_id']) {?> selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['Temat']->value->nazwa;?>
</option>
                <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

            </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><?php }
}
