update Phrases Status

This commit is contained in:
ma0068
2024-04-02 09:22:59 +02:00
parent 2d88ee031c
commit ab3c631030
4 changed files with 50 additions and 13 deletions
@@ -26,7 +26,7 @@ class Status extends FHCAPI_Controller
// Load language phrases
$this->loadPhrases([
'ui', 'bismeldestichtag','lehre'
'ui', 'bismeldestichtag','lehre','studierendenantrag'
]);
}
@@ -659,7 +659,7 @@ class Status extends FHCAPI_Controller
}
if (!hasData($result))
{
return $this->terminateWithError($this->p->t('studierendenantrag','error_no_student_for_prestudent'), self::ERROR_TYPE_GENERAL);
return $this->terminateWithError($this->p->t('studierendenantrag','error_no_student_for_prestudent',['prestudent_id' => $prestudent_id]), self::ERROR_TYPE_GENERAL);
}
$student_uid = $result->retval;
@@ -1070,7 +1070,7 @@ class Status extends FHCAPI_Controller
}
if (!hasData($result))
{
$this->terminateWithError($this->p->t('lehre','error_no_student_for_prestudent'), self::ERROR_TYPE_GENERAL);
$this->terminateWithError($this->p->t('studierendenantrag','error_no_student_for_prestudent',['prestudent_id' => $prestudent_id]), self::ERROR_TYPE_GENERAL);
}
$student_uid = $result->retval;
@@ -1236,7 +1236,7 @@ class Status extends FHCAPI_Controller
}
if (!hasData($result))
{
$this->terminateWithError($this->p->t('lehre','error_no_student_for_prestudent'), self::ERROR_TYPE_GENERAL);
$this->terminateWithError($this->p->t('studierendenantrag','error_no_student_for_prestudent', ['prestudent_id' => $prestudent_id]), self::ERROR_TYPE_GENERAL);
}
$student_uid = $result->retval;
@@ -103,7 +103,7 @@ export default {
this.$refs.form
.post('api/frontend/v1/stv/prestudent/updatePrestudent/' + this.modelValue.prestudent_id, this.deltaArray)
.then(response => {
this.$fhcAlert.alertSuccess('Speichern erfolgreich');
this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSave'));
this.deltaArray = [];
this.actionUpdate = false;
})
@@ -299,7 +299,7 @@ export default{
this.$fhcApi.post('api/frontend/v1/stv/status/addNewStatus/' + this.prestudent_id,
this.statusData
).then(response => {
this.$fhcAlert.alertSuccess('Speichern erfolgreich');
this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSave'));
this.hideModal('newStatusModal');
this.resetModal();
}).catch(this.$fhcAlert.handleSystemError)
@@ -316,7 +316,7 @@ export default{
this.statusId.ausbildungssemester)
.then(
result => {
this.$fhcAlert.alertSuccess('Vorrückung Status erfolgreich');
this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successAdvance'));
})
.catch(this.$fhcAlert.handleSystemError)
.finally(() => {
@@ -332,7 +332,7 @@ export default{
this.statusId.ausbildungssemester)
.then(
result => {
this.$fhcAlert.alertSuccess('Bestätigung Status erfolgreich');
this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successConfirm'));
})
.catch(this.$fhcAlert.handleSystemError)
.finally(() => {
@@ -345,7 +345,7 @@ export default{
status_id)
.then(
result => {
this.$fhcAlert.alertSuccess('Löschen erfolgreich');
this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successDelete'));
this.hideModal('deleteStatusModal');
this.resetModal();
})
@@ -364,9 +364,9 @@ export default{
this.statusData)
.then(
result => {
this.$fhcAlert.alertSuccess('Bearbeitung Status erfolgreich');
this.hideModal('editStatusModal');
this.resetModal();
this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSave'));
this.hideModal('editStatusModal');
this.resetModal();
})
.catch(this.$fhcAlert.handleSystemError)
.finally(() => {
+38 -1
View File
@@ -26247,7 +26247,44 @@ array(
)
)
),
array(
'app' => 'core',
'category' => 'ui',
'phrase' => 'successAdvance',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Vorrückung Status erfolgreich',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Advance status successful',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'ui',
'phrase' => 'successConfirm',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Bestätigung Status erfolgreich',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Confirmation status successful',
'description' => '',
'insertvon' => 'system'
)
)
),
);