summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-08-27 19:08:03 +0000
committerThierry Vignaud <tv@mandriva.org>2008-08-27 19:08:03 +0000
commit9c8d40aff68d960f121333cf051c6150e4db63b2 (patch)
treef28e26d04d45a84890ef3d444c1002faf4c99648 /perl-install/any.pm
parent7ee29d8506d3333375c067729521262ecc0b5f80 (diff)
downloaddrakx-9c8d40aff68d960f121333cf051c6150e4db63b2.tar
drakx-9c8d40aff68d960f121333cf051c6150e4db63b2.tar.gz
drakx-9c8d40aff68d960f121333cf051c6150e4db63b2.tar.bz2
drakx-9c8d40aff68d960f121333cf051c6150e4db63b2.tar.xz
drakx-9c8d40aff68d960f121333cf051c6150e4db63b2.zip
(ask_user_and_root) refresh "user management" step by right aligning most widgets
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm17
1 files changed, 10 insertions, 7 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 6f9bfa016..950801158 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -794,21 +794,24 @@ sub ask_user_and_root {
}, [
$superuser ? (
{ label => N("Set administrator (root) password"), title => 1 },
- { label => N("Password"), val => \$superuser->{password}, hidden => 1,
+ { label => N("Password"), val => \$superuser->{password}, hidden => 1, alignment => 'right',
validate => sub { authentication::check_given_password($in, $superuser, 2 * $security) } },
- { label => N("Password (again)"), val => \$superuser->{password2}, hidden => 1 },
+ { label => N("Password (again)"), val => \$superuser->{password2}, hidden => 1, alignment => 'right' },
) : (),
{ label => N("Enter a user"), title => 1 }, if_($names, { label => $names }),
if_($security <= 3 && !$options{noicons} && @icons,
- { label => N("Icon"), val => \ ($u->{icon} ||= 'default'), list => \@icons, icon2f => \&face2png, format => \&translate },
+ { label => N("Icon"), val => \ ($u->{icon} ||= 'default'), list => \@icons, icon2f => \&face2png,
+ alignment => 'right', format => \&translate },
),
- { label => N("Real name"), val => \$u->{realname}, focus_out => sub {
+ { label => N("Real name"), val => \$u->{realname}, alignment => 'right', focus_out => sub {
$u->{name} ||= lc first($u->{realname} =~ /([a-zA-Z0-9_-]+)/);
} },
- { label => N("Login name"), val => \$u->{name}, list => \@suggested_names, not_edit => 0, validate => $validate_name },
- { label => N("Password"),val => \$u->{password}, hidden => 1,
+
+ { label => N("Login name"), val => \$u->{name}, list => \@suggested_names, alignment => 'right',
+ not_edit => 0, validate => $validate_name },
+ { label => N("Password"),val => \$u->{password}, hidden => 1, alignment => 'right',
validate => sub { authentication::check_given_password($in, $u, $security > 3 ? 6 : 0) } },
- { label => N("Password (again)"), val => \$u->{password2}, hidden => 1 },
+ { label => N("Password (again)"), val => \$u->{password2}, hidden => 1, alignment => 'right' },
{ label => N("Shell"), val => \$u->{shell}, list => [ shells() ], advanced => 1 },
{ label => N("User ID"), val => \$u->{uid}, advanced => 1, validate => sub { $validate_uid_gid->('uid') } },
{ label => N("Group ID"), val => \$u->{gid}, advanced => 1, validate => sub { $validate_uid_gid->('gid') } },