fixed: subscription group in CS edit not internationalized

This commit is contained in:
Graham Knop 2008-03-28 19:54:53 +00:00
parent fbe16aae27
commit 221d5ac0aa
4 changed files with 21 additions and 20 deletions

View file

@ -739,18 +739,18 @@ sub definition {
hoverHelp=>$i18n->get('use captcha hover help'),
},
subscriptionGroupId =>{
fieldType=>"subscriptionGroup",
fieldType=>"subscriptionGroup",
tab=>'security',
label=>"subscription group label",
hoverHelp=>"subscription group hoverHelp",
label=>$i18n->get("subscription group label"),
hoverHelp=>$i18n->get("subscription group hoverHelp"),
noFormPost=>1,
defaultValue=>undef,
},
groupToEditPost=>{
tab=>"security",
label=>'Group to Edit Posts',
label=>$i18n->get('group to edit label'),
excludeGroups=>[1,7],
hoverHelp=>'Group to Edit Posts',
hoverHelp=>$i18n->get('group to edit hoverhelp'),
uiLevel=>6,
fieldType=>'group',
filter=>'fixId',

View file

@ -15,7 +15,7 @@ package WebGUI::Form::SubscriptionGroup;
=cut
use strict;
use base 'WebGUI::Form::Hidden';
use base 'WebGUI::Form::Control';
use WebGUI::International;
=head1 NAME
@ -76,24 +76,15 @@ Renders the form field to HTML as a table row. The row is not displayed because
=cut
sub toHtmlWithWrapper {
my $self = shift;
sub toHtml {
my $self = shift;
my $value = $self->fixMacros($self->fixQuotes($self->fixSpecialCharacters($self->get("value")))) || '';
my $manageButton = " ";
if($value) {
if ($value) {
$manageButton = $self->session->icon->manage("op=editGroup;gid=".$value);
}
if ($self->passUiLevelCheck) {
my ($fieldClass, $rowClass, $labelClass, $hoverHelp, $subtext) = $self->prepareWrapper;
return '<tr'.$rowClass.'>
<td'.$labelClass.$hoverHelp.' valign="top" style="width: 180px;"><label for="'.$self->get("id").'">'.$self->get("label").'</label></td>
<td valign="top"'.$fieldClass.'>'.$manageButton.$self->toHtmlAsHidden."</td>
</tr>\n";
} else {
return $self->toHtmlAsHidden;
}
return $manageButton . $self->toHtmlAsHidden;
}

View file

@ -1609,6 +1609,15 @@ the Collaboration Asset, the user will be notified.|,
message => q|Manage the users in the subscription group for this Collaboration System|,
lastUpdated => 1170543345,
},
'group to edit label' => {
message => q|Group to Edit Posts|,
lastUpdated => 1206733328,
},
'group to edit hoverhelp' => {
message => q|Group to Edit Posts|,
lastUpdated => 1206733328,
},
'use captcha label' => {
message => q|Use Post Captcha|,