hydra/src/root/users.tt

32 lines
888 B
Plaintext
Raw Normal View History

2010-12-03 09:40:25 +00:00
[% WRAPPER layout.tt title="Users" %]
[% PROCESS common.tt %]
2013-02-22 17:11:29 +00:00
<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>
2013-02-22 17:11:29 +00:00
<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>
2010-12-03 09:40:25 +00:00
</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>
2010-12-03 09:40:25 +00:00
[% END %]