import { Component } from '@angular/core' ; import { GenericEditComponent } from 'src/app/components/generic' ; import { ActivatedRoute , Router } from '@angular/router' ; import { Input , Name , TextInput } from 'src/app/form/Input' ; import { MatSnackBar } from '@angular/material/snack-bar' ; import { HostRouter } from 'src/app/router/HostRouter' ; import { HostsService } from 'src/app/services/hosts.service' ; @ Component ( { selector : 'app-hosts-edit' , templateUrl : '../generic/form/generic-form.component.html' , styleUrls : [ ] , } ) export class HostsEditComponent extends GenericEditComponent { public singularResource = 'host' ; public routerHelper = HostRouter ; public inputs : Input [ ] = [ new Name ( ) , new TextInput ( { name : 'technology' , label : 'Technology' } ) , ] ; constructor ( protected service , protected router , protected route , protected snackBar ) { super ( service , router , route , snackBar ) ; } }