[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1653] trunk/bin/am.pl



Revision: 1653
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1653&view=rev
Author:   tetragon
Date:     2007-09-22 16:46:31 -0700 (Sat, 22 Sep 2007)

Log Message:
-----------
Removing the add language button from the template language selection

Modified Paths:
--------------
    trunk/bin/am.pl

Modified: trunk/bin/am.pl
===================================================================
--- trunk/bin/am.pl	2007-09-22 23:44:03 UTC (rev 1652)
+++ trunk/bin/am.pl	2007-09-22 23:46:31 UTC (rev 1653)
@@ -1514,7 +1514,7 @@
     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 @@
 ##        &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 @@
         template => 'am-list-departments');
     $template->render({
         form => $form,
-        buttons => ..hidden..,
         columns => ..hidden..,
         heading => \%column_header,
         rows => ..hidden..,


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.