Compare commits
2 Commits
0fe6d3c3df
...
02f28c00b2
| Author | SHA1 | Date |
|---|---|---|
|
|
02f28c00b2 | |
|
|
468afe8608 |
|
|
@ -230,7 +230,7 @@ if(isset($history->data->submissions) && is_iterable($history->data->submissions
|
||||||
|
|
||||||
@if(strtolower($row['status']) == 'approved')
|
@if(strtolower($row['status']) == 'approved')
|
||||||
|
|
||||||
<a href="/form/downloadpersonalized/{{ $row['submission_id'] }}"
|
<a href="/form/downloadpersonalization/{{ $row['submission_id'] }}"
|
||||||
class="btn btn-success btn-sm">
|
class="btn btn-success btn-sm">
|
||||||
Download
|
Download
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -427,6 +427,64 @@ if(isset($history->data->submissions) && is_iterable($history->data->submissions
|
||||||
// },
|
// },
|
||||||
// });
|
// });
|
||||||
// });
|
// });
|
||||||
|
$('#image-form').on('submit', function(event){
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
$("#pageloader").fadeIn();
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
|
||||||
|
type: "POST",
|
||||||
|
|
||||||
|
|
||||||
|
url: '/form/submitpersonalizedimages',
|
||||||
|
|
||||||
|
data: new FormData($('#image-form')[0]),
|
||||||
|
|
||||||
|
processData: false,
|
||||||
|
|
||||||
|
contentType: false,
|
||||||
|
|
||||||
|
success: function(data){
|
||||||
|
|
||||||
|
$("#pageloader").fadeOut();
|
||||||
|
|
||||||
|
Swal.fire({
|
||||||
|
|
||||||
|
icon: 'success',
|
||||||
|
|
||||||
|
title: 'Request Submitted',
|
||||||
|
|
||||||
|
text: 'Request has been sent to manager for approval.'
|
||||||
|
|
||||||
|
}).then(function(){
|
||||||
|
|
||||||
|
location.reload();
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
error:function(){
|
||||||
|
|
||||||
|
$("#pageloader").fadeOut();
|
||||||
|
|
||||||
|
Swal.fire({
|
||||||
|
|
||||||
|
icon:'error',
|
||||||
|
|
||||||
|
title:'Error',
|
||||||
|
|
||||||
|
text:'Something went wrong.'
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
Loading…
Reference in New Issue