2023-10-17 21:53:51 +02:00
|
|
|
<?php
|
|
|
|
echo $this->element('genericElements/Form/genericForm', array(
|
|
|
|
'form' => $this->Form,
|
|
|
|
'data' => array(
|
|
|
|
'title' => __('Send report to LLM'),
|
|
|
|
'model' => 'EventReport',
|
|
|
|
'submit' => array(
|
|
|
|
'action' => $this->request->params['action'],
|
|
|
|
'ajaxSubmit' => 'confirmSubmissionToLLM()'
|
|
|
|
),
|
|
|
|
)
|
|
|
|
));
|
|
|
|
?>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function confirmSubmissionToLLM() {
|
|
|
|
submitGenericFormInPlace(function(data) {
|
2023-10-18 16:45:50 +02:00
|
|
|
window.location.reload();
|
|
|
|
});
|
2023-10-17 21:53:51 +02:00
|
|
|
}
|
|
|
|
</script>
|