<?php
/* Smarty version 4.1.1, created on 2022-09-27 21:38:04
  from 'C:\xampp\htdocs\Templates\white\admin\edituser.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.1.1',
  'unifunc' => 'content_6333976cef5939_95405210',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '50cc6cdd21b84284dfb2fdb3dc08284884279194' => 
    array (
      0 => 'C:\\xampp\\htdocs\\Templates\\white\\admin\\edituser.tpl',
      1 => 1664200460,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6333976cef5939_95405210 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_loadInheritance();
$_smarty_tpl->inheritance->init($_smarty_tpl, true);
?>

<?php 
$_smarty_tpl->inheritance->instanceBlock($_smarty_tpl, 'Block_6024389996333976cee5b50_08000334', 'main');
$_smarty_tpl->inheritance->endChild($_smarty_tpl, "layout/layout.tpl");
}
/* {block 'main'} */
class Block_6024389996333976cee5b50_08000334 extends Smarty_Internal_Block
{
public $subBlocks = array (
  'main' => 
  array (
    0 => 'Block_6024389996333976cee5b50_08000334',
  ),
);
public function callBlock(Smarty_Internal_Template $_smarty_tpl) {
?>


<div class="slim-mainpanel">
      <div class="container">
        <div class="slim-pageheader">
          <ol class="breadcrumb slim-breadcrumb">
            <li class="breadcrumb-item"><a href="#">Admin</a></li>
            <li class="breadcrumb-item"><a href="#">User</a></li>
            <li class="breadcrumb-item active" aria-current="page">Edit</li>
          </ol>
          <h6 class="slim-pagetitle">Edit User</h6>
        </div><!-- slim-pageheader -->

        <div class="section-wrapper">
          <?php if ($_smarty_tpl->tpl_vars['error']->value) {?>
          <div class="alert alert-danger mg-b-0" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
              <span aria-hidden="true">×</span>
            </button>
            <strong>[ERROR]</strong> <?php echo $_smarty_tpl->tpl_vars['error']->value->listErrors();?>

          </div><br>
          <?php }?>
          <?php if ($_smarty_tpl->tpl_vars['msg']->value) {?>
          <div class="alert alert-success mg-b-0" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
              <span aria-hidden="true">×</span>
            </button>
            <strong>[SUCCESS]</strong> <?php echo $_smarty_tpl->tpl_vars['msg']->value;?>

          </div><br>
          <?php }?>
          <form method="POST" action="<?php echo base_url();?>
/admin/user/edit/<?php echo $_smarty_tpl->tpl_vars['user']->value->Id;?>
">
          <div class="form-layout">
            <div class="row mg-b-25">
              <div class="col-lg-4">
                <div class="form-group">
                  <label class="form-control-label">Name: <span class="tx-danger">*</span></label>
                  <input class="form-control" type="text" name="user" value="<?php echo $_smarty_tpl->tpl_vars['user']->value->Name;?>
" placeholder="Enter Username">
                </div>
              </div><!-- col-4 -->
              <div class="col-lg-4">
                <div class="form-group">
                  <label class="form-control-label">Email: <span class="tx-danger">*</span></label>
                  <input class="form-control" type="text" name="email" value="<?php echo $_smarty_tpl->tpl_vars['user']->value->Mail;?>
" placeholder="Enter Email">
                </div>
              </div><!-- col-4 -->
              <!-- col-4 -->
              <div class="col-lg-4">
                <div class="form-group mg-b-10-force">
                  <label class="form-control-label">Level: <span class="tx-danger">*</span></label>
                  <select class="form-control select2" name="status" data-placeholder="Choose Status" tabindex="-1" aria-hidden="true">
                    <option label="Choose Status"></option>
                    <option value="0" <?php echo $_smarty_tpl->tpl_vars['user']->value->Status === 0 ? 'selected' : '';?>
>Desativada</option>
                    <option value="1" <?php echo $_smarty_tpl->tpl_vars['user']->value->Status === 1 ? 'selected' : '';?>
>Ativada</option>
                    <option value="16" <?php echo $_smarty_tpl->tpl_vars['user']->value->Status === 16 ? 'selected' : '';?>
>Banida</option>
                    
                  </select>

              </div>
              </div><!-- col-4 -->

              <div class="col-lg-8">
                <div class="form-group mg-b-10-force">
                  <label class="form-control-label">Date Create: <span class="tx-danger">*</span></label>
                  <input class="form-control" type="text" name="date" value="<?php echo $_smarty_tpl->tpl_vars['user']->value->Date_Create;?>
" placeholder="Date" disabled>
                </div>
              </div><!-- col-8 -->
              <div class="col-lg-4">
                <div class="form-group mg-b-10-force">
                  <label class="form-control-label">Level: <span class="tx-danger">*</span></label>
                  <select class="form-control select2" name="nivel" data-placeholder="Level" tabindex="-1" aria-hidden="true">
                    <option label="Choose Level"></option>
                    <option value="1" <?php echo $_smarty_tpl->tpl_vars['user']->value->Nivel === 1 ? 'selected' : '';?>
>Normal User</option>
                    <option value="2" <?php echo $_smarty_tpl->tpl_vars['user']->value->Nivel === 2 ? 'selected' : '';?>
>Admin</option>
                  </select>

              </div>
              </div>

              <div class="col-lg-8">
                <div class="form-group">
                  <label class="form-control-label">Password: <span class="tx-danger">*</span></label>
                  <input class="form-control" type="password" name="password" value="<?php echo $_smarty_tpl->tpl_vars['user']->value->Password;?>
" placeholder="Enter password">
                </div>
              </div><!-- col-4 -->

            </div><!-- row -->

            <div class="form-layout-footer">
              <button type="submit" id="update" class="btn btn-oblong btn-primary bd-0">Update</button>
              <button class="btn btn-oblong btn-secondary bd-0">Cancel</button>
            </div><!-- form-layout-footer -->
          </div><!-- form-layout -->
                    <input type="hidden" name="<?php echo csrf_token();?>
" value="<?php echo csrf_hash();?>
" />
        </form>
        </div><!-- section-wrapper -->

      </div><!-- container -->
    </div>
 <?php
}
}
/* {/block 'main'} */
}
