import { Component, OnInit } from '@angular/core';
import { FormBuilder, Validators } from '@angular/forms';
import { BsModalRef } from 'ngx-bootstrap/modal';
import { FrameDetailComponent } from 'src/app/routes/frame/core/detail/frame.detail';

@Component({
  selector: 'app-conf-school-detail',
  templateUrl: './conf-school-detail.component.html',
  styleUrls: ['./conf-school-detail.component.scss']
})
export class ConfSchoolDetailComponent extends FrameDetailComponent implements OnInit {

  constructor(bsModalRef: BsModalRef, fb: FormBuilder) {
    super(bsModalRef);
    this.detailForm = fb.group({
      'school_code': [null, Validators.compose([Validators.required])],
      'school_name': [null, Validators.compose([Validators.required])],
      'leader': [null, null],
      'school_status': [null, null],
      'school_addr': [null, null],
      'remark': [null, null],
      'art_sys_url': [null, null]
    });
   }

  ngOnInit(): void {
  }

}
