code from amapei
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
::use 'amapadmin/design.mtt'::
|
||||
|
||||
<h3>::_("Management of rights and access")::</h3>
|
||||
|
||||
$$insert(::_("Add a right")::,/amapadmin/editRight)
|
||||
|
||||
<table class="table table-bordered">
|
||||
<tr>
|
||||
<th>::_("Name")::</th>
|
||||
<th>::_("Rights")::</th>
|
||||
<th>::_("Actions")::</th>
|
||||
|
||||
</tr>
|
||||
::foreach u users::
|
||||
<tr>
|
||||
<td>
|
||||
::u._user.getName()::
|
||||
</td>
|
||||
<td>
|
||||
<ul ::cond u._rights!=null::>
|
||||
::foreach r u._rights::
|
||||
<li>::u.getRightName(r)::</li>
|
||||
::end::
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
$$insert(::_("Modify")::,/amapadmin/editRight/::u.userId::)
|
||||
</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
::end::
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
::end::
|
||||
Reference in New Issue
Block a user