@@ 93-99 (lines=7) @@ | ||
90 | )); |
|
91 | ||
92 | // Create Reservations tab |
|
93 | if ($this->owner->Reservations()->exists()) { |
|
94 | $reservationLabel = _t('TicketExtension.Reservations', 'Reservations'); |
|
95 | $fields->addFieldToTab( |
|
96 | "Root.$reservationLabel", |
|
97 | GridField::create('Reservations', $reservationLabel, $this->owner->Reservations(), ReservationGridFieldConfig::create()) |
|
98 | ); |
|
99 | } |
|
100 | ||
101 | // Create Attendees tab |
|
102 | if ($this->owner->Attendees()->exists()) { |
|
@@ 102-108 (lines=7) @@ | ||
99 | } |
|
100 | ||
101 | // Create Attendees tab |
|
102 | if ($this->owner->Attendees()->exists()) { |
|
103 | $guestListLabel = _t('TicketExtension.GuestList', 'GuestList'); |
|
104 | $fields->addFieldToTab( |
|
105 | "Root.$guestListLabel", |
|
106 | GridField::create('Attendees', $guestListLabel, $this->owner->Attendees(), GuestListGridFieldConfig::create($this->owner)) |
|
107 | ); |
|
108 | } |
|
109 | ||
110 | // Create WaitingList tab |
|
111 | if ($this->owner->WaitingList()->exists()) { |
|
@@ 111-117 (lines=7) @@ | ||
108 | } |
|
109 | ||
110 | // Create WaitingList tab |
|
111 | if ($this->owner->WaitingList()->exists()) { |
|
112 | $waitingListLabel = _t('TicketExtension.WaitingList', 'WaitingList'); |
|
113 | $fields->addFieldToTab( |
|
114 | "Root.$waitingListLabel", |
|
115 | GridField::create('WaitingList', $waitingListLabel, $this->owner->WaitingList(), GridFieldConfig_RecordEditor::create()) |
|
116 | ); |
|
117 | } |
|
118 | ||
119 | // Create Fields tab |
|
120 | $extraFieldsLabel = _t('TicketExtension.ExtraFields', 'Attendee fields'); |