Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simpmw
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alfiro Pratama
simpmw
Commits
056bb2e7
Commit
056bb2e7
authored
Mar 28, 2026
by
Alfiro Pratama
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fp to fpsi
fix tambah reviewer
parent
c0d02d2c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
128 additions
and
71 deletions
+128
-71
app/Helpers/InseoHelper.php
+10
-2
app/Http/Controllers/DashboardController.php
+1
-1
app/Http/Controllers/Operator/ReviewerController.php
+10
-2
app/Http/Controllers/Operator/ReviewerMonevController.php
+11
-3
resources/views/backend/index.blade.php
+2
-2
resources/views/backend/operator/reviewer/index.blade.php
+44
-30
resources/views/backend/operator/reviewer/monev.blade.php
+50
-31
No files found.
app/Helpers/InseoHelper.php
View file @
056bb2e7
...
...
@@ -69,9 +69,10 @@ class InseoHelper
'fakultas ilmu olahraga'
=>
'FIKK'
,
'fiK'
=>
'FIKK'
,
'fak. ilmu olahraga'
=>
'FIKK'
,
'fikk'
=>
'FIKK'
,
'ilmu keolahragaan dan kesehatan'
=>
'FIKK'
,
'feb'
=>
'FEB'
,
'ekonomi'
=>
'FEB'
,
'fakultas ekonomi'
=>
'FEB'
,
'fe'
=>
'FEB'
,
...
...
@@ -87,14 +88,21 @@ class InseoHelper
'ilmu sosial dan ilmu politik'
=>
'FISIPOL'
,
'kedokteran'
=>
'FK'
,
'fk'
=>
'FK'
,
'psikologi'
=>
'FPsi'
,
'fpsi'
=>
'FPsi'
,
'
psikologi'
=>
'FP
'
,
'
fh'
=>
'FH
'
,
'hukum'
=>
'FH'
,
'ilmu hukum'
=>
'FH'
,
'fkp'
=>
'FKP'
,
'kampus unesa magetan'
=>
'PSDKU Magetan'
,
'kampus 5 universitas negeri surabaya'
=>
'PSDKU Magetan'
,
'kampus 5'
=>
'PSDKU Magetan'
,
'kampus 5 unesa'
=>
'PSDKU Magetan'
,
];
return
$fak
;
...
...
app/Http/Controllers/DashboardController.php
View file @
056bb2e7
...
...
@@ -78,7 +78,7 @@ class DashboardController extends Controller
$item
->
nm_lemb
=
'FK'
;
}
if
(
strtolower
(
$item
->
nm_lemb
)
===
'fpsi'
)
{
$item
->
nm_lemb
=
'FP'
;
$item
->
nm_lemb
=
'FP
si
'
;
}
if
(
strtolower
(
$item
->
nm_lemb
)
===
'psdku'
)
{
$item
->
nm_lemb
=
"PSDKU
\n
Magetan"
;
...
...
app/Http/Controllers/Operator/ReviewerController.php
View file @
056bb2e7
...
...
@@ -18,6 +18,7 @@ use App\Traits\LoginTrait;
use
Illuminate\Http\Request
;
use
App\Http\Controllers\Controller
;
use
App\Http\Controllers\Authentication\LoginController
;
use
App\Helpers\InseoHelper
;
use
Exception
;
class
ReviewerController
extends
Controller
...
...
@@ -143,7 +144,14 @@ class ReviewerController extends Controller
$data
[
'id_sdm'
]
=
$request
->
input
(
'id_sdm'
);
$data
[
'nama'
]
=
$request
->
input
(
'nama'
);
$data
[
'nidn'
]
=
$request
->
input
(
'nidn'
);
$data
[
'fakultas'
]
=
$request
->
input
(
'fakultas'
);
$fakInput
=
$request
->
input
(
'fakultas'
);
$fakMap
=
InseoHelper
::
singkatan_fakultas
();
$fakKey
=
strtolower
(
trim
((
string
)
$fakInput
));
if
(
$fakKey
!==
''
&&
array_key_exists
(
$fakKey
,
$fakMap
))
{
$data
[
'fakultas'
]
=
$fakMap
[
$fakKey
];
}
else
{
$data
[
'fakultas'
]
=
$fakInput
;
}
$data
[
'prodi'
]
=
$request
->
input
(
'prodi'
);
// BACKUP NVN
// $data['created_user'] = Auth::user()->name;
...
...
@@ -262,7 +270,7 @@ class ReviewerController extends Controller
$result
[
$i
][
'fakultas'
]
=
$value
[
'namaparentsatker'
];
$result
[
$i
][
'prodi'
]
=
$xyz
;
$result
[
$i
][
'tipe'
]
=
'Internal'
;
$result
[
$i
][
'id_sdm'
]
=
$value
[
'nidn'
];
$result
[
$i
][
'id_sdm'
]
=
$value
[
'nidn'
]
??
$value
[
'nuptk'
]
;
$i
++
;
}
...
...
app/Http/Controllers/Operator/ReviewerMonevController.php
View file @
056bb2e7
...
...
@@ -8,6 +8,7 @@ use URL;
use
Auth
;
use
Uuid
;
use
Alert
;
use
App\Helpers\InseoHelper
;
use
Crypt
;
use
GuzzleHttp\Client
;
use
App\Models\Periode
;
...
...
@@ -150,7 +151,14 @@ class ReviewerMonevController extends Controller
$data
[
'id_sdm'
]
=
$request
->
input
(
'id_sdm'
);
$data
[
'nama'
]
=
$request
->
input
(
'nama'
);
$data
[
'nidn'
]
=
$request
->
input
(
'nidn'
);
$data
[
'fakultas'
]
=
$request
->
input
(
'fakultas'
);
$fakInput
=
$request
->
input
(
'fakultas'
);
$fakMap
=
InseoHelper
::
singkatan_fakultas
();
$fakKey
=
strtolower
(
trim
((
string
)
$fakInput
));
if
(
$fakKey
!==
''
&&
array_key_exists
(
$fakKey
,
$fakMap
))
{
$data
[
'fakultas'
]
=
$fakMap
[
$fakKey
];
}
else
{
$data
[
'fakultas'
]
=
$fakInput
;
}
$data
[
'prodi'
]
=
$request
->
input
(
'prodi'
);
// BACKUP NVN
// $data['created_user'] = Auth::user()->name;
...
...
@@ -230,10 +238,10 @@ class ReviewerMonevController extends Controller
}
$result
[
$i
][
'nm_sdm'
]
=
$value
[
'namalengkap'
];
$result
[
$i
][
'nidn'
]
=
$value
[
'nidn'
];
$result
[
$i
][
'nidn'
]
=
$value
[
'nidn'
]
??
$value
[
'nuptk'
]
;
$result
[
$i
][
'fakultas'
]
=
$value
[
'namaparentsatker'
];
$result
[
$i
][
'prodi'
]
=
$xyz
;
$result
[
$i
][
'id_sdm'
]
=
$value
[
'nidn'
];
$result
[
$i
][
'id_sdm'
]
=
$value
[
'nidn'
]
??
$value
[
'nuptk'
]
;
$i
++
;
}
...
...
resources/views/backend/index.blade.php
View file @
056bb2e7
...
...
@@ -226,9 +226,9 @@
// Change FP to FPsi for display only
if (Array.isArray(label)) {
return label.map(line => line === 'FP' ? 'FPsi' : line);
return label.map(line => line === 'FP
si
' ? 'FPsi' : line);
} else {
return label === 'FP' ? 'FPsi' : label;
return label === 'FP
si
' ? 'FPsi' : label;
}
});
...
...
resources/views/backend/operator/reviewer/index.blade.php
View file @
056bb2e7
@
extends
(
'layouts.master'
)
@
section
(
'css'
)
<
style
>
/* SweetAlert2 di atas modal Bootstrap (backdrop modal ~1055) */
.
swal2
-
container
{
z
-
index
:
20000
!
important
;
}
</
style
>
@
endsection
@
section
(
'title'
)
Dashboard
@
endsection
...
...
@@ -202,26 +211,40 @@
});
function
createManageBtn
()
{
return
'<button
id="manageBtn" type="button" class="btn btn-success btn-sm
">Tambah</button>'
;
return
'<button
type="button" class="btn btn-success btn-sm btn-tambah-reviewer
">Tambah</button>'
;
}
$
(
'#example1 tbody'
)
.
on
(
'click'
,
'button'
,
function
()
{
var
data
=
oTable1
.
row
(
$
(
this
)
.
parents
(
'tr'
))
.
data
();
$
(
'#example1 tbody'
)
.
on
(
'click'
,
'button.btn-tambah-reviewer'
,
function
()
{
var
$tr
=
$
(
this
)
.
closest
(
'tr'
);
var
row
=
oTable1
.
row
(
$tr
);
if
(
$tr
.
hasClass
(
'child'
))
{
row
=
oTable1
.
row
(
$tr
.
prev
());
}
var
data
=
row
.
data
();
if
(
!
data
)
{
return
;
}
Swal
.
fire
({
title
:
"Apakah Anda Yakin?"
,
text
:
"Anda akan menambahkan reviewer ini!"
,
icon
:
"warning"
,
showCancelButton
:
!
0
,
showCancelButton
:
true
,
confirmButtonText
:
"Ya, Tambah data!"
,
cancelButtonText
:
"Tidak, Kembali!"
,
confirmButtonClass
:
"btn btn-success mt-2"
,
cancelButtonClass
:
"btn btn-danger ms-2 mt-2"
,
buttonsStyling
:
!
1
,
allowOutsideClick
:
!
1
,
showLoaderOnConfirm
:
true
})
.
then
((
result
)
=>
{
if
(
result
.
value
){
buttonsStyling
:
false
,
allowOutsideClick
:
false
,
showLoaderOnConfirm
:
true
,
didOpen
:
function
()
{
var
el
=
document
.
querySelector
(
'.swal2-container'
);
if
(
el
)
{
el
.
style
.
zIndex
=
'20000'
;
}
}
})
.
then
(
function
(
result
)
{
if
(
result
.
isConfirmed
)
{
$
.
ajax
({
url
:
'{{url("/operator/seleksi-internal-reviewer")}}'
,
type
:
'POST'
,
...
...
@@ -236,19 +259,15 @@
dataType
:
"JSON"
,
})
.
done
(
function
(
response
){
s
wal
.
fire
(
response
.
status
,
response
.
message
,
response
.
status
)
.
then
(
function
(){
oTable
.
ajax
.
reload
();
S
wal
.
fire
(
response
.
status
,
response
.
message
,
response
.
status
)
.
then
(
function
(){
location
.
reload
();
});
})
.
fail
(
function
(){
s
wal
.
fire
(
'Oops...'
,
'Something went wrong with ajax !'
,
'error'
);
S
wal
.
fire
(
'Oops...'
,
'Something went wrong with ajax !'
,
'error'
);
});
}
else
{
swal
.
fire
(
'Batal!'
,
'Data batal ditambahkan.'
,
'error'
);
}
})
});
});
});
...
...
@@ -258,16 +277,16 @@
title
:
"Apakah Anda Yakin?"
,
text
:
"Anda akan menghapus data ini!"
,
icon
:
"warning"
,
showCancelButton
:
!
0
,
showCancelButton
:
true
,
confirmButtonText
:
"Ya, Hapus data!"
,
cancelButtonText
:
"Tidak, Kembali!"
,
confirmButtonClass
:
"btn btn-success mt-2"
,
cancelButtonClass
:
"btn btn-danger ms-2 mt-2"
,
buttonsStyling
:
!
1
,
allowOutsideClick
:
!
1
,
buttonsStyling
:
false
,
allowOutsideClick
:
false
,
showLoaderOnConfirm
:
true
})
.
then
(
(
result
)
=>
{
if
(
result
.
value
){
})
.
then
(
function
(
result
)
{
if
(
result
.
isConfirmed
){
$
.
ajax
({
url
:
'{{url("/operator/seleksi_internal_reviewer/")}}/'
+
reqId
,
type
:
'DELETE'
,
...
...
@@ -277,20 +296,15 @@
dataType
:
"JSON"
,
})
.
done
(
function
(
response
){
s
wal
.
fire
(
response
.
info
,
response
.
message
,
response
.
status
)
.
then
(
function
(){
S
wal
.
fire
(
response
.
info
,
response
.
message
,
response
.
status
)
.
then
(
function
(){
location
.
reload
();
});
})
.
fail
(
function
(){
s
wal
.
fire
(
'Oops...'
,
'Something went wrong with ajax !'
,
'error'
);
S
wal
.
fire
(
'Oops...'
,
'Something went wrong with ajax !'
,
'error'
);
});
}
else
{
swal
.
fire
(
'Batal!'
,
'Data batal dihapus.'
,
'error'
);
}
})
});
}
</
script
>
...
...
resources/views/backend/operator/reviewer/monev.blade.php
View file @
056bb2e7
@
extends
(
'layouts.master'
)
@
section
(
'css'
)
<
style
>
.
swal2
-
container
{
z
-
index
:
20000
!
important
;
}
</
style
>
@
endsection
@
section
(
'title'
)
Dashboard
@
endsection
...
...
@@ -187,26 +195,40 @@
});
function
createManageBtn
()
{
return
'<button
id="manageBtn" type="button" class="btn btn-success btn-sm
">Tambah</button>'
;
return
'<button
type="button" class="btn btn-success btn-sm btn-tambah-reviewer
">Tambah</button>'
;
}
$
(
'#example1 tbody'
)
.
on
(
'click'
,
'button'
,
function
()
{
var
data
=
oTable1
.
row
(
$
(
this
)
.
parents
(
'tr'
))
.
data
();
$
(
'#example1 tbody'
)
.
on
(
'click'
,
'button.btn-tambah-reviewer'
,
function
()
{
var
$tr
=
$
(
this
)
.
closest
(
'tr'
);
var
row
=
oTable1
.
row
(
$tr
);
if
(
$tr
.
hasClass
(
'child'
))
{
row
=
oTable1
.
row
(
$tr
.
prev
());
}
var
data
=
row
.
data
();
if
(
!
data
)
{
return
;
}
Swal
.
fire
({
title
:
"Apakah Anda Yakin?"
,
text
:
"Anda akan menambahkan reviewer ini!"
,
icon
:
"warning"
,
showCancelButton
:
!
0
,
showCancelButton
:
true
,
confirmButtonText
:
"Ya, Tambah data!"
,
cancelButtonText
:
"Tidak, Kembali!"
,
confirmButtonClass
:
"btn btn-success mt-2"
,
cancelButtonClass
:
"btn btn-danger ms-2 mt-2"
,
buttonsStyling
:
!
1
,
allowOutsideClick
:
!
1
,
showLoaderOnConfirm
:
true
})
.
then
((
result
)
=>
{
if
(
result
.
value
){
buttonsStyling
:
false
,
allowOutsideClick
:
false
,
showLoaderOnConfirm
:
true
,
didOpen
:
function
()
{
var
el
=
document
.
querySelector
(
'.swal2-container'
);
if
(
el
)
{
el
.
style
.
zIndex
=
'20000'
;
}
}
})
.
then
(
function
(
result
)
{
if
(
result
.
isConfirmed
)
{
$
.
ajax
({
url
:
'{{url("/operator/monev-internal-reviewer")}}'
,
type
:
'POST'
,
...
...
@@ -222,19 +244,15 @@
dataType
:
"JSON"
,
})
.
done
(
function
(
response
){
s
wal
.
fire
(
response
.
status
,
response
.
message
,
response
.
status
)
.
then
(
function
(){
oTable
.
ajax
.
reload
();
S
wal
.
fire
(
response
.
status
,
response
.
message
,
response
.
status
)
.
then
(
function
(){
location
.
reload
();
});
})
.
fail
(
function
(){
s
wal
.
fire
(
'Oops...'
,
'Something went wrong with ajax !'
,
'error'
);
S
wal
.
fire
(
'Oops...'
,
'Something went wrong with ajax !'
,
'error'
);
});
}
else
{
swal
.
fire
(
'Batal!'
,
'Data batal ditambahkan.'
,
'error'
);
}
})
});
});
});
...
...
@@ -244,16 +262,22 @@
title
:
"Apakah Anda Yakin?"
,
text
:
"Anda akan menghapus data ini!"
,
icon
:
"warning"
,
showCancelButton
:
!
0
,
showCancelButton
:
true
,
confirmButtonText
:
"Ya, Hapus data!"
,
cancelButtonText
:
"Tidak, Kembali!"
,
confirmButtonClass
:
"btn btn-success mt-2"
,
cancelButtonClass
:
"btn btn-danger ms-2 mt-2"
,
buttonsStyling
:
!
1
,
allowOutsideClick
:
!
1
,
showLoaderOnConfirm
:
true
})
.
then
((
result
)
=>
{
if
(
result
.
value
){
buttonsStyling
:
false
,
allowOutsideClick
:
false
,
showLoaderOnConfirm
:
true
,
didOpen
:
function
()
{
var
el
=
document
.
querySelector
(
'.swal2-container'
);
if
(
el
)
{
el
.
style
.
zIndex
=
'20000'
;
}
}
})
.
then
(
function
(
result
)
{
if
(
result
.
isConfirmed
){
$
.
ajax
({
url
:
'{{url("/operator/seleksi_internal_reviewer/")}}/'
+
reqId
,
type
:
'DELETE'
,
...
...
@@ -263,20 +287,15 @@
dataType
:
"JSON"
,
})
.
done
(
function
(
response
){
s
wal
.
fire
(
response
.
info
,
response
.
message
,
response
.
status
)
.
then
(
function
(){
S
wal
.
fire
(
response
.
info
,
response
.
message
,
response
.
status
)
.
then
(
function
(){
location
.
reload
();
});
})
.
fail
(
function
(){
s
wal
.
fire
(
'Oops...'
,
'Something went wrong with ajax !'
,
'error'
);
S
wal
.
fire
(
'Oops...'
,
'Something went wrong with ajax !'
,
'error'
);
});
}
else
{
swal
.
fire
(
'Batal!'
,
'Data batal dihapus.'
,
'error'
);
}
})
});
}
</
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