More styling, banner when nothing is added

This commit is contained in:
Nabeel Shahzad
2018-04-09 20:04:21 -05:00
parent e1c8174b3f
commit e109e00aa8
9 changed files with 145 additions and 94 deletions

View File

@@ -5,10 +5,13 @@
These expenses are only applied to this aircraft. These expenses are only applied to this aircraft.
@endcomponent @endcomponent
</div> </div>
<br/>
<table class="table table-responsive" id="expenses">
@if(count($aircraft->expenses)) @if(count($aircraft->expenses) === 0)
@include('admin.common.none_added', ['type' => 'expenses'])
@endif
<table class="table table-responsive" id="expenses">
@if(count($aircraft->expenses) > 0)
<thead> <thead>
<th>Name</th> <th>Name</th>
<th>Cost&nbsp;<span class="small">{{ currency(config('phpvms.currency')) }}</span></th> <th>Cost&nbsp;<span class="small">{{ currency(config('phpvms.currency')) }}</span></th>

View File

@@ -1,4 +1,10 @@
<div class="row"> <div class="row">
<div class="col-sm-12">
<div class="form-container">
<h6><i class="fas fa-clock"></i>
&nbsp;Subfleet and Status
</h6>
<div class="form-container-body row">
<div class="form-group col-sm-6"> <div class="form-group col-sm-6">
{{ Form::label('subfleet_id', 'Subfleet:') }} {{ Form::label('subfleet_id', 'Subfleet:') }}
{{ Form::select('subfleet_id', $subfleets, $subfleet_id ?? null, [ {{ Form::select('subfleet_id', $subfleets, $subfleet_id ?? null, [
@@ -10,21 +16,37 @@
</div> </div>
<div class="form-group col-sm-6"> <div class="form-group col-sm-6">
{{ Form::label('name', 'Name:') }}&nbsp;<span class="required">*</span> {{ Form::label('status', 'Status:') }}
{{ Form::text('name', null, ['class' => 'form-control']) }} {{ Form::select('status', $statuses, null, ['class' => 'form-control select2', 'placeholder' => 'Select Status']) }}
<p class="text-danger">{{ $errors->first('name') }}</p> <p class="text-danger">{{ $errors->first('subfleet_id') }}</p>
</div>
</div>
</div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
@component('admin.components.info') <div class="form-container">
<h6>
<span style="float:right">
View list of View list of
<a href="https://en.wikipedia.org/wiki/List_of_ICAO_aircraft_type_designators" <a href="https://en.wikipedia.org/wiki/List_of_ICAO_aircraft_type_designators"
target="_blank"> target="_blank">
IATA and ICAO Type Designators IATA and ICAO Type Designators
</a> </a>
@endcomponent </span>
<i class="fas fa-plane"></i>
&nbsp;Aircraft Information
</h6>
<div class="form-container-body">
<div class="row">
<div class="form-group col-sm-12">
{{ Form::label('name', 'Name:') }}&nbsp;<span class="required">*</span>
{{ Form::text('name', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('name') }}</p>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
@@ -41,25 +63,16 @@
</div> </div>
<div class="form-group col-sm-4"> <div class="form-group col-sm-4">
{{ Form::label('zfw', 'Zero Fuel Weight:') }}
{{ Form::text('zfw', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('zfw') }}</p>
</div>
</div>
<div class="row">
<!-- Registration Field -->
<div class="form-group col-sm-6">
{{ Form::label('registration', 'Registration:') }} {{ Form::label('registration', 'Registration:') }}
{{--<p class="text-success small">Enter the registration with the country prefix</p>--}}
{{ Form::text('registration', null, ['class' => 'form-control']) }} {{ Form::text('registration', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('registration') }}</p> <p class="text-danger">{{ $errors->first('registration') }}</p>
{{--{{ Form::label('zfw', 'Zero Fuel Weight:') }}
{{ Form::text('zfw', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('zfw') }}</p>--}}
</div>
</div>
</div>
</div> </div>
<!-- Active Field -->
<div class="form-group col-sm-6">
{{ Form::label('status', 'Status:') }}
{{ Form::select('status', $statuses, null, ['class' => 'form-control select2', 'placeholder' => 'Select Status']) }}
<p class="text-danger">{{ $errors->first('subfleet_id') }}</p>
</div> </div>
</div> </div>
<div class="row"> <div class="row">

View File

@@ -10,6 +10,10 @@ Pass in:
<h3>files</h3> <h3>files</h3>
</div> </div>
@if(count($model->files) === 0)
@include('admin.common.none_added', ['type' => 'files'])
@endif
{{-- Show all the files here --}} {{-- Show all the files here --}}
<table class="table table-hover table-responsive"> <table class="table table-hover table-responsive">
@if(count($model->files)) @if(count($model->files))

View File

@@ -0,0 +1,5 @@
<div class="jumbotron">
<p class="text-center">
No {{ $type }} have been added
</p>
</div>

View File

@@ -4,7 +4,7 @@
<i class="fas fa-info-circle" style="color: #067ec1"></i> <i class="fas fa-info-circle" style="color: #067ec1"></i>
</span> </span>
</p> </p>
<p class="category"> <p class="category" style="text-transform:none;">
{{ $slot }} {{ $slot }}
</p> </p>
</div> </div>

View File

@@ -13,6 +13,10 @@
<p class="text-danger">{{ $errors->first('value') }}</p> <p class="text-danger">{{ $errors->first('value') }}</p>
</div> </div>
@if(count($flight->fares) === 0)
@include('admin.common.none_added', ['type' => 'fares'])
@endif
<table id="flight_fares" <table id="flight_fares"
class="table table-hover" class="table table-hover"
role="grid" aria-describedby="aircraft_fares_info"> role="grid" aria-describedby="aircraft_fares_info">

View File

@@ -1,8 +1,15 @@
<div id="subfleet_flight_wrapper"> <div id="subfleet_flight_wrapper">
<div class="header">
<h3>subfleets</h3> <h3>subfleets</h3>
@component('admin.components.info') @component('admin.components.info')
The subfleets that are assigned to this flight. The subfleets that are assigned to this flight.
@endcomponent @endcomponent
</div>
@if(count($flight->subfleets) === 0)
@include('admin.common.none_added', ['type' => 'expenses'])
@endif
<table class="table table-responsive" id="aircrafts-table"> <table class="table table-responsive" id="aircrafts-table">
@if(count($flight->subfleets)) @if(count($flight->subfleets))
<thead> <thead>

View File

@@ -41,6 +41,13 @@
</div> </div>
</div> </div>
<div class="row">
<div class="col-12">
<div class="form-container">
<h6><i class="fas fa-check-square"></i>
&nbsp;Options
</h6>
<div class="form-container-body">
<div class="row"> <div class="row">
<!-- Auto Approve Acars Field --> <!-- Auto Approve Acars Field -->
<div class="form-group col-sm-4 text-center"> <div class="form-group col-sm-4 text-center">
@@ -75,6 +82,10 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
</div>
</div>
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">

View File

@@ -1,4 +1,8 @@
<div id="rank_subfleet_wrapper" class="dataTables_wrapper form-inline dt-bootstrap col-lg-12"> <div id="rank_subfleet_wrapper" class="dataTables_wrapper form-inline dt-bootstrap col-lg-12">
@if(count($rank->subfleets) === 0)
@include('admin.common.none_added', ['type' => 'subfleets'])
@endif
<table class="table table-responsive" id="subfleets-table"> <table class="table table-responsive" id="subfleets-table">
@if(count($rank->subfleets)) @if(count($rank->subfleets))
<thead> <thead>