Fix aircraft active/inactive states
This commit is contained in:
@@ -38,8 +38,8 @@
|
||||
{!! Form::label('active', 'Active:') !!}
|
||||
<br />
|
||||
<label class="checkbox-inline">
|
||||
{!! Form::hidden('active', 0, false) !!}
|
||||
{!! Form::checkbox('active', 1, null) !!}
|
||||
{!! Form::hidden('active', 0) !!}
|
||||
{!! Form::checkbox('active') !!}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
{!! Utils::minutesToTimeString($ac->flight_hours) !!}
|
||||
</td>
|
||||
<td style="text-align: center;">
|
||||
@if($ac->active === GenericState::ACTIVE)
|
||||
@if($ac->active == GenericState::ACTIVE)
|
||||
<span class="label label-success">{!! GenericState::label($ac->active); !!}</span>
|
||||
@else
|
||||
<span class="label label-default">Inactive</span>
|
||||
|
||||
Reference in New Issue
Block a user