Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
pad-upe
Commits
debb3a9b
Commit
debb3a9b
authored
Apr 18, 2024
by
alissonalbuquerque
Browse files
fix(calendar-week)
parent
08a8a673
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/task-time/index.blade.php
View file @
debb3a9b
...
...
@@ -31,6 +31,8 @@
$weekColumns
=
[];
$COLUMN_NAN
=
'NaN'
;
$max_len_column
=
0
;
foreach
(
array_keys
(
TaskTime
::
listWeekDays
())
as
$weekday
)
{
...
...
@@ -46,7 +48,7 @@
foreach
(
range
(
0
,
$max_len_column
-
1
)
as
$i
)
{
$row
=
[];
foreach
(
array_keys
(
TaskTime
::
listWeekDays
())
as
$weekday
)
{
isset
(
$weekColumns
[
$weekday
][
$i
])
?
array_push
(
$row
,
$weekColumns
[
$weekday
][
$i
])
:
array_push
(
$row
,
null
);
isset
(
$weekColumns
[
$weekday
][
$i
])
?
array_push
(
$row
,
$weekColumns
[
$weekday
][
$i
])
:
array_push
(
$row
,
$COLUMN_NAN
);
}
$calendar
[]
=
$row
;
}
...
...
@@ -88,7 +90,7 @@
</
div
>
</
div
>
@
else
@
endif
</
td
>
@
endif
...
...
@@ -120,4 +122,4 @@
'btn_class'
=>
'btn-edit_task'
,
])
@
endsection
\ No newline at end of file
@
endsection
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