Cleanup info callouts into components
This commit is contained in:
parent
67f6dfc2f4
commit
10b0798a30
10
resources/views/admin/components/info.blade.php
Normal file
10
resources/views/admin/components/info.blade.php
Normal file
@ -0,0 +1,10 @@
|
||||
<div>
|
||||
<p style="float:left; margin-right: 10px; margin-left: 2px;">
|
||||
<span style="font-size: 1.0em;">
|
||||
<i class="fas fa-info-circle" style="color: #067ec1"></i>
|
||||
</span>
|
||||
</p>
|
||||
<p class="category">
|
||||
{{ $slot }}
|
||||
</p>
|
||||
</div>
|
@ -11,59 +11,51 @@
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('code', 'Code:') !!} <span class="required">*</span>
|
||||
<div class="callout callout-info">
|
||||
<i class="icon fa fa-info"> </i>
|
||||
@component('admin.components.info')
|
||||
How this fare class will show up on a ticket
|
||||
</div>
|
||||
@endcomponent
|
||||
{!! Form::text('code', null, ['class' => 'form-control']) !!}
|
||||
<p class="text-danger">{{ $errors->first('code') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('name', 'Name:') !!} <span class="required">*</span>
|
||||
<div class="callout callout-info">
|
||||
<i class="icon fa fa-info"> </i>
|
||||
@component('admin.components.info')
|
||||
The fare class name, E.g, "Economy" or "First"
|
||||
</div>
|
||||
@endcomponent
|
||||
{!! Form::text('name', null, ['class' => 'form-control']) !!}
|
||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('price', 'Price:') !!}
|
||||
<div class="callout callout-info">
|
||||
<i class="icon fa fa-info"> </i>
|
||||
@component('admin.components.info')
|
||||
This is the price of a ticket for a passenger
|
||||
</div>
|
||||
@endcomponent
|
||||
{!! Form::text('price', null, ['class' => 'form-control', 'placeholder' => 0]) !!}
|
||||
<p class="text-danger">{{ $errors->first('price') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('cost', 'Cost:') !!}
|
||||
<div class="callout callout-info">
|
||||
<i class="icon fa fa-info"> </i>
|
||||
@component('admin.components.info')
|
||||
The operating cost
|
||||
</div>
|
||||
@endcomponent
|
||||
{!! Form::text('cost', null, ['class' => 'form-control', 'placeholder' => 0]) !!}
|
||||
<p class="text-danger">{{ $errors->first('cost') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('capacity', 'Capacity:') !!}
|
||||
<div class="callout callout-info">
|
||||
<i class="icon fa fa-info"> </i>
|
||||
@component('admin.components.info')
|
||||
The number of seats available in this class.
|
||||
</div>
|
||||
@endcomponent
|
||||
{!! Form::text('capacity', null, ['class' => 'form-control', 'placeholder' => 0]) !!}
|
||||
<p class="text-danger">{{ $errors->first('capacity') }}</p>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('notes', 'Notes:') !!}
|
||||
<div class="callout callout-info">
|
||||
|
||||
</div>
|
||||
{!! Form::text('notes', null, ['class' => 'form-control']) !!}
|
||||
<p class="text-danger">{{ $errors->first('notes') }}</p>
|
||||
</div>
|
||||
|
@ -11,7 +11,7 @@
|
||||
<tbody>
|
||||
@foreach($fares as $fare)
|
||||
<tr>
|
||||
<td>{!! $fare->code !!}</td>
|
||||
<td><a href="{!! route('admin.fares.edit', [$fare->id]) !!}">{!! $fare->code !!}</a></td>
|
||||
<td>{!! $fare->name !!}</td>
|
||||
<td>{!! $fare->price !!}</td>
|
||||
<td>{!! $fare->cost !!}</td>
|
||||
|
@ -1,15 +1,14 @@
|
||||
<div id="flight_fares_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
|
||||
<div class="header">
|
||||
<h3>fares</h3>
|
||||
<p class="category">
|
||||
<i class="icon fa fa-info"> </i>
|
||||
@component('admin.components.info')
|
||||
Fares assigned to the current flight. These can be overridden, otherwise,
|
||||
the values used come from the subfleet of the aircraft that the flight is
|
||||
filed with. Only assign the fares you want to override. They can be set as
|
||||
a monetary amount, or a percentage.
|
||||
<a href="http://docs.phpvms.net/concepts/finances"
|
||||
target="_blank">Read documentation about finances</a>.
|
||||
</p>
|
||||
@endcomponent
|
||||
</div>
|
||||
|
||||
<table id="flight_fares"
|
||||
|
@ -1,7 +1,8 @@
|
||||
<div id="subfleet_flight_wrapper">
|
||||
<h3>assigned subfleets</h3>
|
||||
<br />
|
||||
|
||||
@component('admin.components.info')
|
||||
The subfleets that are assigned to this flight.
|
||||
@endcomponent
|
||||
<table class="table table-responsive" id="aircrafts-table">
|
||||
<thead>
|
||||
<th>Type</th>
|
||||
|
@ -1,10 +1,9 @@
|
||||
<div class="content table-responsive table-full-width">
|
||||
|
||||
<div class="header">
|
||||
<p class="category">
|
||||
<i class="icon fa fa-info"> </i>
|
||||
@component('admin.components.info')
|
||||
PIREP fields are only shown for manual PIREPs.
|
||||
</p>
|
||||
@endcomponent
|
||||
</div>
|
||||
|
||||
<table class="table table-hover table-responsive" id="pirepFields-table">
|
||||
|
@ -13,6 +13,9 @@
|
||||
<div class="content">
|
||||
<div class="header">
|
||||
<h3>subfleets</h3>
|
||||
@component('admin.components.info')
|
||||
These are the subfleets this rank is allowed to use
|
||||
@endcomponent
|
||||
</div>
|
||||
<div class="row">
|
||||
@include('admin.ranks.subfleets')
|
||||
|
@ -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"> </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>--}}
|
||||
|
@ -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"> </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">
|
||||
|
@ -1,34 +1,23 @@
|
||||
@extends('admin.app')
|
||||
|
||||
@section('title', "$subfleet->name")
|
||||
@section('content')
|
||||
<section class="content-header">
|
||||
<h1>{!! $subfleet->name !!}</h1>
|
||||
</section>
|
||||
<div class="card border-blue-bottom">
|
||||
<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>
|
||||
<div class="box box-primary">
|
||||
<div class="box-body">
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
|
||||
<div class="card border-blue-bottom">
|
||||
<div class="content">
|
||||
<h3>fares</h3>
|
||||
<div class="box-body">
|
||||
<div class="callout callout-info">
|
||||
<i class="icon fa fa-info"> </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.
|
||||
</div>
|
||||
@endcomponent
|
||||
|
||||
@include('admin.subfleets.fares')
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@include('admin.subfleets.script')
|
||||
|
Loading…
Reference in New Issue
Block a user