Added button 'Antrag jetzt bearbeiten' to 'Antrag anlegen'

The button 'Antrag jetzt bearbeiten' will appear right after creating
a new application, so that the user can directly open the new application
in a new tab.
The button disappears when selecting a new student again.

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2021-05-05 16:35:09 +02:00
committed by cris-technikum
parent 563c0cea58
commit 842651e676
5 changed files with 46 additions and 6 deletions
@@ -166,8 +166,13 @@ class CreateAnrechnung extends Auth_Controller
$this->terminateWithJsonError(getError($result));
}
$lastInsert_anrechnung_id = getData($result);
// Success response to AJAX
$this->outputJsonSuccess($this->p->t('global', 'antragWurdeAngelegt'));
$this->outputJsonSuccess(array(
'anrechnung_id' => $lastInsert_anrechnung_id,
'msg' => $this->p->t('global', 'antragWurdeAngelegt')
));
}