Sorted templates into folders named after their respective namespaces
- & re-enabled the manage button next to the template dropdown [mwilson]
This commit is contained in:
parent
f302fe2d63
commit
bee9eec318
3 changed files with 13 additions and 1 deletions
|
|
@ -334,6 +334,16 @@ sub www_edit {
|
|||
return $self->getAdminConsole->render($self->getEditForm->print,WebGUI::International::get('edit template', 'Template'));
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_manage {
|
||||
my $self = shift;
|
||||
#takes the user to the folder containing this template.
|
||||
return $self->getParent->www_manageAssets;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub www_view {
|
||||
my $self = shift;
|
||||
|
|
|
|||
|
|
@ -2175,7 +2175,7 @@ sub template {
|
|||
$buttons = editIcon("func=edit",$template->get("url"));
|
||||
#"&namespace=".$namespace."&afterEdit=".WebGUI::URL::escape($afterEdit));
|
||||
# }
|
||||
#$buttons .= manageIcon("op=listTemplates&namespace=$namespace");
|
||||
$buttons .= manageIcon("func=manage",$template->get("url"));
|
||||
}
|
||||
$output = WebGUI::Form::template({
|
||||
"name"=>$name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue