diff options
author | ivan <ivan> | 2009-08-22 00:29:58 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-08-22 00:29:58 +0000 |
commit | 3d76fb8e984b75d67e5f96f51cfd7761a22736e1 (patch) | |
tree | 6464409210ed2634ebddcbf4ad25e1a7d3453a9a /httemplate/edit/elements | |
parent | 60dbb0846ac5ef953ef6089821beaf281f9bb395 (diff) |
use name_singular if available too
Diffstat (limited to 'httemplate/edit/elements')
-rw-r--r-- | httemplate/edit/elements/edit.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html index 23d4db30d..e290bdb86 100644 --- a/httemplate/edit/elements/edit.html +++ b/httemplate/edit/elements/edit.html @@ -677,7 +677,7 @@ Example: <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> @@ -797,7 +797,7 @@ if ( $cgi->param('error') ) { $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'}; |