import { Component } from '@angular/core' ; import { GenericEditComponent } from 'src/app/components/generic' ; import { ActivatedRoute , Router } from '@angular/router' ; import { Email , Input , Phone , TextInput , Username } from 'src/app/form/Input' ; import { MatSnackBar } from '@angular/material/snack-bar' ; import { UserRouter } from 'src/app/router/UserRouter' ; import { UsersService } from 'src/app/services/users.service' ; @ Component ( { selector : 'app-users-edit' , templateUrl : '../generic/form/generic-form.component.html' , styleUrls : [ ] , } ) export class UsersEditComponent extends GenericEditComponent { public singularResource = 'user' ; public routerHelper = UserRouter ; public inputs : Input [ ] = [ new Username ( ) , new Email ( ) , new Phone ( ) , new TextInput ( { label : 'Trigram' , name : 'trigram' , placeholder : 'JZN' , } ) , new TextInput ( { label : 'City' , name : 'city' , placeholder : 'Bikini bottom' , } ) , ] ; constructor ( protected service , protected router , protected route , protected snackBar ) { super ( service , router , route , snackBar ) ; } }