diff --git a/catatan_rilis.md b/catatan_rilis.md index ed5e9e052..17e99e880 100644 --- a/catatan_rilis.md +++ b/catatan_rilis.md @@ -23,3 +23,4 @@ Terimakasih [isi disini] yang telah berkontribusi langsung mengembangkan aplikas 6. [#1521](https://github.com/OpenSID/OpenDK/issues/1521) Fix WAF Blocking di datatables dengan ubah GET ke POST di Menu Data -> Kesehatan 7. [#1522](https://github.com/OpenSID/OpenDK/issues/1522) Fix WAF Blocking di datatables dengan ubah GET ke POST di Menu Data -> Pendidikan 8. [#1527](https://github.com/OpenSID/OpenDK/issues/1527) Fix WAF Blocking di datatables dengan ubah GET ke POST di Menu Pengaturan +9. [#1527](https://github.com/OpenSID/OpenDK/issues/1527) Fix WAF Blocking di datatables dengan ubah GET ke POST di Menu Admin SIKEMA -> Daftar Keluhan diff --git a/resources/views/backend/event/create.blade.php b/resources/views/backend/event/create.blade.php index 1c284ea4d..134d0e677 100644 --- a/resources/views/backend/event/create.blade.php +++ b/resources/views/backend/event/create.blade.php @@ -19,7 +19,7 @@ {!! html()->form('POST', route('informasi.event.store'))->id('form-event')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @include('layouts.fragments.error_message') diff --git a/resources/views/backend/event/form_edit.blade.php b/resources/views/backend/event/form_edit.blade.php index 0cf4b4493..7d5ceadd8 100644 --- a/resources/views/backend/event/form_edit.blade.php +++ b/resources/views/backend/event/form_edit.blade.php @@ -15,7 +15,7 @@
{!! html()->textarea('description', old('description', $event->description))->class('textarea my-editor')->placeholder('Deskripsi kegiatan')->style( 'width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: - 10px;', + 10px;', )->required() !!}
diff --git a/resources/views/backend/themes/import.blade.php b/resources/views/backend/themes/import.blade.php index 23596b171..9710287d5 100644 --- a/resources/views/backend/themes/import.blade.php +++ b/resources/views/backend/themes/import.blade.php @@ -20,7 +20,7 @@ {!! html()->form()->route('setting.themes.do-upload')->method('POST')->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles() !!}
diff --git a/resources/views/data/aki_akb/import.blade.php b/resources/views/data/aki_akb/import.blade.php index 545e66caf..fcfca4e14 100644 --- a/resources/views/data/aki_akb/import.blade.php +++ b/resources/views/data/aki_akb/import.blade.php @@ -20,7 +20,7 @@ {!! html()->form('POST', route('data.aki-akb.do_import'))->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/data/anggaran_desa/import.blade.php b/resources/views/data/anggaran_desa/import.blade.php index 99616152d..8149920af 100644 --- a/resources/views/data/anggaran_desa/import.blade.php +++ b/resources/views/data/anggaran_desa/import.blade.php @@ -20,7 +20,7 @@ {!! html()->form()->route('data.anggaran-desa.do_import')->method('POST')->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles() !!}
diff --git a/resources/views/data/anggaran_realisasi/import.blade.php b/resources/views/data/anggaran_realisasi/import.blade.php index e479421f3..247a264bb 100644 --- a/resources/views/data/anggaran_realisasi/import.blade.php +++ b/resources/views/data/anggaran_realisasi/import.blade.php @@ -20,7 +20,7 @@ {!! html()->form()->route('data.anggaran-realisasi.do_import')->method('POST')->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles() !!}
diff --git a/resources/views/data/data_desa/create.blade.php b/resources/views/data/data_desa/create.blade.php index d29b0e904..4877ee24b 100644 --- a/resources/views/data/data_desa/create.blade.php +++ b/resources/views/data/data_desa/create.blade.php @@ -19,7 +19,7 @@ {!! html()->form()->route('data.data-desa.store')->method('POST')->id('form-datadesa')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!}
diff --git a/resources/views/data/data_sarana/create.blade.php b/resources/views/data/data_sarana/create.blade.php index 4df05d938..bd900dd60 100644 --- a/resources/views/data/data_sarana/create.blade.php +++ b/resources/views/data/data_sarana/create.blade.php @@ -19,7 +19,7 @@ {!! html()->form('POST', route('data.data-sarana.store'))->id('form-sarana')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!}
diff --git a/resources/views/data/data_sarana/edit.blade.php b/resources/views/data/data_sarana/edit.blade.php index b4db0be6a..6d7a260b3 100644 --- a/resources/views/data/data_sarana/edit.blade.php +++ b/resources/views/data/data_sarana/edit.blade.php @@ -19,7 +19,7 @@ {!! html()->form('POST', route('data.data-sarana.update', $sarana->id))->id('form-sarana')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @method('PUT') diff --git a/resources/views/data/data_sarana/import.blade.php b/resources/views/data/data_sarana/import.blade.php index 0b1f98be1..bc78474ce 100644 --- a/resources/views/data/data_sarana/import.blade.php +++ b/resources/views/data/data_sarana/import.blade.php @@ -20,7 +20,7 @@ {!! html()->form('POST', route('data.data-sarana.import-excel'))->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/data/data_suplemen/create.blade.php b/resources/views/data/data_suplemen/create.blade.php index 83baf68f3..05f29e257 100644 --- a/resources/views/data/data_suplemen/create.blade.php +++ b/resources/views/data/data_suplemen/create.blade.php @@ -19,7 +19,7 @@ {!! html()->form('POST', route('data.data-suplemen.store'))->id('form-faq')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!}
diff --git a/resources/views/data/data_suplemen/form.blade.php b/resources/views/data/data_suplemen/form.blade.php index 8a54f5d00..a027c5fc3 100644 --- a/resources/views/data/data_suplemen/form.blade.php +++ b/resources/views/data/data_suplemen/form.blade.php @@ -18,8 +18,8 @@
{!! html()->textarea('keterangan')->class('textarea')->style( 'width: 100%; height: 200px; font-size: 14px; - line-height: 18px; border: 1px solid #dddddd; padding: - 10px;', + line-height: 18px; border: 1px solid #dddddd; padding: + 10px;', )->placeholder('Keterangan')->value(old('keterangan', isset($suplemen) ? $suplemen->keterangan : '')) !!}
diff --git a/resources/views/data/data_suplemen/form_detail.blade.php b/resources/views/data/data_suplemen/form_detail.blade.php index 061799b94..f04d6335c 100644 --- a/resources/views/data/data_suplemen/form_detail.blade.php +++ b/resources/views/data/data_suplemen/form_detail.blade.php @@ -56,7 +56,7 @@
diff --git a/resources/views/data/data_umum/form_edit.blade.php b/resources/views/data/data_umum/form_edit.blade.php index b22a627ae..3a43505c7 100644 --- a/resources/views/data/data_umum/form_edit.blade.php +++ b/resources/views/data/data_umum/form_edit.blade.php @@ -15,7 +15,7 @@
{!! html()->textarea('tipologi')->class( 'form-control - my-editor', + my-editor', )->placeholder('Tipologi')->rows(2)->value(old('tipologi', isset($data_umum) ? $data_umum->tipologi : '')) !!}
@@ -26,7 +26,7 @@
{!! html()->textarea('sejarah')->class( 'form-control - my-editor', + my-editor', )->placeholder('Sejarah')->rows(2)->value(old('sejarah', isset($data_umum) ? $data_umum->sejarah : '')) !!}
@@ -37,7 +37,7 @@
{!! html()->number('ketinggian')->class( 'form-control - text-right', + text-right', )->placeholder('0')->value(old('ketinggian', isset($data_umum) ? $data_umum->ketinggian : '')) !!}
@@ -53,7 +53,7 @@
{!! html()->number('luas_wilayah')->class( 'form-control - luas_wilayah text-right', + luas_wilayah text-right', )->placeholder('0')->value(old('luas_wilayah', isset($data_umum) ? $data_umum->luas_wilayah : '')) !!}
@@ -68,7 +68,7 @@
{!! html()->textarea('bts_wil_utara')->class('form-control')->placeholder( 'Batas - Utara', + Utara', )->rows(2)->value(old('bts_wil_utara', isset($data_umum) ? $data_umum->bts_wil_utara : '')) !!}
@@ -78,7 +78,7 @@
{!! html()->textarea('bts_wil_timur')->class('form-control')->placeholder( 'Batas - Timur', + Timur', )->rows(2)->value(old('bts_wil_timur', isset($data_umum) ? $data_umum->bts_wil_timur : '')) !!}
@@ -88,7 +88,7 @@
{!! html()->textarea('bts_wil_selatan')->class('form-control')->placeholder( 'Batas - Selatan', + Selatan', )->rows(2)->value(old('bts_wil_selatan', isset($data_umum) ? $data_umum->bts_wil_selatan : '')) !!}
@@ -98,7 +98,7 @@
{!! html()->textarea('bts_wil_barat')->class('form-control')->placeholder( 'Batas - Barat', + Barat', )->rows(2)->value(old('bts_wil_barat', isset($data_umum) ? $data_umum->bts_wil_barat : '')) !!}
@@ -113,7 +113,7 @@
{!! html()->number('jml_puskesmas')->class( 'form-control - text-right', + text-right', )->placeholder('0')->value(old('jml_puskesmas', isset($data_umum) ? $data_umum->jml_puskesmas : '')) !!}
@@ -124,7 +124,7 @@
{!! html()->number('jml_puskesmas_pembantu')->class( 'form-control - text-right', + text-right', )->placeholder('0')->value(old('jml_puskesmas_pembantu', isset($data_umum) ? $data_umum->jml_puskesmas_pembantu : '')) !!}
@@ -135,7 +135,7 @@
{!! html()->number('jml_posyandu')->class( 'form-control - text-right', + text-right', )->placeholder('0')->value(old('jml_posyandu', isset($data_umum) ? $data_umum->jml_posyandu : '')) !!}
@@ -146,7 +146,7 @@
{!! html()->number('jml_pondok_bersalin')->class( 'form-control - text-right', + text-right', )->placeholder('0')->value(old('jml_pondok_bersalin', isset($data_umum) ? $data_umum->jml_pondok_bersalin : '')) !!}
@@ -159,7 +159,7 @@
{!! html()->number('jml_paud')->class( 'form-control - text-right', + text-right', )->placeholder('0')->value(old('jml_paud', isset($data_umum) ? $data_umum->jml_paud : '')) !!}
@@ -196,7 +196,7 @@
{!! html()->number('jml_masjid_besar')->class( 'form-control - text-right', + text-right', )->placeholder('0')->value(old('jml_masjid_besar', isset($data_umum) ? $data_umum->jml_masjid_besar : '')) !!}
@@ -207,7 +207,7 @@
{!! html()->number('jml_mushola')->class( 'form-control - text-right', + text-right', )->placeholder('0')->value(old('jml_mushola', isset($data_umum) ? $data_umum->jml_mushola : '')) !!}
@@ -218,7 +218,7 @@
{!! html()->number('jml_gereja')->class( 'form-control - text-right', + text-right', )->placeholder('0')->value(old('jml_gereja', isset($data_umum) ? $data_umum->jml_gereja : '')) !!}
@@ -229,7 +229,7 @@
{!! html()->number('jml_pasar')->class( 'form-control - text-right', + text-right', )->placeholder('0')->value(old('jml_pasar', isset($data_umum) ? $data_umum->jml_pasar : '')) !!}
@@ -240,7 +240,7 @@
{!! html()->number('jml_balai_pertemuan')->class( 'form-control - text-right', + text-right', )->placeholder('0')->value(old('jml_balai_pertemuan', isset($data_umum) ? $data_umum->jml_balai_pertemuan : '')) !!}
diff --git a/resources/views/data/epidemi_penyakit/import.blade.php b/resources/views/data/epidemi_penyakit/import.blade.php index 1b1d57331..73b843226 100644 --- a/resources/views/data/epidemi_penyakit/import.blade.php +++ b/resources/views/data/epidemi_penyakit/import.blade.php @@ -20,7 +20,7 @@ {!! html()->form('POST', route('data.epidemi-penyakit.do_import'))->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/data/fasilitas_paud/import.blade.php b/resources/views/data/fasilitas_paud/import.blade.php index 79ba6cc50..74d959ab4 100644 --- a/resources/views/data/fasilitas_paud/import.blade.php +++ b/resources/views/data/fasilitas_paud/import.blade.php @@ -21,7 +21,7 @@ {!! html()->form('POST', route('data.fasilitas-paud.do_import'))->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/data/imunisasi/import.blade.php b/resources/views/data/imunisasi/import.blade.php index 409556802..007b69028 100644 --- a/resources/views/data/imunisasi/import.blade.php +++ b/resources/views/data/imunisasi/import.blade.php @@ -20,7 +20,7 @@ {!! html()->form()->route('data.imunisasi.do_import')->method('POST')->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/data/jabatan/create.blade.php b/resources/views/data/jabatan/create.blade.php index 3934ea047..1b19b67b7 100644 --- a/resources/views/data/jabatan/create.blade.php +++ b/resources/views/data/jabatan/create.blade.php @@ -19,7 +19,7 @@ {!! html()->form('POST', route('data.jabatan.store'))->id('form-jabatan')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @include('layouts.fragments.error_message') diff --git a/resources/views/data/jabatan/form.blade.php b/resources/views/data/jabatan/form.blade.php index 3b3536fbf..97fd6c2e7 100644 --- a/resources/views/data/jabatan/form.blade.php +++ b/resources/views/data/jabatan/form.blade.php @@ -11,7 +11,7 @@
{!! html()->textarea('tupoksi')->value(old('tupoksi', isset($jabatan) ? $jabatan->tupoksi : ''))->class('textarea')->placeholder('Tupoksi')->style('width: 100%; height: 200px; font-size: 14px; - line-height: 18px; border: 1px solid #dddddd; padding: 10px;') !!} + line-height: 18px; border: 1px solid #dddddd; padding: 10px;') !!}
diff --git a/resources/views/data/laporan-apbdes/import.blade.php b/resources/views/data/laporan-apbdes/import.blade.php index eddd0f01d..274be8db5 100644 --- a/resources/views/data/laporan-apbdes/import.blade.php +++ b/resources/views/data/laporan-apbdes/import.blade.php @@ -22,7 +22,7 @@ {!! html()->form('POST', route('data.laporan-apbdes.do_import'))->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/data/laporan-penduduk/import.blade.php b/resources/views/data/laporan-penduduk/import.blade.php index e400f60a4..0779ded70 100644 --- a/resources/views/data/laporan-penduduk/import.blade.php +++ b/resources/views/data/laporan-penduduk/import.blade.php @@ -22,7 +22,7 @@
{!! html()->form('POST', route('data.laporan-penduduk.do_import'))->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/data/lembaga/create.blade.php b/resources/views/data/lembaga/create.blade.php index 8f5591ebf..7d3cc390a 100644 --- a/resources/views/data/lembaga/create.blade.php +++ b/resources/views/data/lembaga/create.blade.php @@ -19,7 +19,7 @@ {!! html()->form('POST', route('data.lembaga.store'))->id('form-lembaga')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @include('layouts.fragments.error_message') diff --git a/resources/views/data/lembaga_anggota/form_create.blade.php b/resources/views/data/lembaga_anggota/form_create.blade.php index d9de009d8..c760bc2c5 100644 --- a/resources/views/data/lembaga_anggota/form_create.blade.php +++ b/resources/views/data/lembaga_anggota/form_create.blade.php @@ -13,7 +13,7 @@
{!! html()->select('penduduk_id', $pendudukList)->value(old('penduduk_id', isset($anggota) ? $anggota->penduduk_id : (isset($lembaga) ? $lembaga->penduduk_id : '')))->class( 'form-control - select2', + select2', )->placeholder('Pilih Nama Anggota')->required()->style('width:100%;') !!}
@@ -67,7 +67,7 @@
{!! html()->date('tgl_sk_pengangkatan', old('tgl_sk_pengangkatan'))->placeholder( 'Tanggal SK - Pengangkatan', + Pengangkatan', )->class('form-control') !!}
diff --git a/resources/views/data/lembaga_kategori/create.blade.php b/resources/views/data/lembaga_kategori/create.blade.php index abd81c913..a796e35c5 100644 --- a/resources/views/data/lembaga_kategori/create.blade.php +++ b/resources/views/data/lembaga_kategori/create.blade.php @@ -19,7 +19,7 @@ {!! html()->form('post')->route('data.kategori-lembaga.store')->id('form-kategori-lembaga')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @include('layouts.fragments.error_message') diff --git a/resources/views/data/penduduk/import.blade.php b/resources/views/data/penduduk/import.blade.php index 6868cbf97..6f8e0e008 100644 --- a/resources/views/data/penduduk/import.blade.php +++ b/resources/views/data/penduduk/import.blade.php @@ -20,7 +20,7 @@ {!! html()->form()->route('data.penduduk.import-excel')->method('POST')->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/data/pengurus/arsip.blade.php b/resources/views/data/pengurus/arsip.blade.php index 3e643d118..ab7660edb 100644 --- a/resources/views/data/pengurus/arsip.blade.php +++ b/resources/views/data/pengurus/arsip.blade.php @@ -43,7 +43,7 @@ {!! html()->form()->route('data.pengurus.store')->method('POST')->acceptsFiles()->id('form-pengurus')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @include('layouts.fragments.error_message') diff --git a/resources/views/data/pengurus/create_arsip.blade.php b/resources/views/data/pengurus/create_arsip.blade.php index 7fe979428..5af0f16c2 100644 --- a/resources/views/data/pengurus/create_arsip.blade.php +++ b/resources/views/data/pengurus/create_arsip.blade.php @@ -30,7 +30,7 @@ {!! html()->form()->route('data.pengurus.store.arsip')->method('POST')->acceptsFiles()->id('form-pengurus')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @include('layouts.fragments.error_message') diff --git a/resources/views/data/pengurus/edit.blade.php b/resources/views/data/pengurus/edit.blade.php index db9c45783..5cc8509c3 100644 --- a/resources/views/data/pengurus/edit.blade.php +++ b/resources/views/data/pengurus/edit.blade.php @@ -20,7 +20,7 @@ {!! html()->form('POST', route('data.pengurus.update', $pengurus->id))->acceptsFiles()->id('form-pengurus')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @include('layouts.fragments.error_message') diff --git a/resources/views/data/pengurus/edit_arsip.blade.php b/resources/views/data/pengurus/edit_arsip.blade.php index 1b4fd7573..1de21daf5 100644 --- a/resources/views/data/pengurus/edit_arsip.blade.php +++ b/resources/views/data/pengurus/edit_arsip.blade.php @@ -28,7 +28,7 @@ {!! html()->form('post')->route('data.pengurus.store.arsip')->acceptsFiles()->id('form-pengurus')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @include('layouts.fragments.error_message')
diff --git a/resources/views/data/pengurus/form_create_arsip.blade.php b/resources/views/data/pengurus/form_create_arsip.blade.php index 3c861c0ae..b024b8106 100644 --- a/resources/views/data/pengurus/form_create_arsip.blade.php +++ b/resources/views/data/pengurus/form_create_arsip.blade.php @@ -4,7 +4,7 @@
{!! html()->select('jenis_surat', \App\Models\JenisSurat::pluck('nama', 'id')->value(old('jenis_surat', isset($pengurus) ? $pengurus->jenis_surat : '')), null, [ 'placeholder' => 'Pilih - Jenis Dokumen', + Jenis Dokumen', 'class' => 'form-control', 'id' => 'jenis_dokumen_id', 'required' => true, @@ -19,7 +19,7 @@
{!! html()->text('judul_document')->class('form-control')->required()->placeholder( 'Judul - Document', + Document', )->value(old('judul_document', isset($pengurus) ? $pengurus->judul_document : '')) !!}
diff --git a/resources/views/data/pengurus/form_edit_arsip.blade.php b/resources/views/data/pengurus/form_edit_arsip.blade.php index 41922f887..b34f01582 100644 --- a/resources/views/data/pengurus/form_edit_arsip.blade.php +++ b/resources/views/data/pengurus/form_edit_arsip.blade.php @@ -23,7 +23,7 @@
{!! html()->text('judul_document')->class('form-control')->required()->placeholder( 'Judul - Document', + Document', )->value(old('judul_document', isset($pengurus) ? $pengurus->judul_document : '')) !!}
diff --git a/resources/views/data/profil/form_edit.blade.php b/resources/views/data/profil/form_edit.blade.php index 9e970e2d2..add6d44f7 100644 --- a/resources/views/data/profil/form_edit.blade.php +++ b/resources/views/data/profil/form_edit.blade.php @@ -150,7 +150,7 @@
{!! html()->textarea('sambutan', old('sambutan', $profil->sambutan ?? null))->class('textarea my-editor')->placeholder('Sambutan ' . $sebutan_kepala_wilayah . ' ' . $profil->nama_kecamatan)->style('width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; - padding: 10px;') !!} + padding: 10px;') !!}
@@ -163,14 +163,14 @@
{!! html()->textarea('visi', old('visi', $profil->visi ?? null))->class('textarea my-editor')->placeholder('Visi Kecamatan')->style('width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; - padding: 10px;') !!} + padding: 10px;') !!}
{!! html()->textarea('misi', old('misi', $profil->misi ?? null))->class('textarea my-editor')->placeholder('Misi Kecamatan')->style('width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; - padding: 10px;') !!} + padding: 10px;') !!}
diff --git a/resources/views/data/program_bantuan/import.blade.php b/resources/views/data/program_bantuan/import.blade.php index 146ecbd99..c3357b22a 100644 --- a/resources/views/data/program_bantuan/import.blade.php +++ b/resources/views/data/program_bantuan/import.blade.php @@ -20,7 +20,7 @@ {!! html()->form('POST', route('data.program-bantuan.do_import'))->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/data/putus_sekolah/import.blade.php b/resources/views/data/putus_sekolah/import.blade.php index a3f43bbad..5ecb48b3e 100644 --- a/resources/views/data/putus_sekolah/import.blade.php +++ b/resources/views/data/putus_sekolah/import.blade.php @@ -20,7 +20,7 @@ {!! html()->form()->route('data.putus-sekolah.do_import')->method('POST')->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/data/tingkat_pendidikan/import.blade.php b/resources/views/data/tingkat_pendidikan/import.blade.php index 956887f53..e92315c46 100644 --- a/resources/views/data/tingkat_pendidikan/import.blade.php +++ b/resources/views/data/tingkat_pendidikan/import.blade.php @@ -20,7 +20,7 @@ {!! html()->form('POST', route('data.tingkat-pendidikan.do_import'))->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/data/toilet_sanitasi/import.blade.php b/resources/views/data/toilet_sanitasi/import.blade.php index 9daf78b4d..e5ceadada 100644 --- a/resources/views/data/toilet_sanitasi/import.blade.php +++ b/resources/views/data/toilet_sanitasi/import.blade.php @@ -33,7 +33,7 @@ {!! html()->form('POST', route('data.toilet-sanitasi.do_import'))->id('form-import')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/informasi/artikel/_form.blade.php b/resources/views/informasi/artikel/_form.blade.php index c01f2c60a..ee197ba47 100644 --- a/resources/views/informasi/artikel/_form.blade.php +++ b/resources/views/informasi/artikel/_form.blade.php @@ -20,7 +20,7 @@ {!! html()->textarea('isi')->class('form-control my-editor')->placeholder('Isi Artikel')->style( 'width:100%; height:750px; font-size:14px; line-height:18px; border:1px solid #dddddd; - padding:10px;', + padding:10px;', )->value(old('isi', isset($artikel) ? $artikel->isi : '')) !!} @if ($errors->has('isi')) {{ $errors->first('isi') }} diff --git a/resources/views/informasi/artikel_kategori/create.blade.php b/resources/views/informasi/artikel_kategori/create.blade.php index f831d260b..4b28c8824 100644 --- a/resources/views/informasi/artikel_kategori/create.blade.php +++ b/resources/views/informasi/artikel_kategori/create.blade.php @@ -20,7 +20,7 @@ {!! html()->form('POST', route('informasi.artikel-kategori.store'))->id('form-artikel-kategori')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @include('layouts.fragments.error_message') diff --git a/resources/views/informasi/faq/create.blade.php b/resources/views/informasi/faq/create.blade.php index deab6bf0f..5f8861d2b 100644 --- a/resources/views/informasi/faq/create.blade.php +++ b/resources/views/informasi/faq/create.blade.php @@ -19,7 +19,7 @@ {!! html()->form('POST', route('informasi.faq.store'))->id('form-faq')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @include('layouts.fragments.error_message') diff --git a/resources/views/informasi/faq/form.blade.php b/resources/views/informasi/faq/form.blade.php index 1572d1944..7c07ec237 100644 --- a/resources/views/informasi/faq/form.blade.php +++ b/resources/views/informasi/faq/form.blade.php @@ -10,7 +10,7 @@
{{ html()->textarea('answer')->value(old('answer', $faq->answer ?? ''))->class('textarea my-editor')->placeholder('Jawaban')->style( 'width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: - 10px;', + 10px;', )->required() }}
diff --git a/resources/views/informasi/form_dokumen/create.blade.php b/resources/views/informasi/form_dokumen/create.blade.php index aacdd98f2..2df0bd27b 100644 --- a/resources/views/informasi/form_dokumen/create.blade.php +++ b/resources/views/informasi/form_dokumen/create.blade.php @@ -21,7 +21,7 @@ {!! html()->form('POST', route('informasi.form-dokumen.store'))->acceptsFiles()->id('form-dokumen')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @if (count($errors) > 0) diff --git a/resources/views/informasi/media_sosial/create.blade.php b/resources/views/informasi/media_sosial/create.blade.php index 00c14b9fb..a8ce27f6f 100644 --- a/resources/views/informasi/media_sosial/create.blade.php +++ b/resources/views/informasi/media_sosial/create.blade.php @@ -19,7 +19,7 @@ {!! html()->form('POST', route('informasi.media-sosial.store'))->acceptsFiles()->id('form-media-sosial')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!}
diff --git a/resources/views/informasi/potensi/create.blade.php b/resources/views/informasi/potensi/create.blade.php index 4e41cce0b..4611c2c7f 100644 --- a/resources/views/informasi/potensi/create.blade.php +++ b/resources/views/informasi/potensi/create.blade.php @@ -21,7 +21,7 @@ {!! html()->form('POST', route('informasi.potensi.store'))->acceptsFiles()->id('form-potensi')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @if (count($errors) > 0) diff --git a/resources/views/informasi/prosedur/create.blade.php b/resources/views/informasi/prosedur/create.blade.php index ea08b0141..1413c9bad 100644 --- a/resources/views/informasi/prosedur/create.blade.php +++ b/resources/views/informasi/prosedur/create.blade.php @@ -21,7 +21,7 @@ {!! html()->form('POST', route('informasi.prosedur.store'))->acceptsFiles()->id('form-prosedur')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!} @if (count($errors) > 0) diff --git a/resources/views/informasi/regulasi/create.blade.php b/resources/views/informasi/regulasi/create.blade.php index 026ebf994..a98693079 100644 --- a/resources/views/informasi/regulasi/create.blade.php +++ b/resources/views/informasi/regulasi/create.blade.php @@ -19,7 +19,7 @@ {!! html()->form('POST', route('informasi.regulasi.store'))->id('form-regulasi')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/informasi/sinergi_program/create.blade.php b/resources/views/informasi/sinergi_program/create.blade.php index 21889737a..2d7abf75f 100644 --- a/resources/views/informasi/sinergi_program/create.blade.php +++ b/resources/views/informasi/sinergi_program/create.blade.php @@ -19,7 +19,7 @@ {!! html()->form('POST', route('informasi.sinergi-program.store'))->acceptsFiles()->id('form-sinergi-program')->class( 'form-horizontal - form-label-left', + form-label-left', )->open() !!}
diff --git a/resources/views/informasi/sinergi_program/edit.blade.php b/resources/views/informasi/sinergi_program/edit.blade.php index 0022aac6f..ef91a251b 100644 --- a/resources/views/informasi/sinergi_program/edit.blade.php +++ b/resources/views/informasi/sinergi_program/edit.blade.php @@ -32,7 +32,7 @@ {!! html()->form('PUT', route('informasi.sinergi-program.update', $sinergi->id))->id('form-sinergi-program')->class( 'form-horizontal - form-label-left', + form-label-left', )->acceptsFiles()->open() !!}
diff --git a/resources/views/pesan/masuk/index.blade.php b/resources/views/pesan/masuk/index.blade.php index e33675e67..74077e04c 100644 --- a/resources/views/pesan/masuk/index.blade.php +++ b/resources/views/pesan/masuk/index.blade.php @@ -46,7 +46,7 @@ {!! html()->form('POST', route('pesan.arsip.multiple'))->class( 'form-group - inline', + inline', )->id('form-multiple-arsip-pesan')->open() !!} {!! html()->hidden('array_id')->id('array_multiple_id_arsip') !!} @@ -54,7 +54,7 @@ {!! html()->form('POST', route('pesan.read.multiple'))->class( 'form-group - inline', + inline', )->id('form-multiple-read-pesan')->open() !!} {!! html()->hidden('array_id')->id('array_multiple_id') !!} diff --git a/resources/views/pesan/read_pesan.blade.php b/resources/views/pesan/read_pesan.blade.php index 8d584b058..4e40ca94b 100644 --- a/resources/views/pesan/read_pesan.blade.php +++ b/resources/views/pesan/read_pesan.blade.php @@ -28,7 +28,7 @@ @if ($pesan->diarsipkan === 0) {!! html()->form('POST', route('pesan.arsip.post'))->class( 'form-group - inline', + inline', )->id('form-arisp-pesan')->open() !!} {!! html()->hidden('id', $pesan->id) !!} @@ -77,11 +77,11 @@ diff --git a/resources/views/setting/aplikasi/form.blade.php b/resources/views/setting/aplikasi/form.blade.php index 04e9cb4cb..8cc4595c7 100644 --- a/resources/views/setting/aplikasi/form.blade.php +++ b/resources/views/setting/aplikasi/form.blade.php @@ -28,7 +28,7 @@ {!! html()->select('value', [ 'OpenStreetMap' => 'OpenStreetMap', 'OpenStreetMap H.O.T.' => 'OpenStreetMap - H.O.T.', + H.O.T.', 'Mapbox Streets' => 'Mapbox Streets', 'Mapbox Satellite' => 'Mapbox Satellite', 'Mapbox Satellite-Streets' => 'Mapbox Satellite-Streets', diff --git a/resources/views/setting/slide/form.blade.php b/resources/views/setting/slide/form.blade.php index 37c5766a2..131016a11 100644 --- a/resources/views/setting/slide/form.blade.php +++ b/resources/views/setting/slide/form.blade.php @@ -9,7 +9,7 @@
{!! html()->textarea('deskripsi')->class('textarea')->style( 'width: 100%; height: 200px; font-size: 14px; - line-height: 18px; border: 1px solid #dddddd; padding: 10px;', + line-height: 18px; border: 1px solid #dddddd; padding: 10px;', )->placeholder('deskripsi')->value(old('deskripsi', isset($slide) ? $slide->deskripsi : '')) !!}
diff --git a/resources/views/sistem_komplain/index.blade.php b/resources/views/sistem_komplain/index.blade.php index bfe3853fc..b7cab01e9 100644 --- a/resources/views/sistem_komplain/index.blade.php +++ b/resources/views/sistem_komplain/index.blade.php @@ -44,7 +44,10 @@ var data = $('#komplain-table').DataTable({ processing: true, serverSide: true, - ajax: "{!! route('admin-komplain.getdata') !!}", + ajax: { + url: "{!! route('admin-komplain.getdata') !!}", + type: "POST" + }, columns: [{ data: 'aksi', name: 'aksi', diff --git a/routes/web.php b/routes/web.php index 854c294a6..174b4e82c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -795,7 +795,7 @@ // Admin SIKEMA Route::group(['prefix' => 'admin-komplain', 'middleware' => ['action_permission:access.admin_komplain']], function () { Route::get('/', ['as' => 'admin-komplain.index', 'uses' => 'AdminKomplainController@index']); - Route::get('getdata', ['as' => 'admin-komplain.getdata', 'uses' => 'AdminKomplainController@getDataKomplain']); + Route::match(['GET', 'POST'], 'getdata', ['as' => 'admin-komplain.getdata', 'uses' => 'AdminKomplainController@getDataKomplain']); Route::get('edit/{id}', ['as' => 'admin-komplain.edit', 'uses' => 'AdminKomplainController@edit']); Route::put('update/{id}', ['as' => 'admin-komplain.update', 'uses' => 'AdminKomplainController@update']); Route::delete('destroy/{id}', ['as' => 'admin-komplain.destroy', 'uses' => 'AdminKomplainController@destroy']); diff --git a/tests/Feature/Settings/SikemaDataTablesPostTest.php b/tests/Feature/Settings/SikemaDataTablesPostTest.php new file mode 100644 index 000000000..efe465d0f --- /dev/null +++ b/tests/Feature/Settings/SikemaDataTablesPostTest.php @@ -0,0 +1,147 @@ + 'XMLHttpRequest']; + +function sikemaDatatablePostPayload(array $extra = []): array +{ + return array_merge([ + 'draw' => 1, + 'start' => 0, + 'length' => 10, + 'search' => ['value' => '', 'regex' => 'false'], + 'columns[0][data]' => 'aksi', + 'columns[0][name]' => 'aksi', + 'columns[0][searchable]' => 'false', + 'columns[0][orderable]' => 'false', + 'columns[0][search][value]' => '', + 'order[0][column]' => '1', + 'order[0][dir]' => 'asc', + ], $extra); +} + +beforeEach(function () { + $this->withoutMiddleware([ + Authenticate::class, + RoleMiddleware::class, + PermissionMiddleware::class, + CompleteProfile::class, + GlobalShareMiddleware::class, + ]); +}); + +describe('DataTables Admin SIKEMA Daftar Keluhan via POST', function () { + + test('endpoint getdata menerima POST dan mengembalikan struktur DataTables', function () { + $kategori = KategoriKomplain::create(['nama' => 'Infrastruktur']); + Komplain::factory()->create([ + 'kategori' => $kategori->id, + 'judul' => 'Keluhan Test POST', + ]); + + $response = $this->postJson( + route('admin-komplain.getdata'), + sikemaDatatablePostPayload(), + SIKEMA_AJAX_HEADERS + ); + + $response->assertStatus(200); + $response->assertJsonStructure([ + 'draw', + 'recordsTotal', + 'recordsFiltered', + 'data', + ]); + }); + + test('POST ke getdata mengembalikan kolom yang diharapkan', function () { + $kategori = KategoriKomplain::create(['nama' => 'Infrastruktur']); + Komplain::factory()->create([ + 'kategori' => $kategori->id, + 'judul' => 'Keluhan Kolom Test', + ]); + + $response = $this->postJson( + route('admin-komplain.getdata'), + sikemaDatatablePostPayload(), + SIKEMA_AJAX_HEADERS + ); + + $response->assertStatus(200); + $data = $response->json('data'); + $this->assertNotEmpty($data); + + $firstRow = $data[0]; + $this->assertArrayHasKey('judul', $firstRow); + $this->assertArrayHasKey('nama', $firstRow); + $this->assertArrayHasKey('kategori', $firstRow); + $this->assertArrayHasKey('status', $firstRow); + $this->assertArrayHasKey('anonim', $firstRow); + $this->assertArrayHasKey('aksi', $firstRow); + }); + + test('GET pada getdata masih berfungsi (backward-compatible)', function () { + $response = $this->getJson( + route('admin-komplain.getdata'), + SIKEMA_AJAX_HEADERS + ); + + $response->assertStatus(200); + $response->assertJsonStructure(['draw', 'recordsTotal', 'recordsFiltered', 'data']); + }); + + test('POST dengan draw parameter dikembalikan kembali dalam response', function () { + $response = $this->postJson( + route('admin-komplain.getdata'), + sikemaDatatablePostPayload(['draw' => 5]), + SIKEMA_AJAX_HEADERS + ); + + $response->assertStatus(200); + $response->assertJsonPath('draw', 5); + }); +});