Commit 24b629a2 authored by Richard Mansfield's avatar Richard Mansfield Committed by Nigel McNie
Browse files

Add suspend user links with old js forms

parent 35cb4a6f
......@@ -44,7 +44,7 @@ $search = (object) array(
'limit' => param_integer('limit', 10)
);
$smarty = smarty(array('usersearch'));
$smarty = smarty(array('adminusersearch'));
$smarty->assign('search', $search);
$smarty->assign('alphabet', explode(',', get_string('alphabet')));
$smarty->assign('institutions', get_records_array('institution'));
......
......@@ -467,6 +467,15 @@ function jsstrings() {
'confirmdeleteblockinstance',
),
),
'adminusersearch' => array(
'admin' => array(
'suspenduser',
'suspensionreason',
),
'mahara' => array(
'cancel',
),
),
);
}
......
......@@ -8,6 +8,7 @@
<th>{str tag="name"}</th>
<th>{str tag=email}</th>
<th>{str tag=institution}</th>
<th></th>
</tr>
</thead>
<tbody>
......@@ -18,13 +19,14 @@
<td>{$r.firstname} {$r.lastname}</td>
<td>{$r.email}</td>
<td>{$r.institution}</td>
<td><a class="suspend-user-link" href="{$WWWROOT}admin/users/suspend.php?id={$r.id}">{str tag=suspenduser section=admin}</a></td>
</tr>
{/foreach}
</tbody>
{if count($results.data) < $results.count}
<tfoot class="search-results-pages">
<tr>
<td colspan=5>
<td colspan=6>
{if $results.page > $results.prev}
<span class="search-results-page prev"><a href="?{$params}&amp;offset={$results.limit*$results.prev}">{str tag=prevpage}</a></span>
{/if}
......
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