mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
9336a91623
Signed-off-by: Celestora <kitsuruko@gmail.com>
72 lines
3.3 KiB
XML
72 lines
3.3 KiB
XML
{extends "@layout.xml"}
|
|
|
|
{block title}
|
|
{if $form->id === 0}
|
|
Создать набор подарков
|
|
{else}
|
|
{$form->languages["master"]->name}
|
|
{/if}
|
|
{/block}
|
|
|
|
{block heading}
|
|
{include title}
|
|
{/block}
|
|
|
|
{block content}
|
|
<form class="aui" method="POST">
|
|
<h3>Общие настройки</h3>
|
|
<fieldset>
|
|
<div class="field-group">
|
|
<label for="id">
|
|
ID
|
|
</label>
|
|
<input class="text long-field" type="number" id="id" name="id" disabled value="{$form->id}" />
|
|
</div>
|
|
<div class="field-group">
|
|
<label for="name_master">
|
|
Наименование
|
|
<span class="aui-icon icon-required"></span>
|
|
</label>
|
|
<input class="text long-field" type="text" id="name_master" name="name_master" value="{$form->languages['master']->name}" />
|
|
<div class="description">Внутреннее название набора, которое будет использоваться, если не удаётся найти название на языке пользователя.</div>
|
|
</div>
|
|
<div class="field-group">
|
|
<label for="description_master">
|
|
Описание
|
|
<span class="aui-icon icon-required"></span>
|
|
</label>
|
|
<input class="text long-field" type="text" id="description_master" name="description_master" value="{$form->languages['master']->description}" />
|
|
<div class="description">Внутреннее описание набора, которое будет использоваться, если не удаётся найти название на языке пользователя.</div>
|
|
</div>
|
|
</fieldset>
|
|
|
|
<h3>Языко-зависимые настройки</h3>
|
|
<fieldset>
|
|
{foreach $form->languages as $locale => $data}
|
|
{continueIf $locale === "master"}
|
|
|
|
<div class="field-group">
|
|
<label for="name_{$locale}">
|
|
Наименование
|
|
<img src="/assets/packages/static/openvk/img/flags/{$locale}.gif" alt="{$locale}" />
|
|
</label>
|
|
<input class="text long-field" type="text" id="name_{$locale}" name="name_{$locale}" value="{$data->name}" />
|
|
</div>
|
|
<div class="field-group">
|
|
<label for="description_{$locale}">
|
|
Описание
|
|
<img src="/assets/packages/static/openvk/img/flags/{$locale}.gif" alt="{$locale}" />
|
|
</label>
|
|
<input class="text long-field" type="text" id="description_{$locale}" name="description_{$locale}" value="{$data->description}" />
|
|
</div>
|
|
{/foreach}
|
|
</fieldset>
|
|
|
|
<div class="buttons-container">
|
|
<div class="buttons">
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
<input class="aui-button aui-button-primary submit" type="submit" value="{_save}">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{/block}
|