Flight Visibility Visuals (#1485)
Added "visible" field display and form checkbox to control it easily from admin side (instead of going through database)
This commit is contained in:
parent
2155979eb9
commit
2f9e8583f2
@ -270,7 +270,7 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Active Field -->
|
<!-- Active Field -->
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-3">
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label class="checkbox-inline">
|
<label class="checkbox-inline">
|
||||||
{{ Form::label('active', 'Active:') }}
|
{{ Form::label('active', 'Active:') }}
|
||||||
@ -279,7 +279,17 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-8">
|
<!-- Visible Field -->
|
||||||
|
<div class="col-sm-3">
|
||||||
|
<div class="checkbox">
|
||||||
|
<label class="checkbox-inline">
|
||||||
|
{{ Form::label('visible', 'Visible:') }}
|
||||||
|
<input name="visible" type="hidden" value="0" />
|
||||||
|
{{ Form::checkbox('visible') }}
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-6">
|
||||||
<div class="text-right">
|
<div class="text-right">
|
||||||
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-info']) }}
|
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-info']) }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
<th>Arr Time</th>
|
<th>Arr Time</th>
|
||||||
<th>Notes</th>
|
<th>Notes</th>
|
||||||
<th style="text-align: center;">Active</th>
|
<th style="text-align: center;">Active</th>
|
||||||
|
<th style="text-align: center;">Visible</th>
|
||||||
<th colspan="3" style="text-align: right;">Action</th>
|
<th colspan="3" style="text-align: right;">Action</th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -37,6 +38,13 @@
|
|||||||
<span class="label label-default">@lang('common.inactive')</span>
|
<span class="label label-default">@lang('common.inactive')</span>
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
|
<td style="text-align: center;">
|
||||||
|
@if($flight->visible == 1)
|
||||||
|
<span class="text-success"><i class="fas fa-check fa2x" title="Visible"></i></span>
|
||||||
|
@else
|
||||||
|
<span class="text-danger"><i class="fas fa-times fa2x" title="Hidden"></i></span>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
<td style="text-align: right;">
|
<td style="text-align: right;">
|
||||||
{{ Form::open(['route' => ['admin.flights.destroy', $flight->id], 'method' => 'delete']) }}
|
{{ Form::open(['route' => ['admin.flights.destroy', $flight->id], 'method' => 'delete']) }}
|
||||||
<a href="{{ route('admin.flights.edit', [$flight->id]) }}" class='btn btn-sm btn-success btn-icon'><i
|
<a href="{{ route('admin.flights.edit', [$flight->id]) }}" class='btn btn-sm btn-success btn-icon'><i
|
||||||
|
Loading…
Reference in New Issue
Block a user