cleanup some templates
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
<table id="flight_fares"
|
||||
class="table table-hover"
|
||||
role="grid" aria-describedby="aircraft_fares_info">
|
||||
@if(count($flight->fares))
|
||||
<thead>
|
||||
<tr role="row">
|
||||
<th>Name</th>
|
||||
@@ -26,6 +27,7 @@
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@endif
|
||||
<tbody>
|
||||
@foreach($flight->fares as $atf)
|
||||
<tr>
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-2">
|
||||
{!! Form::label('distance', 'Distance:') !!} <span class="small">in miles</span>
|
||||
{!! Form::label('distance', 'Distance:') !!} <span class="small">in nautical miles</span>
|
||||
{!! Form::text('distance', null, ['class' => 'form-control']) !!}
|
||||
<p class="text-danger">{{ $errors->first('distance') }}</p>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
<div id="flight_fields_wrapper">
|
||||
<h3>custom fields</h3><br />
|
||||
<table class="table table-responsive" id="flight-fields-table">
|
||||
@if(count($flight->fields))
|
||||
<thead>
|
||||
<th>Name</th>
|
||||
<th>Value</th>
|
||||
<th style="text-align: center;">Value</th>
|
||||
<th style="text-align: center;">Actions</th>
|
||||
</thead>
|
||||
@endif
|
||||
<tbody>
|
||||
@foreach($flight->fields as $field)
|
||||
<tr>
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
<div id="subfleet_flight_wrapper">
|
||||
<h3>assigned subfleets</h3>
|
||||
<h3>subfleets</h3>
|
||||
@component('admin.components.info')
|
||||
The subfleets that are assigned to this flight.
|
||||
@endcomponent
|
||||
<table class="table table-responsive" id="aircrafts-table">
|
||||
@if(count($flight->subfleets))
|
||||
<thead>
|
||||
<th>Type</th>
|
||||
<th>Name</th>
|
||||
<th style="text-align: center;">Actions</th>
|
||||
</thead>
|
||||
@endif
|
||||
<tbody>
|
||||
@foreach($flight->subfleets as $sf)
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user