<?php
/* Smarty version 4.5.3, created on 2024-11-08 09:31:57
  from '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/components/properties.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.3',
  'unifunc' => 'content_672db05d3fe319_06678489',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '1035039216e366fc476f04327dcbb355a2613643' => 
    array (
      0 => '/home/w/wmaster77/corp.site-77.ru/public_html/admin/design/html/components/properties.tpl',
      1 => 1730178536,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_672db05d3fe319_06678489 (Smarty_Internal_Template $_smarty_tpl) {
?><div class="nk-block mb-2">
    <div class="nk-block-head">
        <h5 class="title">Свойства страницы</h5>
    </div>
</div>
<div class="gy-3">
    <div class="row">
        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['page']->value->template_properties, 'tp');
$_smarty_tpl->tpl_vars['tp']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['tp']->value) {
$_smarty_tpl->tpl_vars['tp']->do_else = false;
?>
        <div class="col-md-6  js-param-item">
            <div class="row g-3 align-center">
                <div class="col-lg-12">
                    <div class="form-group">
                        <input type="hidden" name="properties[name][]" class="form-control" value="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['tp']->value->name, ENT_QUOTES, 'UTF-8', true);?>
">
                        <input type="hidden" name="properties[description][]" class="form-control" value="<?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['tp']->value->description, ENT_QUOTES, 'UTF-8', true);?>
">
                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="form-group w-100 mb-0 mr-2">
                        <label class="form-label" for="prop_<?php echo $_smarty_tpl->tpl_vars['tp']->value->id;?>
"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['tp']->value->description, ENT_QUOTES, 'UTF-8', true);?>
</label>
                        &mdash; <?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['tp']->value->name, ENT_QUOTES, 'UTF-8', true);?>

                        <button type="button" class="btn btn-trigger btn-icon text-danger float-right js-param-delete" data-toggle="tooltip" data-placement="top" title="" data-original-title="Удалить">
                            <em class="icon ti ti-trash"></em>
                        </button>
                        <textarea name="properties[value][]" id="prop_<?php echo $_smarty_tpl->tpl_vars['tp']->value->id;?>
" class="form-control"><?php echo htmlspecialchars((string)$_smarty_tpl->tpl_vars['page']->value->properties[$_smarty_tpl->tpl_vars['tp']->value->name], ENT_QUOTES, 'UTF-8', true);?>
</textarea>
                    </div>
                </div>
            </div>
        </div>
        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

        <div class="col-md-6">
            <div class="row g-3 pt-5">
                <div class="col-lg-12">
                    <div class="form-group">
                        <input type="text" name="properties[name][]" class="form-control" placeholder="Название, например price" value="">
                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="form-group">
                        <input type="text" name="properties[description][]" class="form-control" placeholder="Описание, например цена" value="">
                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="form-group w-100 mb-0 mr-2">
                        <input type="text" name="properties[value][]" class="form-control" placeholder="Значение, например 1500 руб." value="">
                    </div>
                </div>
            </div>
        </div>
    </div>


</div>
<div class="justify-center mt-2">
    <button type="submit" class="btn btn-success">Сохранить</button>
</div>
<?php }
}
