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

@Component({
5
    selector: "director-buttons",
Open Source Developer's avatar
trans  
Open Source Developer committed
6
    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

    constructor(
        private router: Router,
26
    ) {
Open Source Developer's avatar
trans  
Open Source Developer committed
27 28 29 30 31 32
    };

    ngOnInit() {

    }

33 34
    navigatedirector() {
        this.router.navigate(["/school/director-view"]);
Open Source Developer's avatar
trans  
Open Source Developer committed
35 36 37

    }

38 39
    navigatecapacity() {
        this.router.navigate(["/school/director-classcapacity"]);
Open Source Developer's avatar
trans  
Open Source Developer committed
40 41 42
    }

}