translate to positional parameters, internationalize default value for group search
This commit is contained in:
parent
5511319e21
commit
803da7605e
1 changed files with 14 additions and 4 deletions
|
|
@ -116,7 +116,7 @@ sub getGroupSearchForm {
|
||||||
);
|
);
|
||||||
$f->selectList(
|
$f->selectList(
|
||||||
-name=>"modifier",
|
-name=>"modifier",
|
||||||
-value=>([$session{scratch}{groupSearchModifier} || "contains"]),
|
-value=>([$session{scratch}{groupSearchModifier} || WebGUI::International::get("contains") ]),
|
||||||
-options=>{
|
-options=>{
|
||||||
startsWith=>WebGUI::International::get("starts with"),
|
startsWith=>WebGUI::International::get("starts with"),
|
||||||
contains=>WebGUI::International::get("contains"),
|
contains=>WebGUI::International::get("contains"),
|
||||||
|
|
@ -407,9 +407,19 @@ sub www_editGrouping {
|
||||||
$f->hidden("gid",$session{form}{gid});
|
$f->hidden("gid",$session{form}{gid});
|
||||||
my $u = WebGUI::User->new($session{form}{uid});
|
my $u = WebGUI::User->new($session{form}{uid});
|
||||||
my $g = WebGUI::Group->new($session{form}{gid});
|
my $g = WebGUI::Group->new($session{form}{gid});
|
||||||
$f->readOnly($u->username,WebGUI::International::get(50));
|
$f->readOnly(
|
||||||
$f->readOnly($g->name,WebGUI::International::get(84));
|
-value => $u->username,
|
||||||
$f->date("expireDate",WebGUI::International::get(369),WebGUI::Grouping::userGroupExpireDate($session{form}{uid},$session{form}{gid}));
|
-label => WebGUI::International::get(50),
|
||||||
|
);
|
||||||
|
$f->readOnly(
|
||||||
|
-value => $g->name,
|
||||||
|
-label => WebGUI::International::get(84),
|
||||||
|
);
|
||||||
|
$f->date(
|
||||||
|
-name => "expireDate",
|
||||||
|
-label => WebGUI::International::get(369),
|
||||||
|
-value => WebGUI::Grouping::userGroupExpireDate($session{form}{uid},$session{form}{gid}),
|
||||||
|
);
|
||||||
$f->yesNo(
|
$f->yesNo(
|
||||||
-name=>"groupAdmin",
|
-name=>"groupAdmin",
|
||||||
-label=>WebGUI::International::get(977),
|
-label=>WebGUI::International::get(977),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue