main
Ilham Wara Nugroho 2026-06-22 10:38:02 +07:00
parent 82871f4b7a
commit 3adec45cde
2 changed files with 35 additions and 5 deletions

View File

@ -177,6 +177,34 @@
$('.btn-filter').on('click',function(){ $('.btn-filter').on('click',function(){
$('#filter').toggleClass('d-none'); $('#filter').toggleClass('d-none');
}); });
$('.btn.export').on('click',function{
request = $.ajax({
url: base_url,
xhrFields: {
withCredentials: true
},
type: "GET",
});
// Callback handler that will be called on success
request.done(function(response, textStatus, jqXHR){
console.log(response);
toastr.success("Berhasil Login", 'Berhasil!', {positionClass: 'toast-bottom-right', containerId: 'toast-bottom-right'});
window.location.href = '{{url("/kuesioner")}}';
history.pushState(null, null, location.href);
window.onpopstate = function () {
history.go(1);
};
});
// Callback handler that will be called on failure
request.fail(function (jqXHR, textStatus, errorThrown){
toastr.error(
"Gagal "+textStatus, errorThrown
);
});
});
$(function() { $(function() {
$ok.click(function() { $ok.click(function() {
$table.bootstrapTable('refresh'); $table.bootstrapTable('refresh');

View File

@ -244,11 +244,13 @@
{!! formKriteria(1,$sekolah->MsSekolahId,'kota',tahunKuesioner($kuesioner->KuesionerId)) !!} {!! formKriteria(1,$sekolah->MsSekolahId,'kota',tahunKuesioner($kuesioner->KuesionerId)) !!}
</div> </div>
</div> </div>
@if(session('group_id') == 6) @if(now()->gte($target))
@if(@$kuesioner->status < 4) @if(session('group_id') == 6)
<div class="col-md-12 mt-3"> @if(@$kuesioner->status < 4)
{{-- <button id="btnSave" class="btn btn-success"><i class="fal fa-save"></i>&nbsp;Simpan Data</button> --}} <div class="col-md-12 mt-3">
</div> <button id="btnSave" class="btn btn-success"><i class="fal fa-save"></i>&nbsp;Simpan Data</button>
</div>
@endif
@endif @endif
@endif @endif
</div> </div>