Commit d03d7d80 by hannan

reduce DOMContentLoaded time when click save in overhead page

parent 5d27cac0
......@@ -2,10 +2,10 @@
@section('content')
<div class="ui segment">
<a class="ui blue left ribbon label">Welcome Back</a>
<!-- <a class="ui blue left ribbon label">Welcome Back</a>
<br>
<br>
<div class="column sixteen wide">
--><!-- <div class="column sixteen wide">
<div class="ui cards four doubling">
<a href="/home" class="ui card">
<div class="content">
......@@ -33,8 +33,8 @@
</div>
</a>
</div>
</div>
<br>
</div> -->
<!-- <br> -->
<a class="ui teal left ribbon label">Timesheet Status</a>
<br>
<table class="ui unstackable celled table">
......@@ -83,7 +83,7 @@
@endforeach
</tbody>
</table>
<br>
<!-- <br> -->
</div>
@endsection
......@@ -5,7 +5,8 @@
<a class="ui blue left ribbon label">Selamat Kembali</a>
<br>
<br>
<div class="column sixteen wide">
<!-- <div class="column sixteen wide">
<div class="ui cards four doubling">
<a href="/home" class="ui card">
<div class="content">
......@@ -33,7 +34,8 @@
</div>
</a>
</div>
</div>
</div> -->
<br>
<a class="ui teal left ribbon label">Timesheet Status</a>
<br>
......
......@@ -22,10 +22,10 @@ input[type=number] {
<br>
<br>
<button class="center aligned ui violet compact right labeled icon button" onclick="window.location.href='{{ route('timesheet::form.nonChargeableForm', ['phase' => $phase, 'month' => $month, 'year' => $year]) }}';">
<!-- <button class="center aligned ui violet compact right labeled icon button" onclick="window.location.href='{ route('timesheet::form.nonChargeableForm', ['phase' => $phase, 'month' => $month, 'year' => $year]) }';">
<i class="angle double right icon"></i>
Non-Chargeable Form
</button>
</button> -->
<button class="center aligned ui purple compact right labeled icon button" onclick="window.location.href='{{ route('timesheet::form.overheadForm', ['phase' => $phase, 'month' => $month, 'year' => $year]) }}';">
<i class="angle double right icon"></i>
Overhead Form
......
......@@ -733,6 +733,7 @@ class FormController extends Controller
if($checkoverhead)
{
$hour = Ts_detail::where('fk_tm_id',$checkoverhead->id)
->where('td_project_type', 3)
->get();
$fk_tm_id = $checkoverhead->id;
// dd($hour);
......
......@@ -6,7 +6,7 @@
@include('ui::menu.topbar')
@include('ui::menu.sidebar')
<div class="content" style="background-image: url('/img/bg.png')">
<div class="content" style="background-image: url('{{ asset('assets/images/bg.png') }}')">
<div class="content__inner">
<div class="ui container-fluid content__body p-1" >
@yield('content')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment