35 lines
1.4 KiB
PHP
35 lines
1.4 KiB
PHP
<div class="AUTHORISATION">
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<table class="table table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
pagina
|
|
</th>
|
|
<th v-for="(role, roleIndex) in roles" align="center">
|
|
<span>{{ role.rolename }}</span>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="(page, pageIndex) in pages">
|
|
<td>
|
|
<span v-bind:class="{'main-menu': page.typePage == 'MAIN', 'sub-page': page.typePage != 'MAIN'}" >
|
|
{{ page.pagename }}
|
|
</span>
|
|
</td>
|
|
<td v-for="(accessPage, roleIndex) in page.accessPages" align="center">
|
|
<i v-if="accessPage.access"
|
|
v-on:click="toggleAccess(pageIndex, roleIndex)"
|
|
class="icon fa-check pointer"></i>
|
|
<i v-if="! accessPage.access"
|
|
v-on:click="toggleAccess(pageIndex, roleIndex)"
|
|
class="icon fa-square-o pointer"></i>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div> |