Commit 8f784e21 by hannan

completion of nonchargeable form, add description button in overhead form

parent d1a8e31e
...@@ -83,7 +83,7 @@ input[type=number] { ...@@ -83,7 +83,7 @@ input[type=number] {
<?php $total = 0; ?> <?php $total = 0; ?>
<tr> <tr>
<td class="single line"> <td class="single line">
{{$project['td_project_code']}} {{ $project['td_project_code']}}
</td> </td>
<td class="single line"> <td class="single line">
{{$project['td_project_name']}} {{$project['td_project_name']}}
......
...@@ -30,14 +30,14 @@ input[type=number] { ...@@ -30,14 +30,14 @@ input[type=number] {
<i class="dropdown icon"></i> <i class="dropdown icon"></i>
<div class="default text">Task</div> <div class="default text">Task</div>
<div class="menu"> <div class="menu">
@foreach($chargeables as $key => $chargeable) @foreach($nonchargeables as $key => $nonchargeable)
<div class="item" data-value="{{$chargeable->p_project_description}}">{{$chargeable->p_project_description}}</div> <div class="item" data-value="{{ $nonchargeable->id }}">{{$nonchargeable->p_project_description}}</div>
@endforeach @endforeach
</div> </div>
</div> </div>
</div> </div>
<div class="field"> <div class="field">
<label>Non-Chargeable Task (**optional)</label> <label>Non-Chargeable Task</label>
<input type="text" name="nonChargeableProject" placeholder="Add New Task"> <input type="text" name="nonChargeableProject" placeholder="Add New Task">
</div> </div>
<div class="field"> <div class="field">
...@@ -92,7 +92,7 @@ input[type=number] { ...@@ -92,7 +92,7 @@ input[type=number] {
Phase 1 Phase 1
</button> </button>
@endif @endif
<form class="ui form" action="{{ route('timesheet::dashboard.savechargeablehours' )}}" method="POST"> <form class="ui form" action="{{ route('timesheet::dashboard.savenonchargeablehours' )}}" method="POST">
{{csrf_field()}} {{csrf_field()}}
<input type="hidden" name="userId" value="{{$userId}}"> <input type="hidden" name="userId" value="{{$userId}}">
<input type="hidden" name="year" value="{{$year}}"> <input type="hidden" name="year" value="{{$year}}">
......
...@@ -49,7 +49,7 @@ input[type=number] { ...@@ -49,7 +49,7 @@ input[type=number] {
<thead> <thead>
<tr> <tr>
<th>Overhead</th> <th>Overhead</th>
<th colspan="@if($phase == 1) 15 @else {{$daymonth-15}} @endif" class="center aligned">Date</th> <th colspan="@if($phase == 1) 16 @else {{$daymonth-16}} @endif" class="center aligned">Date</th>
<th> <th>
<button type="submit" class="fluid center aligned ui blue compact labeled icon button"> <button type="submit" class="fluid center aligned ui blue compact labeled icon button">
<i class="save icon"></i> <i class="save icon"></i>
...@@ -58,7 +58,7 @@ input[type=number] { ...@@ -58,7 +58,7 @@ input[type=number] {
</th> </th>
</tr> </tr>
<tr> <tr>
<th class="single line">Task</th> <th>Task</th>
@if($phase == 1) @if($phase == 1)
@for($i = 0; $i < 15 ; $i++) @for($i = 0; $i < 15 ; $i++)
...@@ -70,18 +70,16 @@ input[type=number] { ...@@ -70,18 +70,16 @@ input[type=number] {
@endfor @endfor
@endif @endif
<th>Description</th>
<th>Total Hours</th> <th>Total Hours</th>
</tr> </tr>
<tr>
</tr>
</thead> </thead>
<tbody> <tbody>
@foreach($projectlist as $key => $project) @foreach($projectlist as $key => $project)
<?php $total = 0; ?> <?php $total = 0; ?>
<tr> <tr>
<td class="single line"> <td>
{{$project['td_project_name']}} {{$project['td_project_name']}}
</td> </td>
@if($phase == 1) @if($phase == 1)
...@@ -132,6 +130,11 @@ input[type=number] { ...@@ -132,6 +130,11 @@ input[type=number] {
@endfor @endfor
@endif @endif
<td> <td>
<button class="ui center blue button">
<i class="ui center edit white icon"></i>
</button>
</td>
<td>
<input type="text" onkeypress="onlynumber(event)" name="total-{{$project['td_project']}}" id="total-{{$project['td_project']}}" style="padding-right: 4px;padding-left: 4px;" onchange="limiter(this,'{{$project['td_project']}}');" readonly="" value={{$total}}> <input type="text" onkeypress="onlynumber(event)" name="total-{{$project['td_project']}}" id="total-{{$project['td_project']}}" style="padding-right: 4px;padding-left: 4px;" onchange="limiter(this,'{{$project['td_project']}}');" readonly="" value={{$total}}>
</td> </td>
</tr> </tr>
......
...@@ -47,11 +47,9 @@ Route::group( ...@@ -47,11 +47,9 @@ Route::group(
Route::get('timesheet_viewer',['uses' => 'DashboardController@timesheetViewer', 'as' => 'dashboard.timesheetViewer']); Route::get('timesheet_viewer',['uses' => 'DashboardController@timesheetViewer', 'as' => 'dashboard.timesheetViewer']);
Route::post('savechargeablehours',['uses' => 'DashboardController@savechargeablehours', 'as' => 'dashboard.savechargeablehours']); Route::post('savechargeablehours',['uses' => 'DashboardController@savechargeablehours', 'as' => 'dashboard.savechargeablehours']);
Route::post('savenonchargeablehours',['uses' => 'DashboardController@savenonchargeablehours', 'as' => 'dashboard.savenonchargeablehours']);
Route::post('saveoverheadhours',['uses' => 'DashboardController@saveoverheadhours', 'as' => 'dashboard.saveoverheadhours']); Route::post('saveoverheadhours',['uses' => 'DashboardController@saveoverheadhours', 'as' => 'dashboard.saveoverheadhours']);
Route::get('pengurusan',['uses' => 'DashboardController@pengurusan', 'as' => 'dashboard.pengurusan']); Route::get('pengurusan',['uses' => 'DashboardController@pengurusan', 'as' => 'dashboard.pengurusan']);
Route::get('perkhidmatan',['uses' => 'DashboardController@perkhidmatan', 'as' => 'dashboard.perkhidmatan']); Route::get('perkhidmatan',['uses' => 'DashboardController@perkhidmatan', 'as' => 'dashboard.perkhidmatan']);
......
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