<?php
/* Smarty version 3.1.30, created on 2018-01-30 17:45:51
  from "C:\xampp\htdocs\decydownik\module\therapist\proces_copy.tpl" */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.30',
  'unifunc' => 'content_5a70a13f92aa40_72255597',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'b4619a450b72ab0d6caf192683a29442d5668a6c' => 
    array (
      0 => 'C:\\xampp\\htdocs\\decydownik\\module\\therapist\\proces_copy.tpl',
      1 => 1517330748,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5a70a13f92aa40_72255597 (Smarty_Internal_Template $_smarty_tpl) {
?>
<form method="post">
<div class="Content">
    <?php echo statement::display();?>

    <div class="ContentLabel tal">
        <?php echo l('Kopiowanie procesu / tabeli decyzyjnej');?>

    </div>  
    <div class="ContentWrapper">
        <div class="p20">
            
            <?php if (count($_smarty_tpl->tpl_vars['Decydenci']->value)) {?>
            <div class="col-md-6 col-md-offset-3 col-xs-12">
                <br />
                <div class="form-group">
                    <label>Nazwa procesu</label>
                    <input type="text" class="form-control" name="nazwa" />
                </div>

                <div class="form-group">
                    <label>Decydent</label>
                    <select name="user" class="form-control">
                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['Decydenci']->value, 'Decydent');
if ($_from !== null) {
foreach ($_from as $_smarty_tpl->tpl_vars['Decydent']->value) {
?>
                        <option value="<?php echo $_smarty_tpl->tpl_vars['Decydent']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['Decydent']->value->fullname;?>
</option>
                        <?php
}
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl);
?>

                    </select>
                </div>
                <div class="p10 tac">
                    <input type="submit" value="Kopiuj<?php if ($_smarty_tpl->tpl_vars['SuccessCopy']->value) {?> kolejny raz<?php }?>" class="btn btn-primary" /><?php if ($_smarty_tpl->tpl_vars['SuccessCopy']->value) {?> <a href="<?php echo core::$i->url;?>
/index.php?mode=therapist&function=history" class="btn btn-primary">Wróć do list</a><?php }?>
                </div>
            </div>
            <div class="clear"></div>
            <?php } else { ?>
            <div class="bg-info p10">
                Nie posiadasz przypisanych decydentów
            </div>
            <?php }?>
        </div>
    </div>

</div>
</form><?php }
}
