Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3f-timesheet
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dockers
3f-timesheet
Commits
90a64481
Commit
90a64481
authored
Oct 25, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
staff - flow rejected overhead
parent
54d14ceb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
16 deletions
+60
-16
packages/portal/timesheet/resources/views/form/notelist.blade.php
+31
-12
packages/portal/timesheet/resources/views/form/rejectedoverhead.blade.php
+27
-3
packages/portal/timesheet/routes/web.php
+1
-0
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+1
-1
packages/portal/timesheet/src/Http/Controllers/FormController.php
+0
-0
No files found.
packages/portal/timesheet/resources/views/form/notelist.blade.php
View file @
90a64481
...
@@ -27,7 +27,10 @@
...
@@ -27,7 +27,10 @@
<div class="
ui
unstackable
segment
">
<div class="
ui
unstackable
segment
">
<a class="
ui
blue
left
ribbon
label
">List Description of Task</a>
<a class="
ui
blue
left
ribbon
label
">List Description of Task</a>
<br><br>
<br>
<br>
@if(data_get(
$staff
,'fk_lkp_department') == 7)
@if(data_get(
$staff
,'fk_lkp_department') == 7)
<button type="
button
" class="
right
floated
aligned
ui
olive
compact
labeled
icon
button
" id="
uploadmodal
">
<button type="
button
" class="
right
floated
aligned
ui
olive
compact
labeled
icon
button
" id="
uploadmodal
">
...
@@ -48,19 +51,35 @@
...
@@ -48,19 +51,35 @@
<i class="
plus
icon
"></i>Add New Notes
<i class="
plus
icon
"></i>Add New Notes
</a> -->
</a> -->
<button type="
submit
" class="
right
floated
aligned
ui
orange
compact
button
">
Save
</button>
<button type="
button
" class="
center
aligned
ui
purple
compact
labeled
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
form
.
overheadForm
', ['
phase
' => $phase, '
month
' => $month]) }}'
;
">
@if(
$page
)
<i class="
angle
double
left
icon
"></i>
<input type="
hidden
" name="
page
" value="
{{
$page
}}
">
Back To Overhead Form
</button>
<button type="
submit
" class="
right
floated
aligned
ui
orange
compact
button
">
Save
</button>
<button type="
button
" class="
center
aligned
ui
purple
compact
labeled
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
form
.
rejected
', ['
tpid
' => data_get($checktp,'
id
') ]) }}'
;
">
<i class="
angle
double
left
icon
"></i>
Back To Resubmit Overhead
</button>
@else
<button type="
submit
" class="
right
floated
aligned
ui
orange
compact
button
">
Save
</button>
<button type="
button
" class="
center
aligned
ui
purple
compact
labeled
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
form
.
overheadForm
', ['
phase
' => $phase, '
month
' => $month]) }}'
;
">
<i class="
angle
double
left
icon
"></i>
Back To Overhead Form
</button>
<button type="
button
" class="
center
aligned
ui
pink
compact
right
labeled
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
dashboard
.
timesheetViewer
', ['
phase
' => $phase, '
month
' => $month, '
year
' => $year]) }}'
;
">
<button type="
button
" class="
center
aligned
ui
pink
compact
right
labeled
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
dashboard
.
timesheetViewer
', ['
phase
' => $phase, '
month
' => $month, '
year
' => $year]) }}'
;
">
<i class="
angle
double
right
icon
"></i>
<i class="
angle
double
right
icon
"></i>
Timesheet Viewer
Timesheet Viewer
</button>
</button>
@endif
<table class="
ui
celled
structured
table
unstackable
">
<table class="
ui
celled
structured
table
unstackable
">
<thead>
<thead>
...
...
packages/portal/timesheet/resources/views/form/rejectedoverhead.blade.php
View file @
90a64481
...
@@ -4,19 +4,43 @@
...
@@ -4,19 +4,43 @@
<div
class=
"ui segment"
>
<div
class=
"ui segment"
>
<a
class=
"ui purple left ribbon label"
>
Rejected Overhead
</a>
<a
class=
"ui purple left ribbon label"
>
Rejected Overhead
</a>
<?php
$month
=
data_get
(
$checkoverhead
,
'tm_month'
);
$phase
=
data_get
(
$checkoverhead
,
'tm_phase'
);
$year
=
data_get
(
$checkoverhead
,
'tm_year'
);
$fk_tm_id
=
data_get
(
$checkoverhead
,
'id'
);
$page
=
6
;
?>
@if($checkoverhead)
<button
class=
"right floated aligned ui yellow compact labeled icon button"
id=
"notes"
onclick=
"window.location.href='{{ route('timesheet::form.notelist', ['year'=> $year, 'month'=> $month, 'phase'=> $phase, 'fk_tm_id'=> $fk_tm_id, 'page'=> $page] ) }} ';"
>
<i
class=
"plus icon"
></i>
Add Task Description
</button>
@else
@endif
<br>
<br>
<br>
<br>
<form class="
ui
form
" action="" method="
POST
">
<form
class=
"ui form"
action=
"{{ route('timesheet::form.resubmitoverhead') }}"
method=
"POST"
>
{{csrf_field()}}
<input
type=
"hidden"
name=
"userId"
value=
"{{$userId}}"
>
<input
type=
"hidden"
name=
"year"
value=
"{{$year}}"
>
<input
type=
"hidden"
name=
"month"
value=
"{{$month}}"
>
<input
type=
"hidden"
name=
"phase"
value=
"{{$phase}}"
>
<input
type=
"hidden"
name=
"page"
value=
"{{$page}}"
>
<table
class=
"ui celled structured unstackable table"
>
<table
class=
"ui celled structured unstackable table"
>
<thead>
<thead>
<tr>
<tr>
<th
rowspan=
"3"
class=
"center aligned"
>
Overhead
</th>
<th
rowspan=
"3"
class=
"center aligned"
>
Overhead
</th>
<th
colspan=
"@if($phase == 1) 15 @else {{$daymonth-15}} @endif"
class=
"center aligned"
>
Date
</th>
<th
colspan=
"@if($phase == 1) 15 @else {{$daymonth-15}} @endif"
class=
"center aligned"
>
Date
</th>
<th
rowspan=
"2"
>
<th
rowspan=
"2"
>
<button type="
submit
" class="
fluid
center
aligned
ui
blue
button
">
<button
type=
"submit"
class=
"fluid center aligned ui
compact
blue button"
>
<!-- <i class="save icon"></i> -->
<!-- <i class="save icon"></i> -->
Save
</button>
<br>
<button
type=
"button"
class=
"fluid center aligned ui compact purple button"
onclick=
"window.location.href='{{ route('timesheet::form.resubmitconfirm', ['fk_tm_id'=> $fk_tm_id, 'page'=> $page] ) }} ';"
>
Resubmit
Resubmit
</button>
</button>
</th>
</th>
...
...
packages/portal/timesheet/routes/web.php
View file @
90a64481
...
@@ -104,6 +104,7 @@ Route::group(
...
@@ -104,6 +104,7 @@ Route::group(
Route
::
get
(
'rejected'
,[
'uses'
=>
'FormController@rejected'
,
'as'
=>
'form.rejected'
]);
Route
::
get
(
'rejected'
,[
'uses'
=>
'FormController@rejected'
,
'as'
=>
'form.rejected'
]);
Route
::
post
(
'resubmit'
,[
'uses'
=>
'FormController@resubmit'
,
'as'
=>
'form.resubmit'
]);
Route
::
post
(
'resubmit'
,[
'uses'
=>
'FormController@resubmit'
,
'as'
=>
'form.resubmit'
]);
Route
::
post
(
'resubmitoverhead'
,[
'uses'
=>
'FormController@resubmitoverhead'
,
'as'
=>
'form.resubmitoverhead'
]);
Route
::
post
(
'resubmitoverhead'
,[
'uses'
=>
'FormController@resubmitoverhead'
,
'as'
=>
'form.resubmitoverhead'
]);
Route
::
get
(
'resubmitconfirm'
,[
'uses'
=>
'FormController@resubmitconfirm'
,
'as'
=>
'form.resubmitconfirm'
]);
// nonChargeableForm
// nonChargeableForm
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
90a64481
...
@@ -69,7 +69,7 @@ class DashboardController extends Controller
...
@@ -69,7 +69,7 @@ class DashboardController extends Controller
->
get
();
->
get
();
$details
=
Tproject
::
where
(
'tp_project_type'
,
3
)
$details
=
Tproject
::
where
(
'tp_project_type'
,
3
)
// ->where('tp_timesheet_sts', 2
)
->
where
(
'tp_timesheet_sts'
,
'<>'
,
1
)
->
where
(
'tp_pm'
,
$verifier
->
id
)
->
where
(
'tp_pm'
,
$verifier
->
id
)
->
with
(
'notes'
)
->
with
(
'notes'
)
->
get
();
->
get
();
...
...
packages/portal/timesheet/src/Http/Controllers/FormController.php
View file @
90a64481
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment