[freeside-commits] freeside/httemplate/edit/elements edit.html, 1.37, 1.38
Ivan,,,
ivan at wavetail.420.am
Fri Aug 21 17:30:00 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/edit/elements
In directory wavetail.420.am:/tmp/cvs-serv19722
Modified Files:
edit.html
Log Message:
use name_singular if available too
Index: edit.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/elements/edit.html,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- edit.html 20 Jul 2009 14:26:12 -0000 1.37
+++ edit.html 22 Aug 2009 00:29:58 -0000 1.38
@@ -677,7 +677,7 @@
<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 @@
$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'};
More information about the freeside-commits
mailing list