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
8f784e21
Commit
8f784e21
authored
Jun 27, 2022
by
hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
completion of nonchargeable form, add description button in overhead form
parent
d1a8e31e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
14 deletions
+15
-14
packages/portal/timesheet/resources/views/dashboard/chargeableForm.blade.php
+1
-1
packages/portal/timesheet/resources/views/dashboard/nonChargeableForm.blade.php
+4
-4
packages/portal/timesheet/resources/views/dashboard/overheadForm.blade.php
+9
-6
packages/portal/timesheet/routes/web.php
+1
-3
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+0
-0
No files found.
packages/portal/timesheet/resources/views/dashboard/chargeableForm.blade.php
View file @
8f784e21
...
...
@@ -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']}
}
...
...
packages/portal/timesheet/resources/views/dashboard/nonChargeableForm.blade.php
View file @
8f784e21
...
...
@@ -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
=>
$non
chargeable
)
<div class="
item
" data-value="
{{
$nonchargeable
->
id
}}
">
{
{$non
chargeable->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.save
non
chargeablehours'
)}}
" method="
POST
">
{
{csrf_field()}
}
<input type="
hidden
" name="
userId
" value="
{{
$userId
}}
">
<input type="
hidden
" name="
year
" value="
{{
$year
}}
">
...
...
packages/portal/timesheet/resources/views/dashboard/overheadForm.blade.php
View file @
8f784e21
...
...
@@ -49,7 +49,7 @@ input[type=number] {
<thead>
<tr>
<th>Overhead</th>
<th colspan="
@
if
(
$phase
==
1
)
1
5
@
else
{{
$daymonth
-
15
}}
@
endif
" class="
center
aligned
">Date</th>
<th colspan="
@
if
(
$phase
==
1
)
1
6
@
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
:
4
px
;
padding
-
left
:
4
px
;
" onchange="
limiter
(
this
,
'{{$project['
td_project
']}}'
);
" readonly="" value=
{
{$total}
}
>
</td>
</tr>
...
...
packages/portal/timesheet/routes/web.php
View file @
8f784e21
...
...
@@ -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'
]);
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
8f784e21
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