File "b54b479f5a5de22d8096628004c8804b0957dc23_0.file.admin-users-be-edit.tmpl.php"

Full Path: /srv/www/www.cadoro.it/src/templates_c/b54b479f5a5de22d8096628004c8804b0957dc23_0.file.admin-users-be-edit.tmpl.php
File size: 5.99 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/* Smarty version 3.1.29, created on 2024-04-20 17:34:22
  from "/srv/www/www.cadoro.it/src/templates/admin-users-be-edit.tmpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_6623e07e59db22_46665958',
  'file_dependency' => 
  array (
    'b54b479f5a5de22d8096628004c8804b0957dc23' => 
    array (
      0 => '/srv/www/www.cadoro.it/src/templates/admin-users-be-edit.tmpl',
      1 => 1708527642,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:layout-admin.tmpl' => 1,
  ),
),false)) {
function content_6623e07e59db22_46665958 ($_smarty_tpl) {
if (!is_callable('smarty_function_html_options')) require_once '/srv/www/www.cadoro.it/src/vendor/smarty/smarty/libs/plugins/function.html_options.php';
$_smarty_tpl->ext->_inheritance->init($_smarty_tpl, true);
?>

<html>
  <body>
    <?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "breadcrumbs", array (
  0 => 'block_6225310906623e07e578967_31742246',
  1 => false,
  3 => 0,
  2 => 0,
));
?>

    <?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
  0 => 'block_3205206366623e07e57cbb7_36973829',
  1 => false,
  3 => 0,
  2 => 0,
));
?>

  </body>
</html>
<?php $_smarty_tpl->ext->_inheritance->endChild($_smarty_tpl);
$_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:layout-admin.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 2, false);
}
/* {block 'breadcrumbs'}  file:admin-users-be-edit.tmpl */
function block_6225310906623e07e578967_31742246($_smarty_tpl, $_blockParentStack) {
?>

    <div class="breadcrumbs">
      <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/users-be">Utenti back-end</a> <span class="divider">&raquo;</span>
      <strong><?php echo $_smarty_tpl->tpl_vars['user']->value['lastname'];?>
 <?php echo $_smarty_tpl->tpl_vars['user']->value['firstname'];?>
</strong>
    </div>
    <?php
}
/* {/block 'breadcrumbs'} */
/* {block 'content'}  file:admin-users-be-edit.tmpl */
function block_3205206366623e07e57cbb7_36973829($_smarty_tpl, $_blockParentStack) {
?>

    <div class="sheet">
      <div class="sheet-header">
        <h1>
          Modifica utente
          <small><?php echo $_smarty_tpl->tpl_vars['user']->value['lastname'];?>
 <?php echo $_smarty_tpl->tpl_vars['user']->value['firstname'];?>
</small>
        </h1>
      </div>
      <div class="sheet-body">
        <?php if ($_smarty_tpl->tpl_vars['status']->value) {?>
        <div class="alert alert-success">
          <strong>Le modifiche sono state salvate correttamente.</strong>
        </div>
        <?php }?>
        <form class="form-horizontal" method="post" action="">
          <fieldset>
            <legend>1. Dati utente</legend>
            <div class="form-group">
              <label class="control-label col-md-2" for="lastname">Cognome</label>
              <div class="controls col-md-10">
                <input type="text" class="form-control" id="lastname" name="lastname" value="<?php echo _f('lastname',$_smarty_tpl->tpl_vars['user']->value);?>
" autofocus>
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-md-2" for="firstname">Nome</label>
              <div class="controls col-md-10">
                <input type="text" class="form-control" id="firstname" name="firstname" value="<?php echo _f('firstname',$_smarty_tpl->tpl_vars['user']->value);?>
">
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-md-2" for="company">Azienda</label>
              <div class="controls col-md-10">
                <input type="text" class="form-control" id="company" name="company" value="<?php echo _f('company',$_smarty_tpl->tpl_vars['user']->value);?>
">
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-md-2" for="email">Email</label>
              <div class="controls col-md-10">
                <input type="text" class="form-control" id="email" name="email" value="<?php echo _f('email',$_smarty_tpl->tpl_vars['user']->value);?>
">
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-md-2" for="password">Password</label>
              <div class="controls col-md-10">
                <input type="password" class="form-control" id="password" name="password" value="">
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-md-2" for="role">Ruolo</label>
              <div class="controls col-md-10">
                <select id="role" name="role" class="form-control">
                  <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['ROLES']->value,'selected'=>_f('role',$_smarty_tpl->tpl_vars['user']->value)),$_smarty_tpl);?>

                </select>
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-md-2" for="store">Punto vendita</label>
              <div class="controls col-md-10">
                <select id="store" name="store" class="form-control">
                  <option value=""></option>
                  <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['stores']->value,'selected'=>_f('store',$_smarty_tpl->tpl_vars['user']->value)),$_smarty_tpl);?>

                </select>
              </div>
            </div>
          </fieldset>
          <div class="form-group mt30"><div class="col-md-offset-2 col-md-10">
            <button type="submit" class="btn btn-primary">Salva le modifiche</button>
            <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/users-be" class="btn btn-default">Annulla</a>
          </div></div>
        </form>
      </div>
    </div>
    <?php
}
/* {/block 'content'} */
}