Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Array
- (
- [Administrator] => Array
- (
- [0] => Array
- (
- [RoleName] => Administrator
- [PermissionName] => Catalog-View
- [PermissionId] => 1
- )
- [1] => Array
- (
- [RoleName] => Administrator
- [PermissionName] => Catalog-Edit
- [PermissionId] => 2
- )
- [2] => Array
- (
- [RoleName] => Administrator
- [PermissionName] => Catalog-Delete
- [PermissionId] => 3
- )
- )
- [Moderator] => Array
- (
- [0] => Array
- (
- [RoleName] => Moderator
- [PermissionName] => Catalog-View
- [PermissionId] => 1
- )
- )
- )
- <table>
- <tr>
- <thead>
- <th>Controller - Action</th>
- {% for permission in permissions %}
- {% for item in permission %}
- <th>{{item.RoleName}}</th>
- {% endfor %}
- {% endfor %}
- </thead>
- </tr>
- {% for permission in permissions %}
- {% for item in permission %}
- <tr>
- <td>{{item.PermissionName}}</td>
- <td>{{item.PermissionId}}</td>
- </tr>
- {% endfor %}
- {% endfor %}
- </table>
- <table>
- <tbody>
- <tr></tr>
- </tbody>
- <thead>
- <tr>
- <th>Controller - Action</th>
- <th>Administrator</th>
- <th>Administrator</th>
- <th>Administrator</th>
- <th>Moderator</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>Catalog-View</td>
- <td>1</td>
- </tr>
- <tr>
- <td>Catalog-Edit</td>
- <td>2</td>
- </tr>
- <tr>
- <td>Catalog-Delete</td>
- <td>3</td>
- </tr>
- <tr>
- <td>Catalog-View</td>
- <td>1</td>
- </tr>
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement