forked from lix-project/hydra
a77161e40a
Also, don't use the flash anymore for going back to the referer.
31 lines
888 B
Text
31 lines
888 B
Text
[% WRAPPER layout.tt title="Users" %]
|
|
[% PROCESS common.tt %]
|
|
|
|
<table class="table table-striped table-condensed clickable-rows">
|
|
<thead>
|
|
<tr>
|
|
<th>Username</th>
|
|
<th>Name</th>
|
|
<th>Email</th>
|
|
<th>Roles</th>
|
|
<th>Eval. notifications</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH u IN users %]
|
|
<tr>
|
|
<td><a class="row-link" href="[% c.uri_for(c.controller('User').action_for('edit'), [u.username]) %]">[% u.username %]</a></td>
|
|
<td>[% u.fullname %]</td>
|
|
<td>[% u.emailaddress %]</td>
|
|
<td>[% FOREACH r IN u.userroles %]<i>[% r.role %]</i> [% END %]</td>
|
|
<td>[% IF u.emailonerror %]Yes[% ELSE %]No[% END %]</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
|
|
<p><a class="btn" href="[% c.uri_for(c.controller('Root').action_for('register')) %]">
|
|
<i class="icon-plus"></i> Add a new user
|
|
</a></p>
|
|
|
|
[% END %]
|