projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
start of package class web UI (add/edit package classes, package class selection...
[freeside.git]
/
httemplate
/
edit
/
elements
/
edit.html
diff --git
a/httemplate/edit/elements/edit.html
b/httemplate/edit/elements/edit.html
index
ce6e2db
..
5486b4b
100644
(file)
--- a/
httemplate/edit/elements/edit.html
+++ b/
httemplate/edit/elements/edit.html
@@
-15,6
+15,8
@@
# ]
#
# 'menubar' => '', #menubar arrayref
# ]
#
# 'menubar' => '', #menubar arrayref
+ #
+ # 'viewall_dir' => '', #'search' or 'browse', defaults to 'search'
my(%opt) = @_;
my(%opt) = @_;
@@
-55,7
+57,9
@@
} else {
@menubar = (
'Main menu' => $p, #eventually get rid of this when the ACL/UI update is done
} else {
@menubar = (
'Main menu' => $p, #eventually get rid of this when the ACL/UI update is done
- "View all $opt{'name'}s" => "${p}search/$table.html", #eventually use Lingua::bs to pluralize
+ #eventually use Lingua::bs to pluralize
+ "View all $opt{'name'}s" => $p. ( $opt{'viewall_dir'} || 'search' ).
+ "/$table.html",
);
}
);
}