Skip to content

Commit

Permalink
Training backlog alerts for transfer requests
Browse files Browse the repository at this point in the history
  • Loading branch information
BMWENING committed Oct 2, 2024
1 parent 40b261f commit fd26af0
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 4 deletions.
33 changes: 31 additions & 2 deletions resources/views/my/facilityselect.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
@extends('layout')
@section('title', 'Select Facility')
@section('content')
<div class="container" id="ztlalert" hidden>
<div class="alert alert-danger">
<strong><i class="fas fa-exclamation-triangle"></i> WARNING</strong> ZTL (Atlanta ARTCC) currently has a substantial training backlog</br>
By transferring here you acknowledge there may be a delay in or extended periods of time without training availability
</div>
</div>
<div class="container" id="znyalert" hidden>
<div class="alert alert-danger">
<strong><i class="fas fa-exclamation-triangle"></i> WARNING</strong> ZNY (New York ARTCC) currently has a substantial training backlog</br>
By transferring here you acknowledge there may be a delay in or extended periods of time without training availability
</div>
</div>

<div class="container">
<div class="panel panel-default">
<div class="panel-heading">
Expand All @@ -16,7 +29,7 @@
<div class="form-group">
<label class="col-sm-2 control-label">Facility</label>
<div class="col-sm-10">
<select class="form-control" name="facility">
<select class="form-control" name="facility" onchange="checkAlerts(this);">
<option value="0">Select a Facility</option>
@foreach(\App\Models\Facility::where('active', 1)->orderby('name', 'ASC')->get() as $f)
<option value="{{$f->id}}">{{$f->name}}</option>
Expand All @@ -33,4 +46,20 @@
</div>
</div>
</div>
@stop
@stop
@push('scripts')
<script type="text/javascript">
function checkAlerts(facility) {
if (facility.value === "ZTL") {
document.getElementById('ztlalert').hidden = false;
}else{
document.getElementById('ztlalert').hidden = true;
}
if (facility.value === "ZNY") {
document.getElementById('znyalert').hidden = false;
}else{
document.getElementById('znyalert').hidden = true;
}
}
</script>
@endpush
33 changes: 31 additions & 2 deletions resources/views/my/transfer.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
@extends('layout')
@section('title', 'Facility Transfer')
@section('content')
<div class="container" id="ztlalert" hidden>
<div class="alert alert-danger">
<strong><i class="fas fa-exclamation-triangle"></i> WARNING</strong> ZTL (Atlanta ARTCC) currently has a substantial training backlog</br>
By transferring here you acknowledge there may be a delay in or extended periods of time without training availability
</div>
</div>
<div class="container" id="znyalert" hidden>
<div class="alert alert-danger">
<strong><i class="fas fa-exclamation-triangle"></i> WARNING</strong> ZNY (New York ARTCC) currently has a substantial training backlog</br>
By transferring here you acknowledge there may be a delay in or extended periods of time without training availability
</div>
</div>

<div class="container">
<div class="panel panel-default">
<div class="panel-heading">
Expand All @@ -26,7 +39,7 @@
<div class="form-group">
<label class="col-sm-2 control-label">New Facility</label>
<div class="col-sm-10">
<select class="form-control" name="facility">
<select class="form-control" name="facility" onchange="checkAlerts(this);">
<option value="0">Select a Facility</option>
@foreach(\App\Models\Facility::where('active', 1)->orderby('name', 'ASC')->get() as $f)
<option value="{{$f->id}}">{{$f->name}}</option>
Expand All @@ -47,4 +60,20 @@
</div>
</div>
</div>
@stop
@stop
@push('scripts')
<script type="text/javascript">
function checkAlerts(facility) {
if (facility.value === "ZTL") {
document.getElementById('ztlalert').hidden = false;
}else{
document.getElementById('ztlalert').hidden = true;
}
if (facility.value === "ZNY") {
document.getElementById('znyalert').hidden = false;
}else{
document.getElementById('znyalert').hidden = true;
}
}
</script>
@endpush

0 comments on commit fd26af0

Please sign in to comment.