Add a convenience link to the Asset Manager on the Import Product node.

This commit is contained in:
Colin Kuskie 2008-06-09 22:24:27 +00:00
parent d32fa80155
commit 1be93c9bdd
2 changed files with 10 additions and 3 deletions

View file

@ -319,9 +319,9 @@ displayed back to the user.
=cut
sub www_manage {
my $self = shift;
my $self = shift;
my $status_message = shift;
my $session = $self->session;
my $session = $self->session;
my $admin = WebGUI::Shop::Admin->new($session);
return $session->privilege->insufficient
unless $admin->canManage;
@ -346,8 +346,9 @@ sub www_manage {
EODIV
}
$output .= sprintf <<EODIV, $exportForm, $importForm;
$output .= sprintf <<EODIV, $exportForm, $importForm, $session->url->append(WebGUI::Asset::Sku::Product->getProductImportNode($session)->getUrl, 'op=assetManager'), $i18n->get('view products');
<div id="importExport">%s%s</div>
<p><a href="%s">%s</a></p>
EODIV
return $admin->getAdminConsole->render($output, $i18n->get('products'));

View file

@ -915,6 +915,12 @@ our $I18N = {
context => q|Message telling the user the their products have been imported successfully.|
},
'view products' => {
message => q|View all imported products|,
lastUpdated => 1213047491,
context => q|Label for a shortcut to the import products folder|
},
};
1;