Beispiel #1
0
 public function getListStatusesForActive()
 {
     if ($this->getStatus() === self::STATUS_IN_PROGRESS) {
         return \Acme\Utils\HtmlCreator::CreateSelect(array('_vns_' => 'Zmień status', self::STATUS_IS_PROBLEM => self::$arrStatusLabel[self::STATUS_IS_PROBLEM], self::STATUS_FINISHED => self::$arrStatusLabel[self::STATUS_FINISHED]), 'loan_statuses', '', $this->getStatus());
     }
     if ($this->getStatus() === self::STATUS_IS_PROBLEM) {
         return \Acme\Utils\HtmlCreator::CreateSelect(array('_vns_' => 'Zmień status', self::STATUS_IN_PROGRESS => self::$arrStatusLabel[self::STATUS_IN_PROGRESS], self::STATUS_FINISHED => self::$arrStatusLabel[self::STATUS_FINISHED]), 'loan_statuses', '', $this->getStatus());
     }
     if ($this->getStatus() === self::STATUS_FINISHED) {
         return \Acme\Utils\HtmlCreator::CreateSelect(array('_vns_' => 'Zmień status', self::STATUS_IN_PROGRESS => self::$arrStatusLabel[self::STATUS_IN_PROGRESS], self::STATUS_IS_PROBLEM => self::$arrStatusLabel[self::STATUS_IS_PROBLEM]), 'loan_statuses', '', $this->getStatus());
     }
     return $this->getStatusLabel();
 }
Beispiel #2
0
 public function getListStatusesForActive()
 {
     if ($this->getStatus() === self::STATUS_ADMIN_REJECTED) {
         return \Acme\Utils\HtmlCreator::CreateSelect(array('_vns_' => 'Zmień status', self::STATUS_ADMIN_VERIFICATION => self::$arrStatusLabel[self::STATUS_ADMIN_VERIFICATION], self::STATUS_ADMIN_ACCEPTED => self::$arrStatusLabel[self::STATUS_ADMIN_ACCEPTED]), 'credit_statuses', '', $this->getStatus());
     }
     if ($this->getStatus() === self::STATUS_ADMIN_VERIFICATION) {
         return \Acme\Utils\HtmlCreator::CreateSelect(array('_vns_' => 'Zmień status', self::STATUS_ADMIN_ACCEPTED => self::$arrStatusLabel[self::STATUS_ADMIN_ACCEPTED], self::STATUS_ADMIN_REJECTED => self::$arrStatusLabel[self::STATUS_ADMIN_REJECTED]), 'credit_statuses', '', $this->getStatus());
     }
     if ($this->getStatus() === self::STATUS_BORROWER_ACCEPTED) {
         return \Acme\Utils\HtmlCreator::CreateSelect(array('_vns_' => 'Zmień status', self::STATUS_SECOND_ADMIN_ACCEPTED => self::$arrStatusLabel[self::STATUS_SECOND_ADMIN_ACCEPTED], self::STATUS_SECOND_ADMIN_REJECTED => self::$arrStatusLabel[self::STATUS_SECOND_ADMIN_REJECTED]), 'credit_statuses', '', $this->getStatus());
     }
     return $this->getStatusLabel();
 }