Set hours to read-only once they've changed away from PENDING #167

This commit is contained in:
Nabeel Shahzad
2018-02-06 12:58:48 -06:00
parent ac0058e951
commit 531c7ddba3
9 changed files with 94 additions and 59 deletions

View File

@@ -1,10 +1,27 @@
@extends('admin.app')
@section('title', 'Edit ' . $pirep->ident )
@section('content')
<div class="content">
<div class="card border-blue-bottom">
<div class="content">
{{-- pulled out to here otherwise the form::close() within a form undo it --}}
<div class="row">
<div class="col-md-8">
<h5 style="margin-top: 0px;">
Filed By: <a href="{!! route('admin.users.edit', [$pirep->user_id]) !!}" target="_blank">
{!! $pirep->user->pilot_id !!} {!! $pirep->user->name !!}
</a>
</h5>
</div>
<div class="col-md-4">
<div class="pull-right">
@include('admin.pireps.actions', ['pirep' => $pirep, 'on_edit_page' => true])
</div>
</div>
</div>
{!! Form::model($pirep, ['route' => ['admin.pireps.update', $pirep->id], 'method' => 'patch']) !!}
@include('admin.pireps.fields')
{!! Form::close() !!}
@@ -26,4 +43,5 @@
</div>
</div>
@endsection
@include('admin.pireps.scripts')