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,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