Admin blade improvements (#1321)
* Update search.blade.php Used select2 for airports, fixed grid layout * Update actions.blade.php Fixed button placing * Update pirep_card.blade.php Added user id before the name, made name optional so if page hits an hard deleted user's pirep it will not fail. Also improved the flight level check.
This commit is contained in:
@@ -3,21 +3,31 @@
|
||||
<div class="col-sm-12">
|
||||
<div class="form-group">
|
||||
{{ Form::open(['route' => 'admin.flights.index', 'method' => 'GET', 'class'=>'form-inline pull-right']) }}
|
||||
|
||||
{{ Form::label('airlines', 'Airline:') }}
|
||||
{{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}
|
||||
{{ Form::label('flight_number', 'Flight Number:') }}
|
||||
{{ Form::text('flight_number', null, ['class' => 'form-control']) }}
|
||||
|
||||
{{ Form::label('dpt_airport_id', 'Departure:') }}
|
||||
{{ Form::select('dpt_airport_id', $airports, null , ['class' => 'form-control']) }}
|
||||
|
||||
{{ Form::label('arr_airport_id', 'Arrival:') }}
|
||||
{{ Form::select('arr_airport_id', $airports, null , ['class' => 'form-control']) }}
|
||||
|
||||
{{ Form::submit('find', ['class' => 'btn btn-primary']) }}
|
||||
|
||||
<a href="{{ route('admin.flights.index') }}">clear</a>
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-2">
|
||||
{{ Form::label('airlines', 'Airline:') }}
|
||||
{{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}
|
||||
</div>
|
||||
<div class="form-group input-group-sm col-sm-2">
|
||||
{{ Form::label('flight_number', 'Flight Number:') }}
|
||||
{{ Form::text('flight_number', null, ['class' => 'form-control']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
{{ Form::label('dpt_airport_id', 'Departure:') }}
|
||||
{{ Form::select('dpt_airport_id', $airports, null , ['class' => 'form-control select2']) }}
|
||||
</div>
|
||||
<div class="form-group col-sm-4">
|
||||
{{ Form::label('arr_airport_id', 'Arrival:') }}
|
||||
{{ Form::select('arr_airport_id', $airports, null , ['class' => 'form-control select2']) }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row text-right">
|
||||
<div class="col-sm-12">
|
||||
{{ Form::submit('find', ['class' => 'btn btn-primary']) }}
|
||||
|
||||
<a href="{{ route('admin.flights.index') }}">clear</a>
|
||||
</div>
|
||||
</div>
|
||||
{{ Form::close() }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user