Feat: Reusable download Proof Button

This commit is contained in:
Sallu9007
2025-05-13 19:11:13 +05:30
parent 124e629f4a
commit 17ebb87bb7
5 changed files with 56 additions and 23 deletions

View File

@@ -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>