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
0db6efdd
Commit
0db6efdd
authored
Sep 22, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New note page, display table form and saved. Required.
parent
fe414e0d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
88 additions
and
41 deletions
+88
-41
packages/portal/timesheet/resources/views/form/notelist.blade.php
+75
-37
packages/portal/timesheet/resources/views/form/penambahannote.blade.php
+3
-1
packages/portal/timesheet/resources/views/maintenance/editoverhead.blade.php
+4
-1
packages/portal/timesheet/resources/views/maintenance/penambahanOverhead.blade.php
+5
-2
packages/portal/timesheet/routes/web.php
+1
-0
packages/portal/timesheet/src/Http/Controllers/FormController.php
+0
-0
No files found.
packages/portal/timesheet/resources/views/form/notelist.blade.php
View file @
0db6efdd
...
@@ -28,45 +28,83 @@
...
@@ -28,45 +28,83 @@
<div class="
ui
unstackable
segment
">
<div class="
ui
unstackable
segment
">
<a class="
ui
blue
left
ribbon
label
">Senarai Notes</a>
<a class="
ui
blue
left
ribbon
label
">Senarai Notes</a>
<br><br>
<br><br>
@if(data_get(
$staff
,'fk_lkp_department') == 7)
<button class="
right
floated
aligned
ui
olive
compact
labeled
icon
button
" id="
uploadmodal
">
@if(data_get(
$staff
,'fk_lkp_department') == 7)
<i class="
file
icon
"></i>
<button type="
button
" class="
right
floated
aligned
ui
olive
compact
labeled
icon
button
" id="
uploadmodal
">
Upload File
<i class="
file
icon
"></i>
</button>
Upload File
@endif
</button>
<a href="
{{
route
(
'timesheet::form.penambahannote'
)
}}
" class="
right
floated
aligned
ui
orange
compact
labeled
icon
button
">
@endif
<i class="
plus
icon
"></i>Add New Notes
</a>
<form class="
ui
form
horizontal
" action="
{{
route
(
'timesheet::form.savenote'
)
}}
" method="
POST
">
{
{csrf_field()}
}
<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>
<input type="
hidden
" name="
year
" value="
{{
$year
}}
">
Overhead Form
<input type="
hidden
" name="
month
" value="
{{
$month
}}
">
</button>
<input type="
hidden
" name="
phase
" value="
{{
$phase
}}
">
<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]) }}'
;
">
<input type="
hidden
" name="
tmid
" value="
{{
$fk_tm_id
}}
">
<i class="
angle
double
right
icon
"></i>
Timesheet Viewer
<!-- <a href="
{{
route
(
'timesheet::form.penambahannote'
)
}}
" class="
right
floated
aligned
ui
orange
compact
labeled
icon
button
">
</button>
<i class="
plus
icon
"></i>Add New Notes
</a> -->
<table class="
ui
celled
padded
table
">
<thead>
<button type="
submit
" class="
right
floated
aligned
ui
orange
compact
button
">
<tr>
Save
<th style="
width
:
3
%
;
">No</th>
</button>
<th style="
width
:
10
%
;
">Date</th>
<th style="
width
:
20
%
;
">Task</th>
<button type="
button
" class="
center
aligned
ui
purple
compact
labeled
icon
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
form
.
overheadForm
', ['
phase
' => $phase, '
month
' => $month]) }}'
;
">
<th>Description</th>
<i class="
angle
double
left
icon
"></i>
</tr>
Overhead Form
</thead>
</button>
<tbody>
@foreach(
$notes
as
$key
=>
$value
)
<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>
Timesheet Viewer
</button>
<table class="
ui
celled
structured
table
unstackable
">
<thead>
<tr>
<tr>
<t
d>
{
{$key+1}
}
</td
>
<t
h style="
width
:
3
%
;
">No</th
>
<t
d>{{ data_get(
$value
,'td_date') }} </td
>
<t
h style="
width
:
10
%
;
">Date</th
>
<t
d>{{ data_get(
$value
,'td_overhead_desc') }} </td
>
<t
h style="
width
:
20
%
;
">Task</th
>
<t
d>{{ data_get(
$value
,'td_overhead_note') }} </td
>
<t
h>Description</th
>
</tr>
</tr>
@endforeach
</thead>
</tbody>
<tbody>
</table>
@foreach(
$onotes
as
$key
=>
$value
)
<tr>
<td>
{
{$key+1}
}
</td>
<td class="
single
line
">
<input type="
hidden
" name="
date
[{{
$key
}}]
" value="
{{
data_get
(
$value
,
'td_date'
)}}
">
{
{data_get($value,'td_date')}
}
</td>
<td class="
single
line
">
<input type="
hidden
" name="
oid
[{{
$key
}}]
" value="
{{
data_get
(
$value
,
'fk_o_id'
)}}
">
{
{data_get($value,'td_overhead_desc')}
}
</td>
<td class="
single
line
">
@if(data_get(
$value
,'td_overhead_note'))
<input type="
text
" name="
note
[{{
$key
}}]
" value="
{{
data_get
(
$value
,
'td_overhead_note'
)}}
" required="
required
">
@else
<input type="
text
" name="
note
[{{
$key
}}]
" placeholder="
Fill
in
the
notes
for
your
overhead
task
" required="
required
">
@endif
</td>
</tr>
@endforeach
<!-- @foreach(
$notes
as
$key
=>
$value
)
<tr>
<td>
{
{$key+1}
}
</td>
<td>{{ data_get(
$value
,'td_date') }} </td>
<td>{{ data_get(
$value
,'td_overhead_desc') }} </td>
<td>{{ data_get(
$value
,'td_overhead_note') }} </td>
</tr>
@endforeach -->
</tbody>
</table>
</form>
</div>
</div>
...
...
packages/portal/timesheet/resources/views/form/penambahannote.blade.php
View file @
0db6efdd
...
@@ -25,7 +25,8 @@
...
@@ -25,7 +25,8 @@
<label>Description</label>
<label>Description</label>
<textarea name="
description
" cols="
30
" rows="
10
"></textarea>
<textarea name="
description
" cols="
30
" rows="
10
"></textarea>
</div>
</div>
<button class="
ui
button
" type="
submit
">Submit</button>
<button class="
ui
primary
button
" type="
submit
">Submit</button>
</form>
</form>
</div>
</div>
@endsection
@endsection
\ No newline at end of file
packages/portal/timesheet/resources/views/maintenance/editoverhead.blade.php
View file @
0db6efdd
...
@@ -23,7 +23,9 @@
...
@@ -23,7 +23,9 @@
</div>
</div>
<button class="
ui
green
button
" type="
submit
">Update</button>
<button class="
ui
green
button
" type="
submit
">Update</button>
<button class="
center
aligned
ui
olive
button
" type="
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
senaraiOverhead
') }}'
;
">
Back
</button>
</form>
</form>
</div>
</div>
@endsection
@endsection
\ No newline at end of file
packages/portal/timesheet/resources/views/maintenance/penambahanOverhead.blade.php
View file @
0db6efdd
...
@@ -8,17 +8,19 @@
...
@@ -8,17 +8,19 @@
{
{csrf_field()}
}
{
{csrf_field()}
}
<div class="
field
">
<div class="
field
">
<label>Overhead Lookup</label>
<label>Overhead Lookup</label>
<input type="
text
" name="
overheadlookup
" placeholder="
Enter
new
lookup
overhead
">
<input type="
text
" name="
overheadlookup
" placeholder="
Enter
new
lookup
overhead
"
required=required
>
</div>
</div>
<div class="
field
">
<div class="
field
">
<label>Overhead Status</label>
<label>Overhead Status</label>
<select name="
status
" class="
ui
fluid
dropdown
">
<select name="
status
" class="
ui
fluid
dropdown
">
<option value="">Overhead Status</option>
<option value="
1
">Active</option>
<option value="
1
">Active</option>
<option value="
0
">Inactive</option>
<option value="
0
">Inactive</option>
</select>
</select>
</div>
</div>
<button class="
ui
blue
button
" type="
submit
">Add</button>
<button class="
ui
blue
button
" type="
submit
">Add</button>
<button class="
center
aligned
ui
olive
button
" type="
button
" onclick="
window
.
location
.
href
=
'{{ route('
timesheet
::
maintenance
.
senaraiOverhead
') }}'
;
">
Back
</button>
</form>
</form>
</div>
</div>
@endsection
@endsection
\ No newline at end of file
packages/portal/timesheet/routes/web.php
View file @
0db6efdd
...
@@ -79,6 +79,7 @@ Route::group(
...
@@ -79,6 +79,7 @@ Route::group(
Route
::
get
(
'notelist'
,[
'uses'
=>
'FormController@notelist'
,
'as'
=>
'form.notelist'
]);
Route
::
get
(
'notelist'
,[
'uses'
=>
'FormController@notelist'
,
'as'
=>
'form.notelist'
]);
Route
::
get
(
'penambahannote'
,[
'uses'
=>
'FormController@penambahannote'
,
'as'
=>
'form.penambahannote'
]);
Route
::
get
(
'penambahannote'
,[
'uses'
=>
'FormController@penambahannote'
,
'as'
=>
'form.penambahannote'
]);
Route
::
post
(
'addnote'
,
[
'uses'
=>
'FormController@addnote'
,
'as'
=>
'form.addnote'
]);
Route
::
post
(
'addnote'
,
[
'uses'
=>
'FormController@addnote'
,
'as'
=>
'form.addnote'
]);
Route
::
post
(
'savenote'
,
[
'uses'
=>
'FormController@savenote'
,
'as'
=>
'form.savenote'
]);
Route
::
get
(
'filterChargeable'
,[
'uses'
=>
'FormController@filterChargeable'
,
'as'
=>
'form.filterChargeable'
]);
Route
::
get
(
'filterChargeable'
,[
'uses'
=>
'FormController@filterChargeable'
,
'as'
=>
'form.filterChargeable'
]);
Route
::
get
(
'filterOverhead'
,[
'uses'
=>
'FormController@filterOverhead'
,
'as'
=>
'form.filterOverhead'
]);
Route
::
get
(
'filterOverhead'
,[
'uses'
=>
'FormController@filterOverhead'
,
'as'
=>
'form.filterOverhead'
]);
Route
::
get
(
'filterNotes'
,[
'uses'
=>
'FormController@filterNotes'
,
'as'
=>
'form.filterNotes'
]);
Route
::
get
(
'filterNotes'
,[
'uses'
=>
'FormController@filterNotes'
,
'as'
=>
'form.filterNotes'
]);
...
...
packages/portal/timesheet/src/Http/Controllers/FormController.php
View file @
0db6efdd
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