From 37b948b026cb941b8f8ec4670243f30f854241bd Mon Sep 17 00:00:00 2001 From: tetragon Date: Sat, 22 Sep 2007 23:46:31 +0000 Subject: Removing the add language button from the template language selection git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1653 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/am.pl | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'bin') diff --git a/bin/am.pl b/bin/am.pl index 9b57e979..120207a0 100644 --- a/bin/am.pl +++ b/bin/am.pl @@ -1514,7 +1514,7 @@ sub list_templates { chomp $myconfig{templates}; $form->{file} =~ s/$myconfig{templates}//; $form->{file} =~ s/\///; - $form->{title} = $form->{template}; + $form->{title} = "$form->{format}: $form->{template}"; my @column_index = $form->sort_columns(qw(code description)); @@ -1549,15 +1549,6 @@ sub list_templates { ## &menubar; ## } - my @buttons; - push @buttons, { - name => 'action', - value => 'add_language', - text => $locale->text('Add Lanugage'), - type => 'submit', - class => 'submit', - }; - # SC: I'm not concerned about the wider description as code is 6 chars max my $template = LedgerSMB::Template->new_UI( user => \%myconfig, @@ -1565,7 +1556,6 @@ sub list_templates { template => 'am-list-departments'); $template->render({ form => $form, - buttons => \@buttons, columns => \@column_index, heading => \%column_header, rows => \@rows, -- cgit v1.2.3