Commit c8b62d99 authored by Open Source Developer's avatar Open Source Developer

commit

parent 055e35f3
...@@ -6,18 +6,26 @@ import { Router } from '@angular/router'; ...@@ -6,18 +6,26 @@ import { Router } from '@angular/router';
@Component({ @Component({
selector: 'breadcrubs', selector: 'breadcrubs',
template: ` <div class="col-sm-12"><p class="crumb" [hidden]="currentUrl != '/epal-class-select'">Αρχική σελίδα!!!!!!!!</p></div> template: ` <div [hidden]="currentUrl !== '/epal-class-select'" class="col-sm-12"><p class="crumb" >Νέα Αίτηση -> Επιλογή Τάξης </p></div>
<div class="col-sm-12"><p class="crumb" [hidden]="currentUrl != '/sector-fields-select'">Αρχική σελίδα</p></div> <div [hidden]="currentUrl !== '/sector-fields-select'" class="col-sm-12"><p class="crumb" >Νέα Αίτηση -> Επιλογή Τoμέα</p></div>
<div [hidden]="currentUrl !== '/region-schools-select'" class="col-sm-12"><p class="crumb" >Νέα Αίτηση -> Επιλογή Σχολείου ανα Περιφερειακή Διεύθυνση</p></div>
<div [hidden]="currentUrl !== '/sectorcourses-fields-select'" class="col-sm-12"><p class="crumb" >Νέα Αίτηση -> Επιλογή Ειδικότητας ανα τoμέα</p></div>
<div [hidden]="currentUrl !== '/schools-order-select'" class="col-sm-12"><p class="crumb" >Νέα Αίτηση -> Σειρά Προτίμησης Επιλεχθέντων Σχολείων</p></div>
<div [hidden]="currentUrl !== '/student-application-form-main'" class="col-sm-12"><p class="crumb" >Νέα Αίτηση -> Προσωπικά Στοιχεία</p></div>
<div [hidden]="currentUrl !== '/application-submit'" class="col-sm-12"><p class="crumb" >Νέα Αίτηση -> Προεπισκόπη αίτησης</p></div>
<div [hidden]="currentUrl !== '/submited-preview'" class="col-sm-12"><p class="crumb" > Υποβληθείσες αιτήσεις</p></div>
` `
}) })
@Injectable() export default class Breadcrubs implements OnInit { @Injectable() export default class Breadcrubs implements OnInit {
public currentUrl: string;
constructor(private _router:Router) {} constructor(private _router:Router) {}
ngOnInit() { ngOnInit() {
let currentUrl = this._router.url; this.currentUrl = this._router.url;
console.log(currentUrl,"lala");
} }
} }
<div class="row">
<breadcrubs></breadcrubs>
</div>
<div class = "loading" *ngIf="(criteria$ | async).size === 0"></div> <div class = "loading" *ngIf="(criteria$ | async).size === 0"></div>
<form novalidate [formGroup]="studentDataGroup" #form> <form novalidate [formGroup]="studentDataGroup" #form>
......
...@@ -25,6 +25,9 @@ import {AppSettings} from '../../app.settings'; ...@@ -25,6 +25,9 @@ import {AppSettings} from '../../app.settings';
@Component({ @Component({
selector: 'application-submit', selector: 'application-submit',
template: ` template: `
<div class="row">
<breadcrubs></breadcrubs>
</div>
<div class = "loading" *ngIf="(studentDataFields$ | async).size === 0 || (criteria$ | async).size === 0 || (regions$ | async).size === 0 || (epalclasses$ | async).size === 0 || (loginInfo$ | async).size === 0"></div> <div class = "loading" *ngIf="(studentDataFields$ | async).size === 0 || (criteria$ | async).size === 0 || (regions$ | async).size === 0 || (epalclasses$ | async).size === 0 || (loginInfo$ | async).size === 0"></div>
<application-preview-select></application-preview-select> <application-preview-select></application-preview-select>
<button type="button button-lg pull-right" *ngIf="(studentDataFields$ | async).size > 0 && (criteria$ | async).size > 0 && (regions$ | async).size > 0 && (epalclasses$ | async).size > 0 && (loginInfo$ | async).size > 0" class="btn-primary btn-lg pull-center" (click)="submitNow()">Υποβολή</button> <button type="button button-lg pull-right" *ngIf="(studentDataFields$ | async).size > 0 && (criteria$ | async).size > 0 && (regions$ | async).size > 0 && (epalclasses$ | async).size > 0 && (loginInfo$ | async).size > 0" class="btn-primary btn-lg pull-center" (click)="submitNow()">Υποβολή</button>
......
...@@ -18,6 +18,9 @@ import {AppSettings} from '../../app.settings'; ...@@ -18,6 +18,9 @@ import {AppSettings} from '../../app.settings';
@Component({ @Component({
selector: 'course-fields-select', selector: 'course-fields-select',
template: ` template: `
<div class="row">
<breadcrubs></breadcrubs>
</div>
<form [formGroup]="formGroup"> <form [formGroup]="formGroup">
<div formArrayName="formArray"> <div formArrayName="formArray">
<div *ngFor="let courseField$ of courseFields$ | async; let i=index"> <div *ngFor="let courseField$ of courseFields$ | async; let i=index">
......
...@@ -28,6 +28,10 @@ import {AppSettings} from '../../app.settings'; ...@@ -28,6 +28,10 @@ import {AppSettings} from '../../app.settings';
@Component({ @Component({
selector: 'region-schools-select', selector: 'region-schools-select',
template: ` template: `
<div class="row">
<breadcrubs></breadcrubs>
</div>
<div class = "loading" *ngIf="(regions$ | async).size === 0"> <div class = "loading" *ngIf="(regions$ | async).size === 0">
</div> </div>
<!-- <div class="row equal"> <!-- <div class="row equal">
......
...@@ -12,6 +12,9 @@ import {AppSettings} from '../../app.settings'; ...@@ -12,6 +12,9 @@ import {AppSettings} from '../../app.settings';
@Component({ @Component({
selector: 'schools-order-select', selector: 'schools-order-select',
template: ` template: `
<div class="row">
<breadcrubs></breadcrubs>
</div>
<div class = "loading" *ngIf="(selectedSchools$ | async).length === 0 || (regions$ | async).size === 0"> <div class = "loading" *ngIf="(selectedSchools$ | async).length === 0 || (regions$ | async).size === 0">
</div> </div>
<p style="margin-top: 20px; line-height: 2em;" *ngIf = "(selectedSchools$ | async).length === 1" >Έχετε επιλέξει το παρακάτω σχολείο. Εάν συμφωνείτε με την επιλογή σας <p style="margin-top: 20px; line-height: 2em;" *ngIf = "(selectedSchools$ | async).length === 1" >Έχετε επιλέξει το παρακάτω σχολείο. Εάν συμφωνείτε με την επιλογή σας
......
...@@ -22,6 +22,9 @@ import {AppSettings} from '../../app.settings'; ...@@ -22,6 +22,9 @@ import {AppSettings} from '../../app.settings';
@Component({ @Component({
selector: 'sectorcourses-fields-select', selector: 'sectorcourses-fields-select',
template: ` template: `
<div class="row">
<breadcrubs></breadcrubs>
</div>
<div class = "loading" *ngIf="(sectors$ | async).size === 0"> <div class = "loading" *ngIf="(sectors$ | async).size === 0">
</div> </div>
<form [formGroup]="formGroup"> <form [formGroup]="formGroup">
......
...@@ -17,6 +17,9 @@ import { BehaviorSubject, Subscription } from 'rxjs/Rx'; ...@@ -17,6 +17,9 @@ import { BehaviorSubject, Subscription } from 'rxjs/Rx';
@Component({ @Component({
selector: 'submited-preview', selector: 'submited-preview',
template: ` template: `
<div class="row">
<breadcrubs></breadcrubs>
</div>
Έχει υποβληθεί αίτηση για εγγραφή στην Επαγγελματική Εκπαίδευση των παρακάτω ατόμων: Έχει υποβληθεί αίτηση για εγγραφή στην Επαγγελματική Εκπαίδευση των παρακάτω ατόμων:
<table class = "submited"> <table class = "submited">
<tr> <tr>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment