mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-16 21:34:25 +03:00
36 lines
1.3 KiB
Smarty
36 lines
1.3 KiB
Smarty
{**
|
|
* Уникальные настройки определенного типа файла
|
|
*}
|
|
|
|
{$component_info = 'uploader-info'}
|
|
|
|
<div class="{$component_info}-group js-{$component_info}-group" data-type="{$smarty.local.type}">
|
|
{* Действия *}
|
|
<ul class="{$component_info}-actions">
|
|
<li><a href="#" class="link-dotted js-{$component_info}-remove">{lang name='uploader.actions.remove'}</a></li>
|
|
</ul>
|
|
|
|
{* Уникальные св-ва для каждого типа *}
|
|
<div class="{$component_info}-properties">
|
|
{* Св-ва *}
|
|
<ul class="{$component_info}-list">
|
|
{foreach $smarty.local.properties as $property}
|
|
<li class="{$component_info}-list-item">
|
|
<span class="{$component_info}-list-item-label">{$property['label']}:</span>
|
|
<span class="js-{$component_info}-property" data-name="{$property['name']}"></span>
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
|
|
{* Текстовые св-ва *}
|
|
<div class="{$component_info}-fields">
|
|
{foreach $smarty.local.propertiesFields as $property}
|
|
{include 'components/field/field.text.tpl'
|
|
name = $property['name']
|
|
inputClasses = "js-{$component_info}-property"
|
|
inputAttributes = "data-name=\"{$property['name']}\""
|
|
label = $property['label']}
|
|
{/foreach}
|
|
</div>
|
|
</div>
|
|
</div> |