git add stuff
This commit is contained in:
115
simpla/design/html/delivery.tpl
Normal file
115
simpla/design/html/delivery.tpl
Normal file
@@ -0,0 +1,115 @@
|
||||
{* Вкладки *}
|
||||
{capture name=tabs}
|
||||
{if in_array('settings', $manager->permissions)}<li><a href="index.php?module=SettingsAdmin">Настройки</a></li>{/if}
|
||||
{if in_array('currency', $manager->permissions)}<li><a href="index.php?module=CurrencyAdmin">Валюты</a></li>{/if}
|
||||
<li class="active"><a href="index.php?module=DeliveriesAdmin">Доставка</a></li>
|
||||
{if in_array('payment', $manager->permissions)}<li><a href="index.php?module=PaymentMethodsAdmin">Оплата</a></li>{/if}
|
||||
{if in_array('managers', $manager->permissions)}<li><a href="index.php?module=ManagersAdmin">Менеджеры</a></li>{/if}
|
||||
{/capture}
|
||||
|
||||
{if $delivery->id}
|
||||
{$meta_title = $delivery->name scope=parent}
|
||||
{else}
|
||||
{$meta_title = 'Новый способ доставки' scope=parent}
|
||||
{/if}
|
||||
|
||||
{* Подключаем Tiny MCE *}
|
||||
{include file='tinymce_init.tpl'}
|
||||
|
||||
{* On document load *}
|
||||
{literal}
|
||||
<script src="design/js/jquery/jquery.js"></script>
|
||||
<script src="design/js/jquery/jquery-ui.min.js"></script>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
$('select[name=module]').change(function(){
|
||||
$('div#module_settings').hide();
|
||||
$('div#module_settings[module='+$(this).val()+']').show();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
{/literal}
|
||||
|
||||
|
||||
|
||||
{if $message_success}
|
||||
<!-- Системное сообщение -->
|
||||
<div class="message message_success">
|
||||
<span>{if $message_success == 'added'}Способ доставки добавлен{elseif $message_success == 'updated'}Способ доставки изменен{/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 enctype="multipart/form-data">
|
||||
<input type=hidden name="session_id" value="{$smarty.session.id}">
|
||||
<div id="name">
|
||||
<input class="name" name=name type="text" value="{$delivery->name|escape}"/>
|
||||
<input name=id type="hidden" value="{$delivery->id}"/>
|
||||
<div class="checkbox">
|
||||
<input name=enabled value='1' type="checkbox" id="active_checkbox" {if $delivery->enabled}checked{/if}/> <label for="active_checkbox">Активен</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Левая колонка свойств товара -->
|
||||
<div id="column_left">
|
||||
<!-- Параметры страницы -->
|
||||
<div class="block layer">
|
||||
<h2>Стоимость доставки</h2>
|
||||
<ul>
|
||||
<li><label class=property>Стоимость</label><input name="price" class="simpla_small_inp" type="text" value="{$delivery->price}" /> {$currency->sign}</li>
|
||||
<li><label class=property>Бесплатна от</label><input name="free_from" class="simpla_small_inp" type="text" value="{$delivery->free_from}" /> {$currency->sign}</li>
|
||||
<li><label class=property for="separate_payment">Оплачивается отдельно</label><input id="separate_payment" name="separate_payment" type="checkbox" value="1" {if $delivery->separate_payment}checked{/if} /></li>
|
||||
<li><label class=property for="ems">EMS форма</label><input id="ems" name="ems" type="checkbox" value="1" {if $delivery->ems}checked{/if} /></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- Параметры страницы (The End)-->
|
||||
|
||||
</div>
|
||||
<!-- Левая колонка свойств товара (The End)-->
|
||||
|
||||
<!-- Левая колонка свойств товара -->
|
||||
<div id="column_right">
|
||||
<div class="block layer">
|
||||
<h2>Возможные способы оплаты</h2>
|
||||
<ul>
|
||||
{foreach $payment_methods as $payment_method}
|
||||
<li>
|
||||
<input type=checkbox name="delivery_payments[]" id="payment_{$payment_method->id}" value='{$payment_method->id}' {if in_array($payment_method->id, $delivery_payments)}checked{/if}> <label for="payment_{$payment_method->id}">{$payment_method->name}</label><br>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Левая колонка свойств товара (The End)-->
|
||||
|
||||
<!-- Описагние товара -->
|
||||
<div class="block layer">
|
||||
<h2>Описание</h2>
|
||||
<textarea name="description" class="editor_small">{$delivery->description|escape}</textarea>
|
||||
</div>
|
||||
<!-- Описание товара (The End)-->
|
||||
<input class="button_green button_save" type="submit" name="" value="Сохранить" />
|
||||
|
||||
</form>
|
||||
<!-- Основная форма (The End) -->
|
||||
|
||||
Reference in New Issue
Block a user