fix(otorisator): perbaiki tampilan dan logika otorisator
- Menghapus tombol otorisator untuk peran 'administrator' dan 'DD Appraisal' pada tampilan 'paparan'. - Memperbaiki format penanganan keterangan dan tanggal paparan.
This commit is contained in:
@@ -157,18 +157,12 @@
|
|||||||
Otorisator {{ $header ?? '' }}
|
Otorisator {{ $header ?? '' }}
|
||||||
</button>
|
</button>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@elseif($dataHeader == 'paparan')
|
@elseif($dataHeader == 'paparan')
|
||||||
<a class="btn btn-success"
|
<a class="btn btn-success"
|
||||||
href="{{ route('penilai.paparan') }}?permohonanId={{ $permohonan->id }}&documentId={{ $documentId }}&inspeksiId={{ $inspeksiId }}&jaminanId={{ $jenisJaminanId }}&statusLpj={{ true }}">
|
href="{{ route('penilai.paparan') }}?permohonanId={{ $permohonan->id }}&documentId={{ $documentId }}&inspeksiId={{ $inspeksiId }}&jaminanId={{ $jenisJaminanId }}&statusLpj={{ true }}">
|
||||||
Lihat Data Paparan
|
Lihat Data Paparan
|
||||||
</a>
|
</a>
|
||||||
@if (Auth::user()->hasAnyRole(['administrator', 'DD Appraisal']))
|
|
||||||
<button onclick="otorisatorData({{ $permohonan->id }})" type="button" class="btn btn-primary">
|
|
||||||
<i class="ki-filled ki-double-check"></i>
|
|
||||||
Otorisator {{ $header ?? '' }}
|
|
||||||
</button>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(Auth::user()->hasAnyRole(['administrator','senior-officer']) && $authorization->approve_so==null)
|
@if(Auth::user()->hasAnyRole(['administrator','senior-officer']) && $authorization->approve_so==null)
|
||||||
<button onclick="otorisatorData({{ $authorization->id }})" type="button" class="btn btn-primary">
|
<button onclick="otorisatorData({{ $authorization->id }})" type="button" class="btn btn-primary">
|
||||||
@@ -225,9 +219,9 @@
|
|||||||
cancelButtonText: 'Batal',
|
cancelButtonText: 'Batal',
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
const keterangan = result.value.keterangan || '';
|
const keterangan = result.value.keterangan || '';
|
||||||
const tanggalPaparan = result.value.tanggalPaparan || '';
|
const tanggalPaparan = result.value.tanggalPaparan || '';
|
||||||
|
|
||||||
$.ajaxSetup({
|
$.ajaxSetup({
|
||||||
headers: {
|
headers: {
|
||||||
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
||||||
|
|||||||
Reference in New Issue
Block a user