Feat: Reusable download Proof Button
This commit is contained in:
@@ -33,6 +33,12 @@
|
||||
idsInput.value = JSON.stringify(selectedIds);
|
||||
form.appendChild(idsInput);
|
||||
|
||||
const modelInput = document.createElement('input');
|
||||
modelInput.type = 'hidden';
|
||||
modelInput.name = 'model';
|
||||
modelInput.value = "{{ $model ?? 'ActivitiesAttended' }}";
|
||||
form.appendChild(modelInput);
|
||||
|
||||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
} else {
|
||||
@@ -49,4 +55,4 @@
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user