Commit f5ff892c authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Move bulk actions user list into a separate template



This allows the html to be reused on other pages

Change-Id: Iad7195ff5048242515613075aa03ff5eba6a0707
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent eeacec10
......@@ -18,32 +18,6 @@
<div class="cl"></div>
<h2>{str tag=selectedusers section=admin} ({count($users)})</h2>
<table class="fullwidth">
<thead>
<tr>
<th>{str tag=username}</th>
<th>{str tag=email}</th>
<th>{str tag=firstname}</th>
<th>{str tag=lastname}</th>
<th>{str tag=studentid}</th>
<th>{str tag=preferredname}</th>
<th>{str tag=remoteuser section=admin}</th>
</tr>
</thead>
<tbody>
{foreach from=$users item=user}
<tr class="{cycle values='r0,r1'}">
<td>{$user->username}</td>
<td>{$user->email}</td>
<td>{$user->firstname}</td>
<td>{$user->lastname}</td>
<td>{$user->studentid}</td>
<td>{$user->preferredname}</td>
<td>{$user->remoteuser}</td>
</tr>
{/foreach}
</tbody>
</table>
{include file="admin/users/userlist.tpl" users=$users}
{include file="footer.tpl"}
<table class="fullwidth">
<thead>
<tr>
<th>{str tag=username}</th>
<th>{str tag=email}</th>
<th>{str tag=firstname}</th>
<th>{str tag=lastname}</th>
<th>{str tag=studentid}</th>
<th>{str tag=preferredname}</th>
<th>{str tag=remoteuser section=admin}</th>
</tr>
</thead>
<tbody>
{foreach from=$users item=user}
<tr class="{cycle values='r0,r1'}">
<td>{$user->username}</td>
<td>{$user->email}</td>
<td>{$user->firstname}</td>
<td>{$user->lastname}</td>
<td>{$user->studentid}</td>
<td>{$user->preferredname}</td>
<td>{$user->remoteuser}</td>
</tr>
{/foreach}
</tbody>
</table>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment