Файл: base-sys/base/views/components/component_settings.html
Строк: 133
<?php
{if $settings}
<table class="peep_table_1 peep_small peep_form peep_smallmargin">
{foreach from=$settings key='name' item='item' name='i'}
{if !in_array($name, $hidden)}
<tr class="{if !empty($item.class)}{$item.class}{/if} {if $item.display == 'table'}{cycle name="custom" values="peep_alt2,peep_alt1"}{/if} {if $smarty.foreach.i.first}peep_tr_first{/if}{if $smarty.foreach.i.last}peep_tr_last{/if}">
{if !empty($item.label)}
<td class="peep_label">{$item.label|escape:"html"}</td>
<td class="peep_value">
{else}
<td colspan="2">
{/if}
{if $item.presentation == 'custom'}
{$item.markup}
{elseif $item.presentation == 'number'}
<input type="text" name="{$name}" value="{$item.value}" />
{elseif $item.presentation == 'text'}
<input type="text" name="{$name}" value="{$item.value}" />
{elseif $item.presentation == 'textarea'}
<textarea name="{$name}" >{$item.value}</textarea>
{elseif $item.presentation == 'checkbox'}
<input type="checkbox" name="{$name}"{if $item.value} checked="checked"{/if} />
{elseif $item.presentation == 'select'}
<select name="{$name}">
{foreach from=$item.optionList key=value item=label}
<option value="{$value}"{if $value == $item.value}selected="selected"{/if}>{$label}</option>
{/foreach}
</select>
{/if}
<div id="error_{$name}" class="setting_error peep_error error"></div>
</td>
</tr>
{/if}
{/foreach}
</table>
{/if}
{block_decorator iconClass='peep_ic_gear_wheel' langLabel='base+widgets_fb_default_settings_label' name='box' type="empty" addClass="clearfix"}
<table class="peep_table_1 peep_small peep_form peep_smallmargin">
{if !in_array('title', $hidden)}
<tr class="{cycle name="system" values="peep_alt2,peep_alt1"} peep_tr_first {if in_array('freeze', $hidden) && in_array('wrap_in_box', $hidden) && in_array('show_title', $hidden)} peep_tr_last{/if}">
<td class="peep_label">{text key="base+widgets_default_settings_title"}</td>
<td class="peep_value">
<input type="text" name="title" {if isset($values.title)}value="{$values.title}" beforevalue="{$values.title}"{/if} />
<div id="error_title" class="setting_error peep_error error"></div>
</td>
</tr>
{/if}
{if !in_array('show_title', $hidden)}
<tr class="{cycle name="system" values="peep_alt2,peep_alt1"}{if in_array('freeze', $hidden) && in_array('wrap_in_box', $hidden)} peep_tr_last{/if}">
<td class="peep_label">{text key="base+widgets_default_settings_show_title"}</td>
<td class="peep_value">
<input type="checkbox" name="show_title" {if isset($values.show_title) && $values.show_title}checked="checked"{/if} />
{if !in_array("icon", $hidden)}
{text key="base+widgets_default_settings_icon"}:
<select class="choose_icon" name="icon" >
{foreach from=$avaliableIcons item=icon}
<option value="{$icon.class}" {if isset($values.icon) && $values.icon == $icon.class}selected="selected"{/if} >
{$icon.label}
</option>
{/foreach}
</select>
{/if}
</td>
</tr>
{/if}
{if !in_array('wrap_in_box', $hidden)}
<tr class="{cycle name="system" values="peep_alt2,peep_alt1"} {if in_array('freeze', $hidden) && in_array('restrict_view', $hidden)} peep_tr_last{/if}">
<td class="peep_label">{text key="base+widgets_default_settings_wib"}</td>
<td class="peep_value">
<input type="checkbox" name="wrap_in_box" {if isset($values.wrap_in_box) && $values.wrap_in_box}checked="checked"{/if} />
</td>
</tr>
{/if}
{if !in_array('freeze', $hidden)}
<tr class="{cycle name="system" values="peep_alt2,peep_alt1"} {if in_array('restrict_view', $hidden)}peep_tr_last{/if}">
<td class="peep_label">{text key="base+widgets_default_settings_freeze"}</td>
<td class="peep_value">
<input type="checkbox" name="freeze" {if isset($values.freeze) && $values.freeze}checked="checked"{/if} />
</td>
</tr>
{/if}
{if !in_array('restrict_view', $hidden)}
<tr class="{cycle name="system" values="peep_alt2,peep_alt1"} peep_tr_last" id="ws_restrict_view">
<td class="peep_label">{text key="base+widgets_default_settings_restrict_view"}</td>
<td class="peep_value">
<input type="checkbox" name="restrict_view" {if isset($values.restrict_view) && $values.restrict_view}checked="checked"{/if} onclick="$('#ws_access_restrictions')[this.checked ? 'show' : 'hide'](); $('#ws_restrict_view')[this.checked ? 'removeClass' : 'addClass']('peep_tr_last');" />
</td>
</tr>
<tr class="{cycle name="system" values="peep_alt2,peep_alt1"} peep_tr_last" id="ws_access_restrictions" {if !isset($values.restrict_view) || !$values.restrict_view}style="display: none;"{/if}>
<td class="peep_label">{text key="base+widgets_default_settings_access_restrictions"}</td>
<td class="peep_value">
{foreach from=$roleList item="role"}
<input type="checkbox" class="peep_vertical_middle" value="{$role->id}" name="access_restrictions[]" {if !isset($values.access_restrictions) || in_array($role->id, $values.access_restrictions)}checked="checked"{/if} />
{text key="base+authorization_role_`$role->name`"}
{/foreach}
</td>
</tr>
{/if}
</table>
{/block_decorator}
?>