<?php
/* Smarty version 3.1.30, created on 2018-03-26 20:19:27
  from "/home/users/spine/public_html/decydownik/admin/alternatywy/edit.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_5ab939af980106_56202129',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'ccb6f6af4bdb4934702e0b8a93d1143142f6c751' => 
    array (
      0 => '/home/users/spine/public_html/decydownik/admin/alternatywy/edit.tpl',
      1 => 1517960576,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5ab939af980106_56202129 (Smarty_Internal_Template $_smarty_tpl) {
?>
<form method="post" enctype="multipart/form-data">
    <?php echo statement::display();?>

    <table class="table">
        <thead>
            <tr>
                <td colspan="2">Edytuj 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>Obraz: <?php if ($_smarty_tpl->tpl_vars['data']->value->image) {?><a href="<?php echo $_smarty_tpl->tpl_vars['data']->value->image;?>
" target="_blank">Podgląd</a><?php }?></td>
            <td>
                <input type="file" name="image" />
                <div>
                    <?php if ($_smarty_tpl->tpl_vars['data']->value->image) {?>
                    <small>Wybierz plik by zmienić obecną grafikę</small>
                    <?php } else { ?>
                    <small>Wybierz plik by jeśli chcesz dodać grafikę</small>
                    <?php }?>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="tac">
                <input class="btn btn-primary" type="submit" value="Zapisz" />
            </td>
        </tr>
    
    </table>
</form><?php }
}
