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

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

  constructor(bsModalRef: BsModalRef, fb: FormBuilder) {
    super(bsModalRef);
    this.detailForm = fb.group({
      'school_id': [null, Validators.compose([Validators.required])],
      'param_name': [null, Validators.compose([Validators.required])],
      'param_value': [null, Validators.compose([Validators.required])],
      'default_value': [null, null],
      'param_desc': [null, null]
    });
   }

  ngOnInit(): void {
  }

}
