diff --git a/drupal/modules/epal/src/Controller/ApplicationSubmit.php b/drupal/modules/epal/src/Controller/ApplicationSubmit.php index 743b93822c5f9599ab84d49599f36f58b40b7496..f53d82c07189f178255294f9569c2eb0e6091109 100755 --- a/drupal/modules/epal/src/Controller/ApplicationSubmit.php +++ b/drupal/modules/epal/src/Controller/ApplicationSubmit.php @@ -386,8 +386,6 @@ class ApplicationSubmit extends ControllerBase $existing = $esQuery->execute()->fetchAll(\PDO::FETCH_OBJ); -/* $existing = $this->entityTypeManager->getStorage('epal_student') - ->loadByProperties(['epaluser_id' => $epalUser->id->value]); */ if ($existing && sizeof($existing) > 0) { $crypt = new Crypt(); foreach ($existing as $candidate) { diff --git a/drupal/modules/epal/src/Controller/SubmitedApplications.php b/drupal/modules/epal/src/Controller/SubmitedApplications.php index 49c055766123bdb3123744c510c1833c2058df88..6d0558ee48b1965cd50909137e919dcacb88da69 100755 --- a/drupal/modules/epal/src/Controller/SubmitedApplications.php +++ b/drupal/modules/epal/src/Controller/SubmitedApplications.php @@ -738,6 +738,11 @@ class SubmitedApplications extends ControllerBase "error_code" => 3002 ], Response::HTTP_FORBIDDEN); } + else if ($epalConfig->lock_application->value) { + return $this->respondWithStatus([ + "error_code" => 3002 + ], Response::HTTP_FORBIDDEN); + } diff --git a/source/components/student-application-form/submited.aplication.preview.ts b/source/components/student-application-form/submited.aplication.preview.ts index c62906aa899a1b0c92d98b424a969253b18f45bb..b02452beabf8460dcd2e56246aa3cc1b204e6627 100644 --- a/source/components/student-application-form/submited.aplication.preview.ts +++ b/source/components/student-application-form/submited.aplication.preview.ts @@ -90,14 +90,14 @@ import {Location} from '@angular/common'; <div *ngFor="let StudentDetails$ of SubmitedDetails$ | async" [hidden]="UserData$.id !== applicationIdActive" style="margin: 10px 10px 10px 10px;"> <div *ngIf = "StudentDetails$.applicantsResultsDisabled == '0'" > - <div *ngIf = "StudentDetails$.status == '1' && StudentDetails$.secondPeriod == '0'" > + <div *ngIf = "StudentDetails$.status == '1'" > <div class="col-md-12" style="font-size: 1.0em; color: #143147; font-weight: bold;"> Ξ Ξ±Ξ―ΟΞ·ΟΞ� ΟΞ±Ο ΞΉΞΊΞ±Ξ½ΞΏΟΞΏΞΉΞ�ΞΈΞ·ΞΊΞ΅. ΞΟΞ΅ΟΞ΅ Ξ΅ΟιλΡγΡί Ξ³ΞΉΞ± Ξ½Ξ± ΡγγΟΞ±ΟΡίΟΞ΅ ΟΟΞΏ {{StudentDetails$.schoolName}}. Ξ Ξ±ΟΞ±ΞΊΞ±Ξ»Ο Ξ½Ξ± ΟΟΞΏΟΞλθΡΟΞ΅ ΞΞΞΣΠΟΟΞΏ ΟΟολΡίο Ξ³ΞΉΞ± Ξ½Ξ± ΟΟΞΏΟΟΟΞ�ΟΡι Ξ· διαδικαΟΞ―Ξ± ΡγγΟΞ±ΟΞ�Ο ΟΞ±Ο ΟΞ΅ Ξ±Ο ΟΟ, ΟΟΞΏΟΞΊΞΏΞΌΞ―ΞΆΞΏΞ½ΟΞ±Ο ΟΞ± Ξ±ΟΞ±ΟΞ±Ξ―ΟΞ·ΟΞ± δικαιολογηΟΞΉΞΊΞ¬. ΞΞΉΞ΅ΟΞΈΟ Ξ½ΟΞ· ΟΟΞΏΞ»Ξ΅Ξ―ΞΏΟ : {{StudentDetails$.schoolAddress}}, ΀ηλΞΟΟΞ½ΞΏ ΟΟΞΏΞ»Ξ΅Ξ―ΞΏΟ : {{StudentDetails$.schoolTel}}<br><br> </div> </div> - <div *ngIf = "StudentDetails$.status != '1' && StudentDetails$.secondPeriod == '0'" > + <div *ngIf = "StudentDetails$.status != '1'" > <div class="col-md-12" style="font-size: 1.0em; color: #a52a2a; font-weight: bold;"> Ξ Ξ±Ξ―ΟΞ·ΟΞ� ΟΞ±Ο Ξ΅Ξ―Ξ½Ξ±ΞΉ ΟΞ΅ ΡκκΟΡμΟΟΞ·ΟΞ±. ΞΞΉΞ± ΟΞ·Ξ½ ΟΞΏΟΞΏΞΈΞΟΞ·ΟΞ� ΟΞ±Ο ΞΊΞ±ΞΉ ΟΞΉΟ Ξ΅Ξ½ΞΟΞ³Ξ΅ΞΉΞ΅Ο ΟΞΏΟ ΟΟΞΟΡι Ξ½Ξ± κάνΡΟΞ΅ ΞΈΞ± ΡνημΡΟΟθΡίΟΞ΅ ΞΌΞ΅ Ξ½ΞΞΏ ΞΌΞ�Ξ½Ο ΞΌΞ±, ΞΌΞ΅ ΟΞΏΞ½ ίδιο ΟΟΟΟΞΏ, ΞΌΞ΅ΟΞ¬ ΟΞΉΟ 8-7-2017.<br><br> </div>