Format all blade templates to 2 spaces #530 (#531)

This commit is contained in:
Nabeel S
2020-02-01 13:05:56 -05:00
committed by GitHub
parent 06b47d97e0
commit 59d09c0cec
254 changed files with 7123 additions and 7006 deletions

View File

@@ -1,43 +1,44 @@
@extends('admin.app')
@section('content')
<section class="content-header">
<section class="content-header">
<h1 class="pull-left">{{ $aircraft->name }}</h1>
<h1 class="pull-right">
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px" href="{{ route('admin.aircraft.edit', $aircraft->id) }}">Edit</a>
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px"
href="{{ route('admin.aircraft.edit', $aircraft->id) }}">Edit</a>
</h1>
</section>
<section class="content">
</section>
<section class="content">
<div class="clearfix"></div>
<div class="row">
@include('admin.aircraft.show_fields')
@include('admin.aircraft.show_fields')
</div>
</section>
</section>
@endsection
@section('scripts')
<script>
$(document).ready(function() {
$(".ac-fare-dropdown").select2();
$('#aircraft_fares a').editable({
<script>
$(document).ready(function () {
$(".ac-fare-dropdown").select2();
$('#aircraft_fares a').editable({
type: 'text',
mode: 'inline',
emptytext: 'default',
url: '/admin/aircraft/{{ $aircraft->id }}/fares',
title: 'Enter override value',
ajaxOptions: { 'type': 'put'},
params: function(params) {
ajaxOptions: {'type': 'put'},
params: function (params) {
return {
fare_id: params.pk,
name: params.name,
value: params.value
fare_id: params.pk,
name: params.name,
value: params.value
}
}
});
});
$(document).on('submit', 'form.rm_fare', function(event) {
$(document).on('submit', 'form.rm_fare', function (event) {
event.preventDefault();
$.pjax.submit(event, '#aircraft_fares_wrapper', {push: false});
});
});
});
</script>
</script>
@endsection