Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
I
IPRSv2
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Ngei
IPRSv2
Commits
29e0d5d6
Commit
29e0d5d6
authored
May 22, 2025
by
Brian Wangora
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refugee and Death addex to basic search dropdown, menu links removed from client role
parent
314fb629
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
4 deletions
+29
-4
Searchform.php
app/Livewire/Search/Searchform.php
+4
-0
adminlte.php
config/adminlte.php
+2
-2
searchform.blade.php
resources/views/livewire/search/searchform.blade.php
+23
-2
No files found.
app/Livewire/Search/Searchform.php
View file @
29e0d5d6
...
...
@@ -114,6 +114,10 @@ class Searchform extends Component
if
(
$this
->
role
->
hasPermissionTo
(
'Basic Search Birth Certificate'
))
{
$this
->
searchGroups
[]
=
'Birth'
;
}
$this
->
searchGroups
[]
=
'Refugee'
;
$this
->
searchGroups
[]
=
'Death'
;
}
public
function
render
()
{
...
...
config/adminlte.php
View file @
29e0d5d6
...
...
@@ -380,14 +380,14 @@ return [
'text'
=>
'Home'
,
'url'
=>
'home'
,
'icon'
=>
'fas fa-home'
,
'can'
=>
'is
Client
'
,
'can'
=>
'is
Admin
'
,
],
[
'text'
=>
'Home 2 (Management)'
,
'url'
=>
'director'
,
'icon'
=>
'fas fa-home'
,
'can'
=>
'is
Client
'
,
'can'
=>
'is
Admin
'
,
],
[
...
...
resources/views/livewire/search/searchform.blade.php
View file @
29e0d5d6
...
...
@@ -56,10 +56,21 @@
</div>
<div
id=
"fieldsContainerBirth"
class=
"{{ $showFields !== 'Birth' ? 'd-none' : '' }} d-flex"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"search
BirthEntry"
name=
"searchBirthEntry
Num"
placeholder=
"Enter UPI Number"
title=
"Enter UPI Number"
wire:model=
"searchBirthEntryNum"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"search
UPINo"
name=
"searchUPI
Num"
placeholder=
"Enter UPI Number"
title=
"Enter UPI Number"
wire:model=
"searchBirthEntryNum"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"searchBirthEntry"
name=
"searchBirthEntryNum"
placeholder=
"Enter Birth Entry Number"
title=
"Enter Birth Entry Number"
wire:model=
"searchBirthEntryNum"
>
</div>
<div
id=
"fieldsContainerRefugee"
class=
"{{ $showFields !== 'Refugee' ? 'd-none' : '' }} d-flex"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"searchRefugeeNum"
name=
"searchRefugeeNum"
placeholder=
"Enter Refugee Number"
title=
"Enter Refugee Number"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"searchRefugeeSerial"
name=
"searchRefugeeSerial"
placeholder=
"Refugee Serial Number"
title=
"Enter Refugee Serial Number"
>
</div>
<div
id=
"fieldsContainerDeath"
class=
"{{ $showFields !== 'Death' ? 'd-none' : '' }} d-flex"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"searchUpiNum"
name=
"searchUpiNum"
placeholder=
"Enter UPI Number"
title=
"Enter UPI Number"
>
<input
type=
"text"
class=
"form-control search-element no-radius"
id=
"searchDeathEntry"
name=
"searchDeathEntryNum"
placeholder=
"Death Entry Number"
title=
"Enter Birth Entry Number"
>
</div>
<button
type=
"submit"
id=
"submitSearch"
class=
"btn search-element search-btn"
title=
"search"
>
<img
src=
"{{ asset('images/search-white.png') }}"
alt=
"Search"
style=
"width: 24px; height: 24px;"
>
</button>
...
...
@@ -77,11 +88,15 @@
var
fieldsContainerID
=
document
.
getElementById
(
'fieldsContainerID'
);
var
fieldsContainerBirth
=
document
.
getElementById
(
'fieldsContainerBirth'
);
var
fieldsContainerPassport
=
document
.
getElementById
(
'fieldsContainerPassport'
);
var
fieldsContainerRefugee
=
document
.
getElementById
(
'fieldsContainerRefugee'
);
var
fieldsContainerDeath
=
document
.
getElementById
(
'fieldsContainerDeath'
);
var
searchContainer
=
document
.
getElementById
(
'searchContainer'
);
fieldsContainerID
.
classList
.
add
(
'd-none'
);
fieldsContainerBirth
.
classList
.
add
(
'd-none'
);
fieldsContainerPassport
.
classList
.
add
(
'd-none'
);
fieldsContainerRefugee
.
classList
.
add
(
'd-none'
);
fieldsContainerDeath
.
classList
.
add
(
'd-none'
);
searchContainer
.
classList
.
remove
(
'search-expanded'
);
if
(
this
.
value
===
'ID'
)
{
...
...
@@ -93,6 +108,12 @@
}
else
if
(
this
.
value
===
'Birth'
)
{
fieldsContainerBirth
.
classList
.
remove
(
'd-none'
);
searchContainer
.
classList
.
add
(
'search-expanded'
);
}
else
if
(
this
.
value
===
'Refugee'
)
{
fieldsContainerRefugee
.
classList
.
remove
(
'd-none'
);
searchContainer
.
classList
.
add
(
'search-expanded'
);
}
else
if
(
this
.
value
===
'Death'
)
{
fieldsContainerDeath
.
classList
.
remove
(
'd-none'
);
searchContainer
.
classList
.
add
(
'search-expanded'
);
}
});
</script>
...
...
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