Commit d03d7d80 by hannan

reduce DOMContentLoaded time when click save in overhead page

parent 5d27cac0
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
@section('content') @section('content')
<div class="ui segment"> <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>
<br> <br>
<div class="column sixteen wide"> --><!-- <div class="column sixteen wide">
<div class="ui cards four doubling"> <div class="ui cards four doubling">
<a href="/home" class="ui card"> <a href="/home" class="ui card">
<div class="content"> <div class="content">
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
</div> </div>
</a> </a>
</div> </div>
</div> </div> -->
<br> <!-- <br> -->
<a class="ui teal left ribbon label">Timesheet Status</a> <a class="ui teal left ribbon label">Timesheet Status</a>
<br> <br>
<table class="ui unstackable celled table"> <table class="ui unstackable celled table">
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
@endforeach @endforeach
</tbody> </tbody>
</table> </table>
<br> <!-- <br> -->
</div> </div>
@endsection @endsection
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
<a class="ui blue left ribbon label">Selamat Kembali</a> <a class="ui blue left ribbon label">Selamat Kembali</a>
<br> <br>
<br> <br>
<div class="column sixteen wide">
<!-- <div class="column sixteen wide">
<div class="ui cards four doubling"> <div class="ui cards four doubling">
<a href="/home" class="ui card"> <a href="/home" class="ui card">
<div class="content"> <div class="content">
...@@ -33,7 +34,8 @@ ...@@ -33,7 +34,8 @@
</div> </div>
</a> </a>
</div> </div>
</div> </div> -->
<br> <br>
<a class="ui teal left ribbon label">Timesheet Status</a> <a class="ui teal left ribbon label">Timesheet Status</a>
<br> <br>
......
...@@ -22,10 +22,10 @@ input[type=number] { ...@@ -22,10 +22,10 @@ input[type=number] {
<br> <br>
<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> <i class="angle double right icon"></i>
Non-Chargeable Form 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]) }}';"> <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> <i class="angle double right icon"></i>
Overhead Form Overhead Form
......
...@@ -733,6 +733,7 @@ class FormController extends Controller ...@@ -733,6 +733,7 @@ class FormController extends Controller
if($checkoverhead) if($checkoverhead)
{ {
$hour = Ts_detail::where('fk_tm_id',$checkoverhead->id) $hour = Ts_detail::where('fk_tm_id',$checkoverhead->id)
->where('td_project_type', 3)
->get(); ->get();
$fk_tm_id = $checkoverhead->id; $fk_tm_id = $checkoverhead->id;
// dd($hour); // dd($hour);
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
@include('ui::menu.topbar') @include('ui::menu.topbar')
@include('ui::menu.sidebar') @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="content__inner">
<div class="ui container-fluid content__body p-1" > <div class="ui container-fluid content__body p-1" >
@yield('content') @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