File "074dae980182cc19e0f2c9e7dd596ff99b83331c_0.file.admin-pages-edit-content.tmpl.php"

Full Path: /srv/www/www.cadoro.it/src/templates_c/074dae980182cc19e0f2c9e7dd596ff99b83331c_0.file.admin-pages-edit-content.tmpl.php
File size: 26.91 KB
MIME-type: text/x-php
Charset: utf-8

<?php
/* Smarty version 3.1.29, created on 2024-03-01 14:39:57
  from "/srv/www/www.cadoro.it/src/templates/admin-pages-edit-content.tmpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_65e1daadc919c7_87329210',
  'file_dependency' => 
  array (
    '074dae980182cc19e0f2c9e7dd596ff99b83331c' => 
    array (
      0 => '/srv/www/www.cadoro.it/src/templates/admin-pages-edit-content.tmpl',
      1 => 1708527642,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:layout-admin.tmpl' => 1,
    'file:admin-images.tmpl' => 1,
  ),
),false)) {
function content_65e1daadc919c7_87329210 ($_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_202999569965e1daadbe87b8_33051630',
  1 => false,
  3 => 0,
  2 => 0,
));
?>

    <?php 
$_smarty_tpl->ext->_inheritance->processBlock($_smarty_tpl, 0, "content", array (
  0 => 'block_27392565765e1daadbeee97_41555819',
  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-pages-edit-content.tmpl */
function block_202999569965e1daadbe87b8_33051630($_smarty_tpl, $_blockParentStack) {
?>

    <div class="breadcrumbs">
      <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/pages">Pagine</a> <span class="divider">&raquo;</span>
      <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/pages/<?php echo $_smarty_tpl->tpl_vars['page']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['page']->value['slug'];?>
</a> <span class="divider">&raquo;</span>
      <strong>Contenuto</strong>
    </div>
    <?php
}
/* {/block 'breadcrumbs'} */
/* {block 'content'}  file:admin-pages-edit-content.tmpl */
function block_27392565765e1daadbeee97_41555819($_smarty_tpl, $_blockParentStack) {
?>

    <div class="sheet">
      <div class="sheet-header">
        <h1>
          <?php if (_request('delete') == 1) {?>Elimina<?php } else { ?>Modifica<?php }?> il blocco di contenuto della pagina
          <small><?php echo $_smarty_tpl->tpl_vars['page']->value['slug'];?>
</small>
        </h1>
      </div>
      <div class="sheet-body">
        <?php if ($_smarty_tpl->tpl_vars['errors']->value) {?>
        <div class="alert alert-danger">
          <strong>ATTENZIONE: si sono verificati degli errori, correggere prima di proseguire!</strong>
        </div>
        <?php }?>
        <form class="form-horizontal" method="post" action="" enctype="multipart/form-data">
          <fieldset>
            <legend>
            <?php if (_request('delete')) {?>
              Sei sicuro di voler procedere con l'eliminazione del blocco di contenuti?
            <?php } else { ?>
              Informazioni di base
            <?php }?>
            </legend>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['slug'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="slug">SLUG</label>
              <div class="controls col-md-9">
                <input type="text" class="form-control" id="slug" name="slug" value="<?php echo _f('slug',$_smarty_tpl->tpl_vars['content']->value);?>
"<?php if (_request('delete')) {?> readonly<?php }?>>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['slug'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
                <p class="help-block">
                  SLUG per link interni tra i blocchi, nel formato <code>#slug</code>.
                </p>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['name'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="name">Nome</label>
              <div class="controls col-md-9">
                <input type="text" class="form-control" id="name" name="name" value="<?php echo _f('name',$_smarty_tpl->tpl_vars['content']->value);?>
"<?php if (_request('delete')) {?> readonly<?php }?>>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['name'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
                <p class="help-block">
                  Campo descrittivo, non mostrato all'interno del sito pubblico.
                </p>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['sorting'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="sorting">Posizione</label>
              <div class="controls col-md-9">
                <input type="text" class="form-control" id="sorting" name="sorting" value="<?php echo _f('sorting',$_smarty_tpl->tpl_vars['content']->value);?>
"<?php if (_request('delete')) {?> readonly<?php }?>>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['sorting'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
                <p class="help-block">
                  Inserire un valore numerico (es. 1) per l'ordinamento del blocco all'interno della pagina.<br>
                  I numeri più bassi vengono visualizzati prima dei numeri più alti.
                </p>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['type'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="type">Tipo</label>
              <div class="controls col-md-9">
                <select name="type" class="form-control"<?php if (_request('delete')) {?> readonly<?php }?>>
                  <option value=""></option>
                  <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['PAGE_CONTENT_TYPES']->value,'selected'=>_f('type',$_smarty_tpl->tpl_vars['content']->value)),$_smarty_tpl);?>

                </select>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['type'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
          </fieldset>
          <?php if (!_request('delete')) {?>
          <fieldset class="mt30">
            <legend>Dettaglio contenuto</legend>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['title'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="title">Titolo</label>
              <div class="controls col-md-9">
                <input type="text" class="form-control" id="title" name="title" value="<?php echo _f('title',$_smarty_tpl->tpl_vars['content']->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<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['subtitle'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="subtitle">Sottotitolo</label>
              <div class="controls col-md-9">
                <input type="text" class="form-control" id="subtitle" name="subtitle" value="<?php echo _f('subtitle',$_smarty_tpl->tpl_vars['content']->value);?>
">
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['subtitle'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="image">Immagine</label>
              <div class="controls col-md-9">
                <input type="file" class="form-control" id="image" name="image" value="">
                <?php if (isset($_smarty_tpl->tpl_vars['content']->value['image']) && $_smarty_tpl->tpl_vars['content']->value['image']) {?>
                <p class="mt20">
                  <input type="hidden" name="image" value="<?php echo $_smarty_tpl->tpl_vars['content']->value['image'];?>
">
                  <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image'];?>
" alt="" class="img-responsive img-editable" id="img_image">
                </p>
                <?php }?>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_link'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="image_link">Immagine: link di destinazione</label>
              <div class="controls col-md-9">
                <input type="text" class="form-control" id="image_link" name="image_link" value="<?php echo _f('image_link',$_smarty_tpl->tpl_vars['content']->value);?>
">
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_link'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['cta'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="cta">Call to action: Testo del pulsante</label>
              <div class="controls col-md-9">
                <input type="text" class="form-control" id="cta" name="cta" value="<?php echo _f('cta',$_smarty_tpl->tpl_vars['content']->value);?>
">
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['cta'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['cta_link'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="cta_link">Call to action: link di destinazione</label>
              <div class="controls col-md-9">
                <input type="text" class="form-control" id="cta_link" name="cta_link" value="<?php echo _f('cta_link',$_smarty_tpl->tpl_vars['content']->value);?>
">
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['cta_link'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['text_1'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="text_1">Testo 1</label>
              <div class="controls col-md-9">
                <textarea class="form-control textarea-large" id="text_1" name="text_1" data-behaviour="ckeditor"><?php echo _f('text_1',$_smarty_tpl->tpl_vars['content']->value);?>
</textarea>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['text_1'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_1'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="image_1">Immagine 1</label>
              <div class="controls col-md-9">
                <input type="file" class="form-control" id="image_1" name="image_1" value="">
                <?php if (isset($_smarty_tpl->tpl_vars['content']->value['image_1']) && $_smarty_tpl->tpl_vars['content']->value['image_1']) {?>
                <p class="mt20">
                  <input type="hidden" name="image_1" value="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_1'];?>
">
                  <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image_1'];?>
" alt="" class="img-responsive img-editable" id="img_image_1">
                </p>
                <?php }?>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_1'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_1_link'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="image_1_link">Immagine 1: link di destinazione</label>
              <div class="controls col-md-9">
                <input type="text" class="form-control" id="image_1_link" name="image_1_link" value="<?php echo _f('image_1_link',$_smarty_tpl->tpl_vars['content']->value);?>
">
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_1_link'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['text_2'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="text_2">Testo 2</label>
              <div class="controls col-md-9">
                <textarea class="form-control textarea-large" id="text_2" name="text_2" data-behaviour="ckeditor"><?php echo _f('text_2',$_smarty_tpl->tpl_vars['content']->value);?>
</textarea>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['text_2'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_2'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="image_2">Immagine 2</label>
              <div class="controls col-md-9">
                <input type="file" class="form-control" id="image_2" name="image_2" value="">
                <?php if (isset($_smarty_tpl->tpl_vars['content']->value['image_2']) && $_smarty_tpl->tpl_vars['content']->value['image_2']) {?>
                <p class="mt20">
                  <input type="hidden" name="image_2" value="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_2'];?>
">
                  <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image_2'];?>
" alt="" class="img-responsive img-editable" id="img_image_2">
                </p>
                <?php }?>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_2'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_2_link'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="image_2_link">Immagine 2: link di destinazione</label>
              <div class="controls col-md-9">
                <input type="text" class="form-control" id="image_2_link" name="image_2_link" value="<?php echo _f('image_2_link',$_smarty_tpl->tpl_vars['content']->value);?>
">
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_2_link'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['text_3'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="text_3">Testo 3</label>
              <div class="controls col-md-9">
                <textarea class="form-control textarea-large" id="text_3" name="text_3" data-behaviour="ckeditor"><?php echo _f('text_3',$_smarty_tpl->tpl_vars['content']->value);?>
</textarea>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['text_3'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_3'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="image_3">Immagine 3</label>
              <div class="controls col-md-9">
                <input type="file" class="form-control" id="image_3" name="image_3" value="">
                <?php if (isset($_smarty_tpl->tpl_vars['content']->value['image_3']) && $_smarty_tpl->tpl_vars['content']->value['image_3']) {?>
                <p class="mt20">
                  <input type="hidden" name="image_3" value="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_3'];?>
">
                  <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image_3'];?>
" alt="" class="img-responsive img-editable" id="img_image_3">
                </p>
                <?php }?>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_3'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_3_link'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="image_3_link">Immagine 3: link di destinazione</label>
              <div class="controls col-md-9">
                <input type="text" class="form-control" id="image_3_link" name="image_3_link" value="<?php echo _f('image_3_link',$_smarty_tpl->tpl_vars['content']->value);?>
">
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_3_link'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['text_3'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="text_3">Testo 4</label>
              <div class="controls col-md-9">
                <textarea class="form-control textarea-large" id="text_4" name="text_4" data-behaviour="ckeditor"><?php echo _f('text_4',$_smarty_tpl->tpl_vars['content']->value);?>
</textarea>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['text_4'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_4'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="image_4">Immagine 4</label>
              <div class="controls col-md-9">
                <input type="file" class="form-control" id="image_4" name="image_4" value="">
                <?php if (isset($_smarty_tpl->tpl_vars['content']->value['image_4']) && $_smarty_tpl->tpl_vars['content']->value['image_4']) {?>
                <p class="mt20">
                  <input type="hidden" name="image_4" value="<?php echo $_smarty_tpl->tpl_vars['content']->value['image_4'];?>
">
                  <img src="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/assets/<?php echo $_smarty_tpl->tpl_vars['content']->value['image_4'];?>
" alt="" class="img-responsive img-editable" id="img_image_4">
                </p>
                <?php }?>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_4'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_4_link'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="image_4_link">Immagine 4: link di destinazione</label>
              <div class="controls col-md-9">
                <input type="text" class="form-control" id="image_4_link" name="image_4_link" value="<?php echo _f('image_4_link',$_smarty_tpl->tpl_vars['content']->value);?>
">
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['image_4_link'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-md-3" for="gallery">Immagini gallery</label>
              <div class="controls col-md-9">
                <?php $_smarty_tpl->tpl_vars["images"] = new Smarty_Variable(_fupload('images',$_smarty_tpl->tpl_vars['content']->value), null);
$_smarty_tpl->ext->_updateScope->updateScope($_smarty_tpl, "images", 0);?>
                <input id="gallery" type="file" data-behaviour="fileupload" data-url="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/pages/upload"  class="form-control" multiple>
                <?php $_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:admin-images.tmpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['extra'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="extra">Altri contenuti / blocchi</label>
              <div class="controls col-md-9">
                <textarea class="form-control textarea-large textarea-monospace" id="extra" name="extra" rows="5"><?php echo _f('extra',$_smarty_tpl->tpl_vars['content']->value);?>
</textarea>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['extra'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['class'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="class">Classi CSS</label>
              <div class="controls col-md-9">
                <input type="text" class="form-control" id="class" name="class" value="<?php echo _f('class',$_smarty_tpl->tpl_vars['content']->value);?>
">
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['class'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
                <p class="help-block">Classi CSS, separate da uno spazio, da aggiungere all'elemento contenitore del blocco, es. <code>text-center</code> o <code>text-right</code>.</p>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['style'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="style">Stile CSS</label>
              <div class="controls col-md-9">
                <textarea class="form-control textarea-large textarea-monospace" id="style" name="style" rows="5"><?php echo _f('style',$_smarty_tpl->tpl_vars['content']->value);?>
</textarea>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['style'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
                <p class="help-block">
                  Stili CSS inseriti all'interno del tag <code>head</code> della pagina.
                  <?php if (isset($_smarty_tpl->tpl_vars['content']->value['id'])) {?>L'elemento contenitore di questo blocco ha id <code>#content-<?php echo $_smarty_tpl->tpl_vars['content']->value['id'];?>
</code>.<?php }?>
                </p>
              </div>
            </div>
          </fieldset>
          <fieldset class="mt30">
            <legend>Impostazioni di pubblicazione</legend>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['published'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="published">Pubblicato</label>
              <div class="controls col-md-9">
                <div class="checkbox">
                  <label>
                    <input type="checkbox" name="published" value="1"<?php if (_f('published',$_smarty_tpl->tpl_vars['content']->value)) {?> checked="checked"<?php }?>>
                  </label>
                </div>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['published'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['published_datetime'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="published_datetime">Data/Ora di pubblicazione</label>
              <div class="controls col-md-9">
                <?php echo _datetime_combos("published_datetime",_d('published_datetime',$_smarty_tpl->tpl_vars['content']->value),-1,1);?>

                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['published_datetime'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['published_datetime2'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="published_datetime2">Data/Ora di fine pubblicazione</label>
              <div class="controls col-md-9">
                <?php echo _datetime_combos("published_datetime2",_d('published_datetime2',$_smarty_tpl->tpl_vars['content']->value),-1,1);?>

                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['published_datetime2'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
            <div class="form-group<?php if (isset($_smarty_tpl->tpl_vars['errors']->value['condition'])) {?> error<?php }?>">
              <label class="control-label col-md-3" for="condition">Condizione</label>
              <div class="controls col-md-9">
                <select name="condition" class="form-control"<?php if (_request('delete')) {?> readonly<?php }?>>
                  <?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['PAGE_CONTENT_CONDITIONS']->value,'selected'=>_f('condition',$_smarty_tpl->tpl_vars['content']->value)),$_smarty_tpl);?>

                </select>
                <?php if (isset($_smarty_tpl->tpl_vars['errors']->value['type'])) {?><p class="help-block error">Campo obbligatorio!</p><?php }?>
              </div>
            </div>
          </fieldset>
          <?php }?>
          <div class="form-group form-actions"><div class="col-md-offset-3 col-md-9">
            <?php if (_request('delete')) {?>
            <button type="submit" name="delete" value="1" class="btn btn-danger">Elimina il blocco di contenuto</button>
            <?php } else { ?>
            <button type="submit" class="btn btn-success">Salva le modifiche</button>
            <?php }?>
            <a href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
/admin/pages/<?php echo $_smarty_tpl->tpl_vars['page']->value['id'];?>
" class="btn btn-default">Annulla</a>
          </div></div>
        </form>
      </div>
    </div>
    <?php
}
/* {/block 'content'} */
}