mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
Validation: Modal AskForAusbildungssemester
This commit is contained in:
@@ -135,6 +135,18 @@ class Status extends FHCAPI_Controller
|
||||
$bestaetigtvon = $uid;
|
||||
$name = $this->input->post('name');
|
||||
|
||||
|
||||
|
||||
//Form Validation
|
||||
$this->load->library('form_validation');
|
||||
|
||||
$this->form_validation->set_rules('ausbildungssemester', 'Ausbildungssemester', 'integer', [
|
||||
'integer' => $this->p->t('ui', 'error_fieldNotInteger', ['field' => 'Ausbildungssemester'])
|
||||
]);
|
||||
|
||||
if (!$this->form_validation->run())
|
||||
$this->terminateWithValidationErrors($this->form_validation->error_array());
|
||||
|
||||
//GET lastStatus
|
||||
$result = $this->PrestudentstatusModel->getLastStatus($prestudent_id);
|
||||
|
||||
|
||||
@@ -937,10 +937,12 @@ export default{
|
||||
<template #title>{{$p.t('lehre', 'status_edit')}}</template>
|
||||
<template #default>
|
||||
<div v-if="prestudentIds.length == 1">
|
||||
<p>In welches Semester soll dieser {{actionStatusText}} verschoben werden?</p>
|
||||
<p>
|
||||
{{$p.t('lehre', 'modal_askAusbildungssem', { status: actionStatusText })}}</p>
|
||||
</div>
|
||||
<div v-else>
|
||||
<p>In welches Semester sollen diese {{prestudentIds.length}} {{actionStatusText}}en verschoben werden?</p>
|
||||
<p>
|
||||
{{$p.t('lehre', 'modal_askAusbildungssemPlural', { count: prestudentIds.length })}}</p>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
@@ -950,6 +952,7 @@ export default{
|
||||
type="text"
|
||||
name="studiensemester"
|
||||
v-model="actionSem"
|
||||
maxlength="2"
|
||||
>
|
||||
</form-input>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user