diff --git a/application/controllers/lehre/anrechnung/RequestAnrechnung.php b/application/controllers/lehre/anrechnung/RequestAnrechnung.php index f9ed03007..024e080d7 100644 --- a/application/controllers/lehre/anrechnung/RequestAnrechnung.php +++ b/application/controllers/lehre/anrechnung/RequestAnrechnung.php @@ -106,6 +106,7 @@ class requestAnrechnung extends Auth_Controller $begruendung_id = $this->input->post('begruendung'); $lehrveranstaltung_id = $this->input->post('lv_id'); $studiensemester_kurzbz = $this->input->post('studiensemester'); + $bestaetigung = $this->input->post('bestaetigung'); // Validate data if (empty($_FILES['uploadfile']['name'])) @@ -121,6 +122,11 @@ class requestAnrechnung extends Auth_Controller return $this->outputJsonError($this->p->t('ui', 'errorFelderFehlen')); } + if (isEmptyString($bestaetigung)) + { + return $this->outputJsonError($this->p->t('ui', 'errorBestaetigungFehlt')); + } + // Exit if user is not a student $result = $this->StudentModel->load(array('student_uid' => $this->_uid)); diff --git a/application/views/lehre/anrechnung/requestAnrechnung.php b/application/views/lehre/anrechnung/requestAnrechnung.php index d0557977f..94a856736 100644 --- a/application/views/lehre/anrechnung/requestAnrechnung.php +++ b/application/views/lehre/anrechnung/requestAnrechnung.php @@ -23,7 +23,8 @@ $this->load->view( 'hochladen', 'inBearbeitung', 'neu', - 'maxZeichen' + 'maxZeichen', + 'errorBestaetigungFehlt' ), 'person' => array( 'student', @@ -202,7 +203,7 @@ $this->load->view(
- Max. Zeichen:
@@ -211,6 +212,18 @@ $this->load->view( +
+
+
+
+ +
+
+
+
'core', + 'category' => 'anrechnung', + 'phrase' => 'bestaetigungstext', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => "Hiermit bestätige ich, dass ich die relevanten Prozess-Informationen gelesen habe und bestätige hiermit auch die Vollständigkeit und Richtigkeit meiner Angaben.
Ich nehme zur Kenntnis, dass der Antrag nur einmal hochgeladen werden kann und dass Unterlagen nicht nachgereicht werden können.", + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => "I hereby confirm that I have read the relevant process information and hereby also confirm the accuracy and completeness of the information I have provided above.
I acknowledge that the application can only be uploaded once and that documents cannot be submitted later.", + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'core', + 'category' => 'ui', + 'phrase' => 'errorBestaetigungFehlt', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => "Ihre Bestaetigung fehlt.
Bitte aktivieren Sie das entsprechende Feld.", + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => "Your confirmation is missing.
Please confirm the corresponding field.", + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), );