fix: changes to access for the details page on verification status

main-dlh
Regiaaaaaa 2025-11-28 15:36:12 +07:00
parent 0fc78b8d4c
commit dd87595ee1
2 changed files with 25 additions and 15 deletions

View File

@ -32,9 +32,7 @@ namespace BpsRwApp.Controllers
? "<div class='badge badge-success badge-soft rounded-full'>Verifikasi</div>" ? "<div class='badge badge-success badge-soft rounded-full'>Verifikasi</div>"
: "<div class='badge badge-error badge-soft rounded-full'>Belum Verifikasi</div>"; : "<div class='badge badge-error badge-soft rounded-full'>Belum Verifikasi</div>";
var aksi = sudahDiverifikasi var aksi = $"<a href='/ChecklistHarian/Detail?tanggal={tanggal:yyyy-MM-dd}' class='btn bg-white rounded-full btn-sm'>Detail</a>";
? $"<a href='/ChecklistHarian/Detail?tanggal={tanggal:yyyy-MM-dd}' class='btn bg-white rounded-full btn-sm'>Detail</a>"
: $"<a href='#' onclick='return false;' class='btn bg-white rounded-full btn-sm'>Detail</a>";
return new return new
{ {

View File

@ -56,10 +56,10 @@
<th class="w-[5%] text-gray-600 font-medium">No</th> <th class="w-[5%] text-gray-600 font-medium">No</th>
<th class="w-[30%] text-gray-600 font-medium">Alamat Rumah</th> <th class="w-[30%] text-gray-600 font-medium">Alamat Rumah</th>
<th class="w-[8%] text-gray-600 font-medium">RW</th> <th class="w-[8%] text-gray-600 font-medium">RW</th>
<th class="w-[12%] text-gray-600 font-medium">Mudah Terurai</th> <th class="w-[12%] text-gray-600 font-medium text-center">Mudah Terurai</th>
<th class="w-[12%] text-gray-600 font-medium">Material Daur</th> <th class="w-[12%] text-gray-600 font-medium text-center">Material Daur</th>
<th class="w-[8%] text-gray-600 font-medium">B3</th> <th class="w-[8%] text-gray-600 font-medium text-center">B3</th>
<th class="w-[12%] text-gray-600 font-medium">Residu</th> <th class="w-[12%] text-gray-600 font-medium text-center">Residu</th>
</tr> </tr>
</thead> </thead>
<tbody></tbody> <tbody></tbody>
@ -82,25 +82,37 @@
$('div.dt-scroll-body thead').css('visibility', 'collapse'); $('div.dt-scroll-body thead').css('visibility', 'collapse');
}, },
columns: [ columns: [
{ data: 'no' }, {
{ data: 'alamat_rumah' }, data: 'no',
{ data: 'rw' }, className: '!align-middle'
},
{
data: 'alamat_rumah',
className: '!align-middle'
},
{
data: 'rw',
className: '!align-middle'
},
{ {
data: 'mudah_terurai', data: 'mudah_terurai',
render: (value) => value ? '<input type="checkbox" checked="checked" class="checkbox checkbox-success checked:text-white" />' : '<input type="checkbox" class="checkbox" />' className: '!align-middle !text-center',
render: (value) => value ? '<input type="checkbox" checked="checked" class="checkbox checkbox-success checked:text-white" disabled />' : '<input type="checkbox" class="checkbox" disabled />'
}, },
{ {
data: 'material_daur', data: 'material_daur',
render: (value) => value ? '<input type="checkbox" checked="checked" class="checkbox checkbox-success checked:text-white" />' : '<input type="checkbox" class="checkbox" />' className: '!align-middle !text-center',
render: (value) => value ? '<input type="checkbox" checked="checked" class="checkbox checkbox-success checked:text-white" disabled />' : '<input type="checkbox" class="checkbox" disabled />'
}, },
{ {
data: 'b3', data: 'b3',
render: (value) => value ? '<input type="checkbox" checked="checked" class="checkbox checkbox-success checked:text-white" />' : '<input type="checkbox" class="checkbox" />' className: '!align-middle !text-center',
render: (value) => value ? '<input type="checkbox" checked="checked" class="checkbox checkbox-success checked:text-white" disabled />' : '<input type="checkbox" class="checkbox" disabled />'
}, },
{ {
data: 'residu', data: 'residu',
render: (value) => value ? '<input type="checkbox" checked="checked" class="checkbox checkbox-success checked:text-white" />' : '<input type="checkbox" class="checkbox" />' className: '!align-middle !text-center',
render: (value) => value ? '<input type="checkbox" checked="checked" class="checkbox checkbox-success checked:text-white" disabled />' : '<input type="checkbox" class="checkbox" disabled />'
} }
] ]
}); });