Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sarun Mungthanya
SpnPatch-Laravel
Commits
eb19084d
Commit
eb19084d
authored
Sep 09, 2024
by
Sarun Mungthanya
Browse files
update ui sendpatch
parent
e6d1b757
Changes
3
Show whitespace changes
Inline
Side-by-side
app/Http/Livewire/Pages/SendPatch/SendMultiPatchList.php
View file @
eb19084d
...
...
@@ -53,6 +53,7 @@ class SendMultiPatchList extends Component
}
$query
->
orderBy
(
'PID'
,
'DESC'
);
$results
=
$query
->
paginate
(
$this
->
perPage
);
return
view
(
'livewire.pages.send-patch.send-multi-patch-list'
,
[
'results'
=>
$results
,
'selectedPatches'
=>
ConfSmartUpdate
::
whereIn
(
'PID'
,
$this
->
selectedPatches
)
->
get
()
...
...
app/Http/Livewire/Pages/SendPatch/SendPatchIndex.php
View file @
eb19084d
...
...
@@ -34,6 +34,7 @@ class SendPatchIndex extends Component
public
function
render
()
{
$results
=
[];
if
(
$this
->
action
==
'list'
)
{
$numServerSubquery
=
DB
::
table
(
'conf_server_pendding as p2'
)
->
select
(
DB
::
raw
(
'count(p2.ServerID) as NUMSERVER'
),
'p2.PatchID'
)
...
...
@@ -52,7 +53,8 @@ class SendPatchIndex extends Component
$query
->
orderBy
(
'p1.PID'
,
'DESC'
);
$results
=
$query
->
paginate
(
$this
->
perPage
);
}
$results
=
[];
// $results = [];
// dd($results);
return
view
(
'livewire.pages.send-patch.send-patch-index'
,
compact
(
'results'
));
}
...
...
resources/views/livewire/pages/send-patch/send-patch-index.blade.php
View file @
eb19084d
...
...
@@ -54,7 +54,9 @@
@endforeach
</select>
</span>
<button
type=
"button"
class=
"bg-primary text-white px-4 py-2 rounded hover:bg-primary-focus"
wire:click=
"search"
>
Search
</button>
<button
type=
"button"
class=
"bg-primary text-white px-4 py-2 rounded hover:bg-primary-focus"
wire:click=
"search"
>
Search
</button>
</div>
</div>
</div>
...
...
@@ -65,12 +67,8 @@
<table
class=
"is-hoverable table w-full text-left "
>
<thead>
<tr>
{{--
<th
class=
"whitespace-nowrap rounded-tl-lg bg-slate-200 px-4 py-3 font-semibold uppercase text-slate-800 dark:bg-navy-800 dark:text-navy-100 lg:px-5"
>
#
</th>
--}}
<th
class=
"whitespace-nowrap rounded-tl-lg bg-slate-300
text-black
px-
2
py-3 font-semibold uppercase text-
s
la
te-800
dark:bg-navy-800 dark:text-navy-100 lg:px-
2
"
>
class=
"whitespace-nowrap
text-center
rounded-tl-lg bg-slate-300 px-
4
py-3 font-semibold uppercase text-
b
la
ck
dark:bg-navy-800 dark:text-navy-100 lg:px-
5
"
>
Patch ID
</th>
<th
...
...
@@ -116,9 +114,10 @@
value=
"{{ $patch->id }}"
/>
</label>
</td>
--}}
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ $patch->PID }}
</td>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2
text-center
"
>
{{ $patch->PID }}
</td>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ $patch->PATCHNAME }}
</td>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ \Illuminate\Support\Str::limit($patch->PDESC, 40) }}
</td>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ \Illuminate\Support\Str::limit($patch->PDESC, 40) }}
</td>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ $patch->NUMSERVER }}
</td>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ $patch->PDATE }}
</td>
<td
class=
"whitespace-nowrap px-1 py-3 sm:px-2"
>
{{ $patch->PLEVEL }}
</td>
...
...
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