Commit 8f784e21 by hannan

completion of nonchargeable form, add description button in overhead form

parent d1a8e31e
......@@ -83,7 +83,7 @@ input[type=number] {
<?php $total = 0; ?>
<tr>
<td class="single line">
{{$project['td_project_code']}}
{{ $project['td_project_code']}}
</td>
<td class="single line">
{{$project['td_project_name']}}
......
......@@ -30,14 +30,14 @@ input[type=number] {
<i class="dropdown icon"></i>
<div class="default text">Task</div>
<div class="menu">
@foreach($chargeables as $key => $chargeable)
<div class="item" data-value="{{$chargeable->p_project_description}}">{{$chargeable->p_project_description}}</div>
@foreach($nonchargeables as $key => $nonchargeable)
<div class="item" data-value="{{ $nonchargeable->id }}">{{$nonchargeable->p_project_description}}</div>
@endforeach
</div>
</div>
</div>
<div class="field">
<label>Non-Chargeable Task (**optional)</label>
<label>Non-Chargeable Task</label>
<input type="text" name="nonChargeableProject" placeholder="Add New Task">
</div>
<div class="field">
......@@ -92,7 +92,7 @@ input[type=number] {
Phase 1
</button>
@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()}}
<input type="hidden" name="userId" value="{{$userId}}">
<input type="hidden" name="year" value="{{$year}}">
......
......@@ -49,7 +49,7 @@ input[type=number] {
<thead>
<tr>
<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>
<button type="submit" class="fluid center aligned ui blue compact labeled icon button">
<i class="save icon"></i>
......@@ -58,7 +58,7 @@ input[type=number] {
</th>
</tr>
<tr>
<th class="single line">Task</th>
<th>Task</th>
@if($phase == 1)
@for($i = 0; $i < 15 ; $i++)
......@@ -70,18 +70,16 @@ input[type=number] {
@endfor
@endif
<th>Description</th>
<th>Total Hours</th>
</tr>
<tr>
</tr>
</thead>
<tbody>
@foreach($projectlist as $key => $project)
<?php $total = 0; ?>
<tr>
<td class="single line">
<td>
{{$project['td_project_name']}}
</td>
@if($phase == 1)
......@@ -132,6 +130,11 @@ input[type=number] {
@endfor
@endif
<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}}>
</td>
</tr>
......
......@@ -47,11 +47,9 @@ Route::group(
Route::get('timesheet_viewer',['uses' => 'DashboardController@timesheetViewer', 'as' => 'dashboard.timesheetViewer']);
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::get('pengurusan',['uses' => 'DashboardController@pengurusan', 'as' => 'dashboard.pengurusan']);
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