Backend state for saving PIREP as a draft

This commit is contained in:
Nabeel Shahzad 2018-04-06 17:12:35 -05:00
parent 12a442970e
commit 7179910bc6
2 changed files with 3 additions and 0 deletions

View File

@ -16,6 +16,7 @@ class PirepState extends Enum
public const ACCEPTED = 2; public const ACCEPTED = 2;
public const CANCELLED = 3; public const CANCELLED = 3;
public const DELETED = 4; public const DELETED = 4;
public const DRAFT = 5;
protected static $labels = [ protected static $labels = [
PirepState::REJECTED => 'system.pireps.state.rejected', PirepState::REJECTED => 'system.pireps.state.rejected',
@ -24,5 +25,6 @@ class PirepState extends Enum
PirepState::ACCEPTED => 'system.pireps.state.accepted', PirepState::ACCEPTED => 'system.pireps.state.accepted',
PirepState::CANCELLED => 'system.pireps.state.cancelled', PirepState::CANCELLED => 'system.pireps.state.cancelled',
PirepState::DELETED => 'system.pireps.state.deleted', PirepState::DELETED => 'system.pireps.state.deleted',
PirepState::DRAFT => 'system.pireps.state.draft',
]; ];
} }

View File

@ -67,6 +67,7 @@ return [
'in_progress' => 'In Progress', 'in_progress' => 'In Progress',
'cancelled' => 'Cancelled', 'cancelled' => 'Cancelled',
'deleted' => 'Deleted', 'deleted' => 'Deleted',
'draft' => 'Draft',
], ],
'status' => [ 'status' => [
'initialized' => 'Initiated', 'initialized' => 'Initiated',