update
parent
82871f4b7a
commit
3adec45cde
|
|
@ -177,6 +177,34 @@
|
|||
$('.btn-filter').on('click',function(){
|
||||
$('#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() {
|
||||
$ok.click(function() {
|
||||
$table.bootstrapTable('refresh');
|
||||
|
|
|
|||
|
|
@ -244,13 +244,15 @@
|
|||
{!! formKriteria(1,$sekolah->MsSekolahId,'kota',tahunKuesioner($kuesioner->KuesionerId)) !!}
|
||||
</div>
|
||||
</div>
|
||||
@if(now()->gte($target))
|
||||
@if(session('group_id') == 6)
|
||||
@if(@$kuesioner->status < 4)
|
||||
<div class="col-md-12 mt-3">
|
||||
{{-- <button id="btnSave" class="btn btn-success"><i class="fal fa-save"></i> Simpan Data</button> --}}
|
||||
<button id="btnSave" class="btn btn-success"><i class="fal fa-save"></i> Simpan Data</button>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue