|
|
|
|
@ -2,12 +2,12 @@ |
|
|
|
|
<div class="permissions-manager"> |
|
|
|
|
{{#if hasPermission}} |
|
|
|
|
<a href="{{pathFor "admin-permissions-new"}}" class="button primary new-role">{{_ "New_role"}}</a> |
|
|
|
|
<table border="1" class="permission-grid"> |
|
|
|
|
<thead> |
|
|
|
|
<table border="1" class="permission-grid secondary-background-color"> |
|
|
|
|
<thead class="content-background-color"> |
|
|
|
|
<tr> |
|
|
|
|
<th> </th> |
|
|
|
|
<th class="border-component-color"> </th> |
|
|
|
|
{{#each role}} |
|
|
|
|
<th title="{{description}}"> |
|
|
|
|
<th class="border-component-color" title="{{description}}"> |
|
|
|
|
<a href="{{pathFor "admin-permissions-edit" name=_id}}"> |
|
|
|
|
{{_id}} |
|
|
|
|
<i class="icon-edit"></i> |
|
|
|
|
@ -18,10 +18,10 @@ |
|
|
|
|
</thead> |
|
|
|
|
<tbody> |
|
|
|
|
{{#each permission}} |
|
|
|
|
<tr> |
|
|
|
|
<td>{{_id}}</td> |
|
|
|
|
<tr class="admin-table-row"> |
|
|
|
|
<td class="border-component-color">{{_id}}</td> |
|
|
|
|
{{#each role}} |
|
|
|
|
<td> |
|
|
|
|
<td class="border-component-color"> |
|
|
|
|
<input type="checkbox" name="perm[{{_id}}][{{../_id}}]" class="role-permission" value="1" checked="{{granted ../roles}}" data-role="{{_id}}" data-permission="{{../_id}}"> |
|
|
|
|
</td> |
|
|
|
|
{{/each}} |
|
|
|
|
|