Added edit registratnt docs for EMS

Added method to acWrapper inside EMS so that Help can be externally set and
not overwritten.
Added getHelp method to AdminConsole so the details of seeing if help has been
set are hidden.
This commit is contained in:
Colin Kuskie 2006-05-10 22:58:33 +00:00
parent 648d782b49
commit a1a920cfea
4 changed files with 82 additions and 8 deletions

View file

@ -493,6 +493,19 @@ sub setHelp {
#-------------------------------------------------------------------
=head2 getHelp ( )
Returns the help topic, if any, that has been set for this adminConsole.
=cut
sub getHelp {
my $self = shift;
return (exists $self->{_helpUrl} ? $self->{_helpUrl} : '');
}
#-------------------------------------------------------------------
sub session {
my $self = shift;
return $self->{_session};

View file

@ -158,13 +158,15 @@ sub _acWrapper {
my $html = shift;
my $title = shift;
my $i18n = WebGUI::International->new($self->session,'Asset_EventManagementSystem');
$self->getAdminConsole->setHelp('add/edit event','Asset_EventManagementSystem');
$self->getAdminConsole->addSubmenuItem($self->getUrl('func=search'),$i18n->get("manage events"));
$self->getAdminConsole->addSubmenuItem($self->getUrl('func=manageEventMetadata'), $i18n->get('manage event metadata'));
$self->getAdminConsole->addSubmenuItem($self->getUrl('func=managePrereqSets'), $i18n->get('manage prerequisite sets'));
$self->getAdminConsole->addSubmenuItem($self->getUrl('func=manageRegistrants'), $i18n->get('manage registrants'));
$self->getAdminConsole->addSubmenuItem($self->getUrl('func=manageDiscountPasses'), $i18n->get('manage discount passes'));
return $self->getAdminConsole->render($html,$title);
my $ac = $self->getAdminConsole;
$ac->setHelp('add/edit event','Asset_EventManagementSystem')
unless $ac->getHelp;
$ac->addSubmenuItem($self->getUrl('func=search'),$i18n->get("manage events"));
$ac->addSubmenuItem($self->getUrl('func=manageEventMetadata'), $i18n->get('manage event metadata'));
$ac->addSubmenuItem($self->getUrl('func=managePrereqSets'), $i18n->get('manage prerequisite sets'));
$ac->addSubmenuItem($self->getUrl('func=manageRegistrants'), $i18n->get('manage registrants'));
$ac->addSubmenuItem($self->getUrl('func=manageDiscountPasses'), $i18n->get('manage discount passes'));
return $ac->render($html,$title);
}
@ -3084,6 +3086,7 @@ function resetToInitial() {
);
$f->submit;
$f->raw($self->www_viewPurchase('noStyle',$badgeId));
$self->getAdminConsole->setHelp('edit registrant','Asset_EventManagementSystem');
return $self->_acWrapper($f->print, $i18n->get("edit registrant"));
}
@ -3202,6 +3205,7 @@ sub www_manageDiscountPasses {
"&nbsp;&nbsp;".$data->{name}."&nbsp;&nbsp;(".$data->{type}."&nbsp;".$data->{amount}."&nbsp;)</div>";
}
}
$self->getAdminConsole->setHelp('manage discount passes', 'Asset_EventManagementSystem');
$self->getAdminConsole->addSubmenuItem($self->getUrl('func=editDiscountPass;passId=new'), $i18n->get('add discount pass'));
return $self->_acWrapper($output, $i18n->get("manage discount passes"));
}
@ -3265,6 +3269,7 @@ sub www_editDiscountPass {
value=>$data->{amount} || '0.00'
);
$f->submit;
$self->getAdminConsole->setHelp('edit discount pass', 'Asset_EventManagementSystem');
return $self->_acWrapper($f->print, $i18n->get("edit discount pass"));
}

View file

@ -279,6 +279,52 @@ our $HELP = {
],
},
'manage discount passes' => {
source => 'sub www_manageDiscountPass',
title => 'manage discount passes',
body => 'manage discount pass body',
fields => [
],
related => [
{
tag => 'edit discount pass',
namespace => 'Asset_EventManagementSystem',
},
{
tag => 'event management system add/edit',
namespace => 'Asset_EventManagementSystem',
},
],
},
'edit registrant' => {
source => 'sub www_editRegistrant',
title => 'edit registrant',
body => 'edit registrant body',
fields => [
{
title => 'associated user',
description => 'associated user description',
namespace => 'Asset_EventManagementSystem',
},
{
title => 'created by',
description => 'created by description',
namespace => 'Asset_EventManagementSystem',
},
],
related => [
{
tag => 'event management system add/edit',
namespace => 'Asset_EventManagementSystem',
},
{
tag => 'add/edit event',
namespace => 'Asset_EventManagementSystem',
},
],
},
'event management system template' => {
source => 'sub view',
title => 'template help title',

View file

@ -1357,6 +1357,11 @@ normal templates.|,
lastUpdated => 1147050958,
},
'edit registrant body' => {
message => q|<p></p>|,
lastUpdated => 1147050958,
},
'see available subevents' => {
message => q|Would you like to see available subevents?|,
lastUpdated => 1147050958,
@ -1373,7 +1378,7 @@ normal templates.|,
},
'associated user description' => {
message => q|The user that will be set up to use this badge.|,
message => q|It is possible to link up this registrant with a user from the WebGUI user database and to synchronize their registrant information with their WebGUI profile. You may also create a new WebGUI user with their profile information started with their registrant information.|,
lastUpdated => 1147050958,
},
@ -1531,6 +1536,11 @@ added to the user's cart and would be discounted if the Attend All Sessions even
lastUpdated => 1147108858,
},
'manage discount pass body' => {
message => q|<p>The Manage Discount Passes screen allows you to manage Discount Passes on any Event Management System asset on your site. Any user who is allowed to add events to the EMS also has access this screen. Using the list of displayed passes, you may delete or edit any pass. Use the link to the right to create a new discount pass.</p>|,
lastUpdated => 1147108858,
},
};
1;