From c052057372bd0318efbe370c0ba2e228d7cfd552 Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Mon, 8 May 2006 14:12:06 +0000 Subject: [PATCH] js fixes for editEvent's passType field. --- .../Asset/Wobject/EventManagementSystem.pm | 32 +++++++++++++------ 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm index 1e5fe5cf7..8c5279efb 100644 --- a/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm +++ b/lib/WebGUI/Asset/Wobject/EventManagementSystem.pm @@ -1820,6 +1820,13 @@ sub www_editEvent { -value=>$self->session->form->get("prerequisiteId") || $event->{prerequisiteId} ); } + my %passOptions; + tie %passOptions, 'Tie::IxHash'; + %passOptions = ( + ''=>$i18n->echo('None'), + 'member'=>$i18n->echo('This event is a member of a discount pass.
The selected discount pass should be applied to this event if both are in the user\'s cart.'), + 'defines'=>$i18n->echo('This event defines a discount pass.
If the user adds this event to his/her cart, the associated discount will be applied (upon checkout) to any events that are members of this discount pass.') + ); my %discountPasses; tie %discountPasses, 'Tie::IxHash'; @@ -1829,23 +1836,28 @@ sub www_editEvent { %discountPasses = (''=>$i18n->get('select one'),%discountPasses); $f->radioList( -name=>'passType', - -options=>{ - ''=>$i18n->echo('None'), - 'member'=>$i18n->echo('This event is a member of a discount pass.
The selected discount pass should be applied to this event if both are in the user\'s cart.'), - 'defines'=>$i18n->echo('This event defines a discount pass.
If the user adds this event to his/her cart, the associated discount will be applied (upon checkout) to any events that are members of this discount pass.') - }, + -options=>\%passOptions, + -vertical=1, -extras=>' onclick="changePassType();" ', -subtext=>'', -label=>$i18n->echo('assigned discount pass'), -hoverHelp=>$i18n->echo('Which Discount Pass will be applied to this event.'),