update
parent
66f8b98f66
commit
cbd6d5d444
|
|
@ -125,7 +125,7 @@
|
||||||
$('#metadataContent').hide();
|
$('#metadataContent').hide();
|
||||||
$('#isLoadMetadata').show();
|
$('#isLoadMetadata').show();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '{{ route('modules.form.metadata.index', ['form_id' => $instansi === 'all' ? 0 : $activityForm->id ?? 0]) }}',
|
url: '{{ route('modules.form.metadata.index', ['form_id' => @$instansi === 'all' ? 0 : @$activityForm->id ?? 0]) }}',
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
$('#metadataContent').html(data);
|
$('#metadataContent').html(data);
|
||||||
|
|
@ -149,7 +149,7 @@
|
||||||
$('#formContent').hide();
|
$('#formContent').hide();
|
||||||
$('#isLoadForm').show();
|
$('#isLoadForm').show();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '{{ route('modules.form.create', ['sector' => $form->sector, 'code' => $form->code]) }}',
|
url: '{{ route('modules.form.create', ['sector' => @$form->sector, 'code' => @$form->code]) }}',
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
$('#formContent').html(data);
|
$('#formContent').html(data);
|
||||||
|
|
@ -180,7 +180,7 @@
|
||||||
scrollX: true,
|
scrollX: true,
|
||||||
searchDelay: 1000,
|
searchDelay: 1000,
|
||||||
ajax: {
|
ajax: {
|
||||||
url: '{{ route('modules.form.aktivitasUser', ['form_id' => $instansi === 'all' ? 0 : $activityForm->id ?? 0]) }}',
|
url: '{{ route('modules.form.aktivitasUser', ['form_id' => @$instansi === 'all' ? 0 : @$activityForm->id ?? 0]) }}',
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataSrc: 'data'
|
dataSrc: 'data'
|
||||||
},
|
},
|
||||||
|
|
@ -220,7 +220,7 @@
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '{{ route('modules.form.metadata.destroy', ':id') }}'.replace(':id', metadataId),
|
url: '{{ route("modules.form.metadata.destroy", "":id") }}'.replace(':id', metadataId),
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: {
|
data: {
|
||||||
_token: '{{ csrf_token() }}',
|
_token: '{{ csrf_token() }}',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue