File "3209cc2244ec03c933e9e1a27b6bfbcb02bc79a8_0.file.admin-users-be-add.tmpl.php"
Full Path: /srv/www/www.cadoro.it/src/templates_c/3209cc2244ec03c933e9e1a27b6bfbcb02bc79a8_0.file.admin-users-be-add.tmpl.php
File size: 5.73 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/* Smarty version 3.1.29, created on 2024-05-22 08:38:55
from "/srv/www/www.cadoro.it/src/templates/admin-users-be-add.tmpl" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_664d92ff930577_57654123',
'file_dependency' =>
array (
'3209cc2244ec03c933e9e1a27b6bfbcb02bc79a8' =>
array (
0 => '/srv/www/www.cadoro.it/src/templates/admin-users-be-add.tmpl',
1 => 1708527642,
2 => 'file',
),
),
'includes' =>
array (
'file:layout-admin.tmpl' => 1,
),
),false)) {
function content_664d92ff930577_57654123 ($_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_988535776664d92ff91d244_15360788',
1 => false,
3 => 0,
2 => 0,
));
?>
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
0 => 'block_1883283768664d92ff91fd61_01894726',
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-add.tmpl */
function block_988535776664d92ff91d244_15360788($_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">»</span>
<strong>Aggiungi utente</strong>
</div>
<?php
}
/* {/block 'breadcrumbs'} */
/* {block 'content'} file:admin-users-be-add.tmpl */
function block_1883283768664d92ff91fd61_01894726($_smarty_tpl, $_blockParentStack) {
?>
<div class="sheet">
<div class="sheet-header">
<h1>
Aggiungi un nuovo utente
</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">Aggiungi l'utente</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'} */
}