File "3b920dbc3d4c4ed3000dbb6de56c3a573a9b05de_0.file.admin-flyers-add.tmpl.php"
Full Path: /srv/www/www.cadoro.it/src/templates_c/3b920dbc3d4c4ed3000dbb6de56c3a573a9b05de_0.file.admin-flyers-add.tmpl.php
File size: 12.83 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/* Smarty version 3.1.29, created on 2024-03-04 17:18:22
from "/srv/www/www.cadoro.it/src/templates/admin-flyers-add.tmpl" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_65e5f44e8456f2_59709252',
'file_dependency' =>
array (
'3b920dbc3d4c4ed3000dbb6de56c3a573a9b05de' =>
array (
0 => '/srv/www/www.cadoro.it/src/templates/admin-flyers-add.tmpl',
1 => 1708527642,
2 => 'file',
),
),
'includes' =>
array (
'file:layout-admin.tmpl' => 1,
),
),false)) {
function content_65e5f44e8456f2_59709252 ($_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';
if (!is_callable('smarty_function_html_checkboxes')) require_once '/srv/www/www.cadoro.it/src/vendor/smarty/smarty/libs/plugins/function.html_checkboxes.php';
$_smarty_tpl->ext->_inheritance->init($_smarty_tpl, true);
?>
<html>
<body>
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "breadcrumbs", array (
0 => 'block_4474855465e5f44e8094b3_06863854',
1 => false,
3 => 0,
2 => 0,
));
?>
<?php
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
0 => 'block_150500452565e5f44e80b924_36578129',
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-flyers-add.tmpl */
function block_4474855465e5f44e8094b3_06863854($_smarty_tpl, $_blockParentStack) {
?>
<div class="breadcrumbs">
<a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/flyers">Volantini</a> <span class="divider">»</span>
<strong>Nuovo volantino</strong>
</div>
<?php
}
/* {/block 'breadcrumbs'} */
/* {block 'content'} file:admin-flyers-add.tmpl */
function block_150500452565e5f44e80b924_36578129($_smarty_tpl, $_blockParentStack) {
?>
<div class="sheet">
<div class="sheet-header">
<h1>
Nuovo volantino
</h1>
</div>
<div class="sheet-body">
<?php if ($_smarty_tpl->tpl_vars['errors']->value) {?>
<div class="alert alert-danger">
<strong>Si sono verificati degli errori, impossibile proseguire!</strong>
</div>
<?php }?>
<form class="form-horizontal" method="post" action="" enctype="multipart/form-data">
<fieldset>
<legend>1. Dati volantino</legend>
<div class="form-group">
<label class="control-label col-md-2" for="title">Titolo</label>
<div class="controls col-md-10">
<input type="text" class="form-control" id="title" name="title" value="<?php echo _f('title',$_smarty_tpl->tpl_vars['flyer']->value);?>
">
<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['title'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="source">Sorgente</label>
<div class="controls col-md-10">
<input type="text" class="form-control" id="source" name="source" value="<?php echo _f('source',$_smarty_tpl->tpl_vars['flyer']->value);?>
">
<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['source'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="code">Codice</label>
<div class="controls col-md-10">
<input type="text" class="form-control" id="code" name="code" value="<?php echo _f('code',$_smarty_tpl->tpl_vars['flyer']->value);?>
">
<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['code'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="display">Visualizzazione</label>
<div class="controls col-md-10">
<select class="form-control" id="display" name="display">
<option value=""></option>
<?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['FLYER_DISPLAYS']->value,'selected'=>_f('display',$_smarty_tpl->tpl_vars['flyer']->value)),$_smarty_tpl);?>
</select>
<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['display'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="line">Linea</label>
<div class="controls col-md-10">
<select class="form-control" id="line" name="line">
<option value=""></option>
<?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['FLYER_LINES']->value,'selected'=>_f('line',$_smarty_tpl->tpl_vars['flyer']->value)),$_smarty_tpl);?>
</select>
<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['line'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="stores">Negozio</label>
<div class="controls col-md-10">
<p style="margin-bottom: 4px; line-height: 32px;">
<a href="#" data-behaviour="toggle-stores" data-ids="*" class="btn btn-success">+ Tutti</a>
<?php
$_from = $_smarty_tpl->tpl_vars['labels']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_ids_0_saved_item = isset($_smarty_tpl->tpl_vars['ids']) ? $_smarty_tpl->tpl_vars['ids'] : false;
$__foreach_ids_0_saved_key = isset($_smarty_tpl->tpl_vars['label']) ? $_smarty_tpl->tpl_vars['label'] : false;
$_smarty_tpl->tpl_vars['ids'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['label'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['ids']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['label']->value => $_smarty_tpl->tpl_vars['ids']->value) {
$_smarty_tpl->tpl_vars['ids']->_loop = true;
$__foreach_ids_0_saved_local_item = $_smarty_tpl->tpl_vars['ids'];
?>
<a href="#" data-behaviour="toggle-stores" data-ids="<?php echo implode(",",$_smarty_tpl->tpl_vars['ids']->value);?>
" class="btn btn-success">+ <?php echo $_smarty_tpl->tpl_vars['label']->value;?>
</a>
<?php
$_smarty_tpl->tpl_vars['ids'] = $__foreach_ids_0_saved_local_item;
}
if ($__foreach_ids_0_saved_item) {
$_smarty_tpl->tpl_vars['ids'] = $__foreach_ids_0_saved_item;
}
if ($__foreach_ids_0_saved_key) {
$_smarty_tpl->tpl_vars['label'] = $__foreach_ids_0_saved_key;
}
?>
</p>
<p style="margin-bottom: 20px; line-height: 32px;">
<a href="#" data-behaviour="untoggle-stores" data-ids="*" class="btn btn-danger">- Tutti</a>
<?php
$_from = $_smarty_tpl->tpl_vars['labels']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_ids_1_saved_item = isset($_smarty_tpl->tpl_vars['ids']) ? $_smarty_tpl->tpl_vars['ids'] : false;
$__foreach_ids_1_saved_key = isset($_smarty_tpl->tpl_vars['label']) ? $_smarty_tpl->tpl_vars['label'] : false;
$_smarty_tpl->tpl_vars['ids'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['label'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['ids']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['label']->value => $_smarty_tpl->tpl_vars['ids']->value) {
$_smarty_tpl->tpl_vars['ids']->_loop = true;
$__foreach_ids_1_saved_local_item = $_smarty_tpl->tpl_vars['ids'];
?>
<a href="#" data-behaviour="untoggle-stores" data-ids="<?php echo implode(",",$_smarty_tpl->tpl_vars['ids']->value);?>
" class="btn btn-danger">- <?php echo $_smarty_tpl->tpl_vars['label']->value;?>
</a>
<?php
$_smarty_tpl->tpl_vars['ids'] = $__foreach_ids_1_saved_local_item;
}
if ($__foreach_ids_1_saved_item) {
$_smarty_tpl->tpl_vars['ids'] = $__foreach_ids_1_saved_item;
}
if ($__foreach_ids_1_saved_key) {
$_smarty_tpl->tpl_vars['label'] = $__foreach_ids_1_saved_key;
}
?>
</p>
<div class="checkbox">
<label class="checkbox">
<?php echo smarty_function_html_checkboxes(array('name'=>"stores",'options'=>$_smarty_tpl->tpl_vars['stores']->value,'selected'=>_f('stores',$_smarty_tpl->tpl_vars['flyer']->value),'labels'=>false,'separator'=>"</label><label class=\"checkbox\">"),$_smarty_tpl);?>
</label>
</div>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="date_publishing">Data pubblicazione</label>
<div class="controls col-md-10">
<?php echo _date_combos("date_publishing",_d('date_publishing',$_smarty_tpl->tpl_vars['flyer']->value),-1,1);?>
<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['date_publishing'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="date_begin">Data inizio</label>
<div class="controls col-md-10">
<?php echo _date_combos("date_begin",_d('date_begin',$_smarty_tpl->tpl_vars['flyer']->value),-1,1);?>
<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['date_begin'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="date_end">Data fine</label>
<div class="controls col-md-10">
<?php echo _date_combos("date_end",_d('date_end',$_smarty_tpl->tpl_vars['flyer']->value),-1,1);?>
<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['date_end'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
</div>
</div>
</fieldset>
<fieldset class="mt30">
<legend>2. File di supporto</legend>
<div class="form-group">
<label class="control-label col-md-2" for="thumb">Miniatura</label>
<div class="controls col-md-10">
<input type="file" class="form-control" id="thumb" name="thumb">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="pdf">Versione PDF</label>
<div class="controls col-md-10">
<input type="file" class="form-control" id="pdf" name="pdf">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="link">Link</label>
<div class="controls col-md-10">
<input type="text" class="form-control" id="link" name="link" value="<?php echo _f('link',$_smarty_tpl->tpl_vars['flyer']->value);?>
">
<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['link'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-2" for="flipping_book">Codice sfogliatore</label>
<div class="controls col-md-10">
<textarea class="form-control" rows="5" id="flipping_book" name="flipping_book"><?php echo _f('flipping_book',$_smarty_tpl->tpl_vars['flyer']->value);?>
</textarea>
</div>
</div>
</fieldset>
<fieldset class="mt30">
<legend>3. Import da file CSV</legend>
<div class="form-group">
<label class="control-label col-md-2" for="file">CSV per import</label>
<div class="controls col-md-10">
<input type="file" class="form-control" id="file" name="file">
</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/flyers" class="btn btn-default">Annulla</a>
</div></div>
</form>
</div>
</div>
<?php
}
/* {/block 'content'} */
}