import { Component, OnInit } from '@angular/core';
import { ModalDirective } from 'ngx-bootstrap/modal';

@Component({
  templateUrl: 'form-list.component.html'
})
export class FormListComponent implements OnInit {
  show = false;
  closed = false;
  public myModal;
  public myModalData;
  formsList: any;
  constructor() { }
  ngOnInit(){
    this.formsList = [
      {
        formName: 'KR Univ Student Registration Form',
        formType: 'Registration Form',
        description: 'KR univ students registration form for upcomming batch',
        univ: 'KR univ',
        course: 'B.Sc',
        status: '1'
      },
      {
        formName: 'KR Univ Re-registration form',
        formType: 'Registration Form',
        description: 'KR univ re-registration form for arts students',
        status: '1',
        univ: 'KR univ',
        course: 'MCA',
      },
      {
        formName: 'PML Univ Re-registration form',
        formType: 'Registration Form',
        description: 'PML univ re-registration form for arts students',
        status: '0',
        univ: 'KR univ',
        course: 'BCA',
      }
    ]
  }
  getModelWindowDetails(emp) {
    this.myModalData = emp||null;
  }

  editEmployee(){
     this.show = !this.show;
  }
}
