only show uploader to admins
This commit is contained in:
parent
0f784f0a8d
commit
43d9161d6b
1 changed files with 6 additions and 0 deletions
|
@ -57,6 +57,9 @@ class AliasEditorTheme extends Themelet {
|
|||
<tfoot>$add</tfoot>
|
||||
</table>
|
||||
<p><a href='".make_link("alias/export/aliases.csv")."'>Download as CSV</a></p>
|
||||
";
|
||||
|
||||
$bulk_html = "
|
||||
<form enctype='multipart/form-data' action='".make_link("alias/import")."' method='POST'>
|
||||
<input type='file' name='alias_file'>
|
||||
<input type='submit' value='Upload List'>
|
||||
|
@ -67,6 +70,9 @@ class AliasEditorTheme extends Themelet {
|
|||
$page->set_heading("Alias List");
|
||||
$page->add_block(new NavBlock());
|
||||
$page->add_block(new Block("Aliases", $html));
|
||||
if($is_admin) {
|
||||
$page->add_block(new Block("Bulk Upload", $bulk_html, "main", 51));
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Reference in a new issue