@@ -18,63 +18,63 @@ use strict;
18
18
use Moose;
19
19
use WebGUI::Definition::Asset;
20
20
extends ' WebGUI::Asset::Sku' ;
21
- define assetName => [' ems badge' , ' Asset_EMSBadge ' ];
21
+ define assetName => [' ems badge' , ' Asset_EventManagementSystem ' ];
22
22
define icon => ' EMSBadge.gif' ;
23
23
define tableName => ' EMSBadge' ;
24
24
property price => (
25
25
tab => " shop" ,
26
26
fieldType => " float" ,
27
27
default => 0.00,
28
- label => [" price" , ' Asset_EMSBadge ' ],
29
- hoverHelp => [" price help" , ' Asset_EMSBadge ' ],
28
+ label => [" price" , ' Asset_EventManagementSystem ' ],
29
+ hoverHelp => [" price help" , ' Asset_EventManagementSystem ' ],
30
30
);
31
31
property earlyBirdPrice => (
32
32
tab => " shop" ,
33
33
fieldType => " float" ,
34
34
default => 0.00,
35
- label => [" early bird price" , ' Asset_EMSBadge ' ],
36
- hoverHelp => [" early bird price help" , ' Asset_EMSBadge ' ],
35
+ label => [" early bird price" , ' Asset_EventManagementSystem ' ],
36
+ hoverHelp => [" early bird price help" , ' Asset_EventManagementSystem ' ],
37
37
);
38
38
property earlyBirdPriceEndDate => (
39
39
tab => " shop" ,
40
40
fieldType => " date" ,
41
41
default => undef ,
42
- label => [" early bird price end date" , ' Asset_EMSBadge ' ],
43
- hoverHelp => [" early bird price end date help" , ' Asset_EMSBadge ' ],
42
+ label => [" early bird price end date" , ' Asset_EventManagementSystem ' ],
43
+ hoverHelp => [" early bird price end date help" , ' Asset_EventManagementSystem ' ],
44
44
);
45
45
property preRegistrationPrice => (
46
46
tab => " shop" ,
47
47
fieldType => " float" ,
48
48
default => 0.00,
49
- label => [" pre registration price" , ' Asset_EMSBadge ' ],
50
- hoverHelp => [" pre registration price help" , ' Asset_EMSBadge ' ],
49
+ label => [" pre registration price" , ' Asset_EventManagementSystem ' ],
50
+ hoverHelp => [" pre registration price help" , ' Asset_EventManagementSystem ' ],
51
51
);
52
52
property preRegistrationPriceEndDate => (
53
53
tab => " shop" ,
54
54
fieldType => " date" ,
55
55
default => undef ,
56
- label => [" pre registration price end date" , ' Asset_EMSBadge ' ],
57
- hoverHelp => [" pre registration price end date help" , ' Asset_EMSBadge ' ],
56
+ label => [" pre registration price end date" , ' Asset_EventManagementSystem ' ],
57
+ hoverHelp => [" pre registration price end date help" , ' Asset_EventManagementSystem ' ],
58
58
);
59
59
property seatsAvailable => (
60
60
tab => " shop" ,
61
61
fieldType => " integer" ,
62
62
default => 100,
63
- label => [" seats available" , ' Asset_EMSBadge ' ],
64
- hoverHelp => [" seats available help" , ' Asset_EMSBadge ' ],
63
+ label => [" seats available" , ' Asset_EventManagementSystem ' ],
64
+ hoverHelp => [" seats available help" , ' Asset_EventManagementSystem ' ],
65
65
);
66
66
property relatedBadgeGroups => (
67
67
tab => " properties" ,
68
68
fieldType => " checkList" ,
69
69
customDrawMethod => ' drawRelatedBadgeGroupsField' ,
70
- label => [" related badge groups" , ' Asset_EMSBadge ' ],
71
- hoverHelp => [" related badge groups badge help" , ' Asset_EMSBadge ' ],
70
+ label => [" related badge groups" , ' Asset_EventManagementSystem ' ],
71
+ hoverHelp => [" related badge groups badge help" , ' Asset_EventManagementSystem ' ],
72
72
);
73
73
property templateId => (
74
74
tab => " display" ,
75
75
fieldType => " template" ,
76
- label => [" view badge template" , ' Asset_EMSBadge ' ],
77
- hoverHelp => [" view badge template help" , ' Asset_EMSBadge ' ],
76
+ label => [" view badge template" , ' Asset_EventManagementSystem ' ],
77
+ hoverHelp => [" view badge template help" , ' Asset_EventManagementSystem ' ],
78
78
default => ' PBEmsBadgeTemplate0000' ,
79
79
namespace => ' EMSBadge' ,
80
80
);
@@ -492,38 +492,5 @@ sub www_addToCart {
492
492
return $self -> getParent-> www_buildBadge($self -> getOptions-> {badgeId });
493
493
}
494
494
495
-
496
- # -------------------------------------------------------------------
497
-
498
- =head2 www_edit ()
499
-
500
- Displays the edit form.
501
-
502
- =cut
503
-
504
- sub www_edit {
505
- my ($self ) = @_ ;
506
- return $self -> session-> privilege-> insufficient() unless $self -> canEdit;
507
- return $self -> session-> privilege-> locked() unless $self -> canEditIfLocked;
508
- $self -> session-> style-> setRawHeadTags(q|
509
- <style type="text/css">
510
- .forwardButton {
511
- background-color: green;
512
- color: white;
513
- font-weight: bold;
514
- padding: 3px;
515
- }
516
- .backwardButton {
517
- background-color: red;
518
- color: white;
519
- font-weight: bold;
520
- padding: 3px;
521
- }
522
- </style>
523
- | );
524
- my $i18n = WebGUI::International-> new($self -> session, " Asset_EventManagementSystem" );
525
- return $self -> processStyle(' <h1>' .$i18n -> get(' ems badge' ).' </h1>' .$self -> getEditForm-> toHtml);
526
- }
527
-
528
495
__PACKAGE__ -> meta-> make_immutable;
529
496
1;
0 commit comments