Add AdSpace help.

Fix bad subroutine exit in label.t
Clone label.t to create setHelp.t, which checks that AdminConsole help topics resolve
Fix typo in AC help topic for InOutBoard
This commit is contained in:
Colin Kuskie 2006-05-12 04:12:01 +00:00
parent 23f39a65ab
commit f1d99a0af1
5 changed files with 118 additions and 2 deletions

View file

@ -297,7 +297,7 @@ order by department, lastName, firstName";
sub www_edit {
my $self = shift;
return $self->session->privilege->insufficient() unless $self->canEdit;
$self->getAdminConsole->setHelp("in out board add/edit","Asset_InOurBoard");
$self->getAdminConsole->setHelp("in out board add/edit","Asset_InOutBoard");
my $i18n = WebGUI::International->new($self->session, "Asset_InOutBoard");
return $self->getAdminConsole->render($self->getEditForm->print,$i18n->get("18"));
}

View file

@ -211,6 +211,7 @@ sub www_editAd {
);
$f->fieldSetEnd;
$f->submit;
$ac->setHelp('edit ad', 'AdSpace');
$ac->render($f->print, $i18n->get("edit advertisement"));
}
@ -332,6 +333,7 @@ sub www_editAdSpace {
}
$ads .= '<div style="clear: both;"></div>';
}
$ac->setHelp('edit ad space', 'AdSpace');
$ac->render($code.$f->print.$ads, $i18n->get("edit ad space"));
}

View file

@ -288,6 +288,16 @@ our $I18N = {
lastUpdated => 0,
},
'edit advertisement body' => {
message => q|<p>In this screen, you'll configure an advertisement to go into the adspace. You can set physical properties such as colors, images, displayed text and url, define how often the advertisement is shown and activate or deactivate the ad. Ads are local to a particular ad space.</p>|,
lastUpdated => 0,
},
'edit ad space body' => {
message => q|<p>In this screen, you will configure an area that holds an ad (an ad space) to embed in a page via the Ad Space macro (<b>&#94;AdSpace();</b>). When editing an existing ad space, a preview of the ad space is shown, along with a list of ads to be shown in the space. The icons in the list of ads allow ads to be edited or deleted.</p>|,
lastUpdated => 0,
},
};
1;