director.buttons.ts 1.23 KB
Newer Older
1 2
import {Router} from '@angular/router';
import {OnInit, Component, Injectable} from '@angular/core';
Open Source Developer's avatar
trans  
Open Source Developer committed
3 4 5 6

@Component({
    selector: 'director-buttons',
    template: `
7 8 9
           <div class="row" style="margin-top: 130px; margin-bottom: 200px;">
               <div class="col-md-3 offset-md-3">
                <button type="submit" class="btn-primary btn-lg btn-block isclickable" style="margin: 0px; font-size: 1em; padding: 5px;" (click)="navigatedirector()">
10
                Δηλώσεις<br />Μαθητών
Open Source Developer's avatar
trans  
Open Source Developer committed
11
                </button>
12 13 14 15
                </div>
                <div class="col-md-6">
                 <button type="submit" class="btn-primary btn-lg btn-block isclickable" style="margin: 0px; font-size: 1em; padding: 5px;" (click)="navigatecapacity()">
                Δυναμική<br />Τμημάτων
Open Source Developer's avatar
trans  
Open Source Developer committed
16 17
                </button>
               </div>
18
            </div>
Open Source Developer's avatar
trans  
Open Source Developer committed
19 20 21
  `
})

22
@Injectable() export default class DirectorButtons implements OnInit {
Open Source Developer's avatar
trans  
Open Source Developer committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

    constructor(
        private router: Router,
    )
    {
    };

    ngOnInit() {

    }

    navigatedirector(){
        this.router.navigate(['/school/director-view']);

    }

    navigatecapacity(){
        this.router.navigate(['/school/director-classcapacity']);
    }

}