hydra/src/root/users.tt

37 lines
1.2 KiB
Plaintext
Raw Normal View History

2010-12-03 09:40:25 +00:00
[% WRAPPER layout.tt title="Users" %]
[% PROCESS common.tt %]
<div class="page-header"><h1>Users</h1></div>
2010-12-03 09:40:25 +00:00
<table class="table table-striped table-condensed">
2010-12-03 09:40:25 +00:00
<thead>
<tr>
<th>Username</th>
<th>Name</th>
<th>Email</th>
<th>Roles</th>
<th>Eval. notifications</th>
<th>Options</th>
</tr>
</thead>
<tbody>
[% FOREACH u IN users %]
<tr>
<td><a href="[% c.uri_for(c.controller('Admin').action_for('user_edit'), [u.username]) %]">[% u.username %]</a></td>
2010-12-03 09:40:25 +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>
<td>[% INCLUDE maybeLink uri = c.uri_for(c.controller('Admin').action_for('reset_password'), [u.username]) content = "Reset password" confirmmsg = "Are you sure you want to reset the password for this user?" class = "btn btn-mini" %]</td>
2010-12-03 09:40:25 +00:00
</tr>
[% END %]
</tbody>
</table>
<p><a class="btn" href="[% c.uri_for(c.controller('Admin').action_for('create_user')) %]">
<i class="icon-plus"></i> Add a new user
</a></p>
2010-12-03 09:40:25 +00:00
[% END %]