Add a reference to the skin name in the templates to make it easier to create and modify skins

This commit is contained in:
Nabeel Shahzad
2018-02-03 18:18:09 -06:00
parent 25b86274cf
commit b4908f482e
27 changed files with 117 additions and 105 deletions
@@ -1,5 +1,6 @@
@extends('layouts.default.app')
@extends("layouts.${SKIN_NAME}.app")
@section('title', 'file pirep')
@section('content')
<div class="row">
<div class="col-md-12">
@@ -7,12 +8,13 @@
@include('flash::message')
{!! Form::open(['route' => 'frontend.pireps.store']) !!}
@include('layouts.default.pireps.fields')
@include("layouts.${SKIN_NAME}.pireps.fields")
{!! Form::close() !!}
</div>
</div>
@endsection
@section('scripts')
<script>
$(document).ready(function() {
@@ -1,4 +1,3 @@
<div class="row">
<div class="col-12">
<table class="table table-full-width">
@@ -1,5 +1,6 @@
@extends('layouts.default.app')
@extends("layouts.${SKIN_NAME}.app")
@section('title', 'pireps')
@section('content')
<div class="row">
<div class="col-md-12">
@@ -10,12 +11,12 @@
</div>
<h2 class="description">pilot reports</h2>
@include('flash::message')
@include('layouts.default.pireps.table')
@include("layouts.${SKIN_NAME}.pireps.table")
</div>
</div>
<div class="row">
<div class="col-12 text-center">
{{ $pireps->links('layouts.default.pagination.default') }}
{{ $pireps->links("layouts.${SKIN_NAME}.pagination.default") }}
</div>
</div>
@endsection
@@ -1,6 +1,6 @@
@extends('layouts.default.app')
@extends("layouts.${SKIN_NAME}.app")
@section('title', 'PIREP '.$pirep->ident)
@section('content')
<div class="row">
<div class="col-md-12">
@@ -72,27 +72,27 @@
</div>
@if(count($pirep->fields) > 0)
<div class="row">
<div class="col-md-12">
<h3 class="description">fields</h3>
<table class="table">
<thead>
<th>Name</th>
<th>Value</th>
</thead>
<tbody>
@foreach($pirep->fields as $field)
<tr>
<td>{!! $field->name !!}</td>
<td>{!! $field->value !!}</td>
</tr>
@endforeach
</tbody>
</table>
<div class="row">
<div class="col-md-12">
<h3 class="description">fields</h3>
<table class="table">
<thead>
<th>Name</th>
<th>Value</th>
</thead>
<tbody>
@foreach($pirep->fields as $field)
<tr>
<td>{!! $field->name !!}</td>
<td>{!! $field->value !!}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endif
@include('layouts.default.pireps.map')
@include("layouts.${SKIN_NAME}.pireps.map")
@endsection
@@ -1 +1,2 @@
@each('layouts.default.pireps.pirep_card', $pireps, 'pirep')
@each("layouts.${SKIN_NAME}.pireps.pirep_card", $pireps, 'pirep')