This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/frontend/client/res/templates/role/table.tpl
T
2015-05-15 12:15:14 +03:00

42 lines
1.7 KiB
Smarty

<table class="table table-bordered">
<tr>
<th></th>
<th>{{translate 'Access' scope='Role'}}</th>
{{#each actionList}}
<th>{{translate this scope='Role' category='actions'}}</th>
{{/each}}
</tr>
{{#each aclTable}}
<tr>
<td><b>{{translate @key category='scopeNamesPlural'}}</b></td>
<td>
{{#if ../editMode}}
<select name="{{name}}" class="form-control" data-type="access">{{options ../../accessList access scope='Role' field='accessList'}}</select>
{{else}}
<span style="color: {{prop ../../colors access}};">{{translateOption access scope='Role' field='accessList'}}</span>
{{/if}}
</td>
{{#ifNotEqual type 'boolean'}}
{{#each ../acl}}
<td>
{{#if ../../../editMode}}
<select name="{{../name}}" class="form-control" data-scope="{{../../name}}" {{#ifNotEqual ../../../access 'enabled'}}disabled{{/ifNotEqual}}>
{{options ../../levelList level field='levelList' scope='Role'}}
</select>
{{else}}
{{#ifNotEqual ../../../access 'not-set'}}
<span style="color: {{prop ../../../../../colors level}};">{{translateOption level field='levelList' scope='Role'}}</span>
{{/ifNotEqual}}
{{/if}}
</td>
{{/each}}
{{/ifNotEqual}}
</tr>
{{/each}}
</table>