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">
|
||||
<!-- Active Field -->
|
||||
<div class="col-sm-4">
|
||||
<div class="col-sm-3">
|
||||
<div class="checkbox">
|
||||
<label class="checkbox-inline">
|
||||
{{ Form::label('active', 'Active:') }}
|
||||
@ -279,7 +279,17 @@
|
||||
</label>
|
||||
</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">
|
||||
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-info']) }}
|
||||
</div>
|
||||
|
@ -9,6 +9,7 @@
|
||||
<th>Arr Time</th>
|
||||
<th>Notes</th>
|
||||
<th style="text-align: center;">Active</th>
|
||||
<th style="text-align: center;">Visible</th>
|
||||
<th colspan="3" style="text-align: right;">Action</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -37,6 +38,13 @@
|
||||
<span class="label label-default">@lang('common.inactive')</span>
|
||||
@endif
|
||||
</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;">
|
||||
{{ 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
|
||||
|
Loading…
Reference in New Issue
Block a user