Вход Регистрация
Файл: base-sys/admin/views/controllers/permissions_roles.html
Строк: 72
<?php
<div class="peep_automargin peep_wide">
{
block_decorator name='box' addClass='peep_stdmargin' type='empty'}
    {
capture assign="rolesPageUrl"}{url_for for='ADMIN_CTRL_Users:roles'}{/capture}
    {
text key='admin+permissions_go_to_role_management_page' url="$rolesPageUrl"}
{/
block_decorator}
</
div>

<
form method="post" action="{$formAction}">
<
div class="peep_admin_permissions peep_automargin peep_superwide peep_stdmargin peep_center">
<
table class="peep_table_2 peep_form peep_automargin peep_superwide">
    <
tr class="peep_tr_first">
        <
th>{text key='admin+permissions_role_actions_label'}</th>
        {foreach 
from=$roles item='role'}
        <
th width='1'>{text key="base+authorization_role_`$role->name`"}</th>
        {/foreach}
    </
tr>
    {foreach 
from=$groupActionList item='groupAction' name='groupAction'}    
    <
tr>
        <
th colspan="{$colspanForRoles}">{if !empty($labels[$groupAction.name].label)}{$labels[$groupAction.name].label}{else}{$groupAction.name}{/if}</th>
    </
tr>
    {foreach 
from=$groupAction.actions item='action' name='action'}
    <
tr class="{cycle values='peep_alt1,peep_alt2'}  {if $smarty.foreach.groupAction.last && $smarty.foreach.action.last}peep_tr_last{/if}">
        {
assign var='actionName' value=$action->name}
        <
td class="peep_label peep_autowidth">{if !empty($labels[$groupAction.name].actions[$actionName])}{$labels[$groupAction.name].actions[$actionName]}{else}{$actionName}{/if}</td>
        {
assign var='actionId' value=$action->id}        
        {foreach 
from=$roles item='role'}
            {
assign var='roleId' value=$role->id}        
        <
td>{if !($action->availableForGuest == false && $roleId == $guestRoleId)}<input type="checkbox" name="perm[]" value="{$actionId}:{$roleId}{if isset($perms.$actionId.$roleId)} checked="checked"{/if} />{/if}</td>
        {/foreach}
    </
tr>
    {/foreach}
    {/foreach}
</
table>

</
div>
<
div class="clearfix peep_automargin peep_superwide"><div class="peep_right">{decorator name="button" langLabel='admin+permissions_index_save' class="peep_button peep_ic_save peep_positive" onclick='this.form.submit();'}</div></div>
</
form>
?>
Онлайн: 1
Реклама