From c521480c08b3aa51cad3dfae1dda4f7608f85358 Mon Sep 17 00:00:00 2001 From: tetragon Date: Sat, 6 Oct 2007 16:02:18 +0000 Subject: Templating the user preferences screen git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1709 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/am.pl | 218 ++++++++++++++++++-------------------------------------------- 1 file changed, 61 insertions(+), 157 deletions(-) (limited to 'bin') diff --git a/bin/am.pl b/bin/am.pl index 9627cea5..9477e95a 100644 --- a/bin/am.pl +++ b/bin/am.pl @@ -1891,196 +1891,100 @@ sub update { sub config { + my %selects; + $selects{dateformat} = { + name => 'dateformat', + default_values => $myconfig{dateformat}, + options => [], + }; foreach $item (qw(mm-dd-yy mm/dd/yy dd-mm-yy dd/mm/yy dd.mm.yy yyyy-mm-dd)) { - $dateformat .= - ( $item eq $myconfig{dateformat} ) - ? "