projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
60dbb08
)
use name_singular if available too
author
ivan
<ivan>
Sat, 22 Aug 2009 00:29:58 +0000
(
00:29
+0000)
committer
ivan
<ivan>
Sat, 22 Aug 2009 00:29:58 +0000
(
00:29
+0000)
httemplate/edit/elements/edit.html
patch
|
blob
|
history
diff --git
a/httemplate/edit/elements/edit.html
b/httemplate/edit/elements/edit.html
index
23d4db3
..
e290bdb
100644
(file)
--- a/
httemplate/edit/elements/edit.html
+++ b/
httemplate/edit/elements/edit.html
@@
-677,7
+677,7
@@
Example:
<BR>
<BR>
-<INPUT TYPE="submit" ID="submit" VALUE="<% ( !$clone && $object->$pkey() ) ? "Apply changes" : "Add
$opt{'name'}"
%>">
+<INPUT TYPE="submit" ID="submit" VALUE="<% ( !$clone && $object->$pkey() ) ? "Apply changes" : "Add
". ( $opt{'name'} || $opt{'name_singular'} )
%>">
</FORM>
</FORM>
@@
-797,7
+797,7
@@
if ( $cgi->param('error') ) {
$opt{action} ||= $object->$pkey() ? 'Edit' : 'Add';
$opt{action} ||= $object->$pkey() ? 'Edit' : 'Add';
-my $title = $opt{action}. ' '.
$opt{name}
;
+my $title = $opt{action}. ' '.
( $opt{name} || $opt{'name_singular'} )
;
my $viewall_url = $p . ( $opt{'viewall_dir'} || 'search' ) . "/$table.html";
$viewall_url = $opt{'viewall_url'} if $opt{'viewall_url'};
my $viewall_url = $p . ( $opt{'viewall_dir'} || 'search' ) . "/$table.html";
$viewall_url = $opt{'viewall_url'} if $opt{'viewall_url'};