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-range-score-page-detail',
  templateUrl: './conf-range-score-page-detail.component.html',
  styleUrls: ['./conf-range-score-page-detail.component.scss']
})
export class ConfRangeScorePageDetailComponent extends FrameDetailComponent implements OnInit {


  constructor(bsModalRef: BsModalRef, fb: FormBuilder) { 
    super(bsModalRef);
    this.detailForm = fb.group({
      'school_id': [null, null],
      'score_name': [null, Validators.compose([Validators.required])],
      'score_max': [null, Validators.compose([Validators.required])],
      'score_min': [null, Validators.compose([Validators.required])],
      'master_flag': [null, null],
      'show_score': [null, null],
      'score_tick': [null, Validators.compose([Validators.required])],
      'score_level': [null, Validators.compose([Validators.required])]
    });
  }

  ngOnInit(): void {
  }


}
