Cleanup info callouts into components

This commit is contained in:
Nabeel Shahzad
2018-02-22 14:21:00 -06:00
parent 67f6dfc2f4
commit 10b0798a30
10 changed files with 51 additions and 64 deletions

View File

@@ -1,16 +1,13 @@
{{--<div class="row"> <div class="col-12">--}}
<div id="aircraft_fares_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
<div class="header">
<h3>fares</h3>
<p class="category">
<i class="icon fa fa-info">&nbsp;&nbsp;</i>
@component('admin.components.info')
Fares assigned to the current subfleet. These can be overridden,
otherwise, the value used is the default, which comes from the fare.
</p>
@endcomponent
</div>
<br />
<table id="aircraft_fares"
class="table table-hover dataTable">
<table id="aircraft_fares" class="table table-hover">
<thead>
<tr>
<th>name</th>
@@ -64,7 +61,6 @@
{!! Form::select('fare_id', $avail_fares, null, [
'placeholder' => 'Select Fare',
'class' => 'ac-fare-dropdown form-control input-lg select2',
])
!!}
{!! Form::button('<i class="glyphicon glyphicon-plus"></i> add',
@@ -75,4 +71,3 @@
</div>
</div>
</div>
{{--</div></div>--}}

View File

@@ -1,10 +1,9 @@
<div id="subfleet_ranks_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
<div class="header">
<h3>ranks</h3>
<p class="category">
<i class="icon fa fa-info">&nbsp;&nbsp;</i>
@component('admin.components.info')
These ranks are allowed to fly aircraft in this subfleet
</p>
@endcomponent
</div>
<br />
<table id="subfleet_ranks" class="table table-hover dataTable">

View File

@@ -1,33 +1,22 @@
@extends('admin.app')
@section('title', "$subfleet->name")
@section('content')
<section class="content-header">
<h1>{!! $subfleet->name !!}</h1>
</section>
<div class="content">
<div class="box box-primary">
<div class="box-body">
<div class="row" style="padding-left: 20px">
@include('admin.subfleets.show_fields')
</div>
</div>
<div class="card border-blue-bottom">
<div class="content">
@include('admin.subfleets.show_fields')
</div>
<div class="box box-primary">
<div class="box-body">
<div class="row">
<div class="col-xs-12">
<h3>fares</h3>
<div class="box-body">
<div class="callout callout-info">
<i class="icon fa fa-info">&nbsp;&nbsp;</i>
Fares assigned to the current subfleet. These can be overridden,
otherwise, the value used is the default, which comes from the fare.
</div>
@include('admin.subfleets.fares')
</div>
</div>
</div>
</div>
</div>
<div class="card border-blue-bottom">
<div class="content">
<h3>fares</h3>
@component('admin.components.info')
Fares assigned to the current subfleet. These can be overridden,
otherwise, the value used is the default, which comes from the fare.
@endcomponent
@include('admin.subfleets.fares')
</div>
</div>
@endsection