94 lines
3.3 KiB
Plaintext
94 lines
3.3 KiB
Plaintext
{* Вкладки *}
|
|
{capture name=tabs}
|
|
{if in_array('products', $manager->permissions)}<li><a href="index.php?module=ProductsAdmin">Товары</a></li>{/if}
|
|
{if in_array('categories', $manager->permissions)}<li><a href="index.php?module=CategoriesAdmin">Категории</a></li>{/if}
|
|
{if in_array('brands', $manager->permissions)}<li><a href="index.php?module=BrandsAdmin">Бренды</a></li>{/if}
|
|
<li class="active"><a href="index.php?module=FeaturesAdmin">Свойства</a></li>
|
|
{/capture}
|
|
|
|
{if $feature->id}
|
|
{$meta_title = $feature->name scope=parent}
|
|
{else}
|
|
{$meta_title = 'Новое свойство' scope=parent}
|
|
{/if}
|
|
|
|
{* On document load *}
|
|
{literal}
|
|
<script>
|
|
$(function() {
|
|
|
|
|
|
});
|
|
</script>
|
|
{/literal}
|
|
|
|
{if $message_success}
|
|
<!-- Системное сообщение -->
|
|
<div class="message message_success">
|
|
<span>{if $message_success=='added'}Свойство добавлено{elseif $message_success=='updated'}Свойство обновлено{else}{$message_success}{/if}</span>
|
|
{if $smarty.get.return}
|
|
<a class="button" href="{$smarty.get.return}">Вернуться</a>
|
|
{/if}
|
|
</div>
|
|
<!-- Системное сообщение (The End)-->
|
|
{/if}
|
|
|
|
{if $message_error}
|
|
<!-- Системное сообщение -->
|
|
<div class="message message_error">
|
|
<span>{$message_error}</span>
|
|
<a class="button" href="">Вернуться</a>
|
|
</div>
|
|
<!-- Системное сообщение (The End)-->
|
|
{/if}
|
|
|
|
<!-- Основная форма -->
|
|
<form method=post id=product>
|
|
|
|
<div id="name">
|
|
<input class="name" name=name type="text" value="{$feature->name|escape}"/>
|
|
<input name=id type="hidden" value="{$feature->id|escape}"/>
|
|
</div>
|
|
|
|
<!-- Левая колонка свойств товара -->
|
|
<div id="column_left">
|
|
|
|
<!-- Категории -->
|
|
<div class="block">
|
|
<h2>Использовать в категориях</h2>
|
|
<select class=multiple_categories multiple name="feature_categories[]">
|
|
{function name=category_select selected_id=$product_category level=0}
|
|
{foreach from=$categories item=category}
|
|
<option value='{$category->id}' {if in_array($category->id, $feature_categories)}selected{/if} category_name='{$category->single_name}'>{section name=sp loop=$level} {/section}{$category->name}</option>
|
|
{category_select categories=$category->subcategories selected_id=$selected_id level=$level+1}
|
|
{/foreach}
|
|
{/function}
|
|
{category_select categories=$categories}
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- Левая колонка свойств товара (The End)-->
|
|
|
|
<!-- Правая колонка свойств товара -->
|
|
<div id="column_right">
|
|
|
|
<!-- Параметры страницы -->
|
|
<div class="block">
|
|
<h2>Настройки свойства</h2>
|
|
<ul>
|
|
<li><input type=checkbox name=in_filter id=in_filter {if $feature->in_filter}checked{/if} value="1"> <label for=in_filter>Использовать в фильтре</label></li>
|
|
</ul>
|
|
</div>
|
|
<!-- Параметры страницы (The End)-->
|
|
<input type=hidden name='session_id' value='{$smarty.session.id}'>
|
|
<input class="button_green" type="submit" name="" value="Сохранить" />
|
|
|
|
</div>
|
|
<!-- Правая колонка свойств товара (The End)-->
|
|
|
|
|
|
</form>
|
|
<!-- Основная форма (The End) -->
|
|
|