public function getFields()
 {
     $datetime = $this->getForm()->getController()->getDateTime();
     $session = $this->getForm()->getSession();
     $tickets = $this->getForm()->getSavedStepByClass('EventRegisterTicketsStep');
     $total = $tickets->getTotal();
     $table = new EventRegistrationTicketsTableField('Tickets', $datetime);
     $table->setReadonly(true);
     $table->setExcludedRegistrationId($session->RegistrationID);
     $table->setShowUnavailableTickets(false);
     $table->setShowUnselectedTickets(false);
     $table->setForceTotalRow(true);
     $table->setTotal($total);
     $fields = new FieldList(new LiteralField('ConfirmTicketsNote', '<p>Please confirm the tickets you wish to register for:</p>'), $table);
     $this->extend('updateFields', $fields);
     return $fields;
 }
 /**
  * @return EventRegistrationTicketsTableField
  */
 public function TicketsTable()
 {
     $rego = $this->registration;
     $table = new EventRegistrationTicketsTableField('Tickets', $rego->Time());
     $table->setReadonly(true);
     $table->setShowUnavailableTickets(false);
     $table->setShowUnselectedTickets(false);
     $table->setForceTotalRow(true);
     $table->setValue($rego->Tickets());
     $table->setTotal($rego->Total);
     return $table;
 }