Файл: base-sys/admin/views/components/authorization_role_edit.html
Строк: 22
<?php
{style}
{literal}
.peep_avatar_sample {
width: 45px;
padding-left: 10px;
float: left;
}
.peep_role_edit_form {
float: left;
padding-left: 10px;
}
.color_sample {
width: 16px;
height: 16px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
float: left;
margin: 0px 5px 5px 0px;
cursor: pointer;
}
.color_selected {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border: 2px solid red;
}
#role-edit-cont .peep_avatar img { width: 45px; }
{/literal}
{/style}
<div id="role-edit-cont" class="clearfix">
{form name='edit-role-form'}
<table class="peep_table_3">
<tr class="peep_tr_first peep_tr_last">
<td class="peep_label" style="width: 15%">{decorator name='avatar_item' src=$defaultAvatarUrl label=$roleLabel}</td>
<td class="peep_value">
<div class="peep_smallmargin">{input name='displayLabel'} {text key='admin+display_avatar_label'}</div>
<div id="color-select-cont"{if !$role->displayLabel} style="display: none"{/if}>
<div class="peep_smallmargin">{text key='admin+avatar_label_color'}:</div>
<div class="clearfix">
{foreach from=$colors item='c' name='col'}
<div class="color_sample" style="background-color: {$c}"></div>
{/foreach}
</div>
</div>
</td>
</tr>
</table>
<div class="peep_center">{submit name='save' class='peep_ic_save'}</div>
{/form}
</div>
?>