argos/dmp-frontend/src/app/ui/dmp/editor/add-researcher/add-researcher.component.html

21 lines
1.1 KiB
HTML
Raw Normal View History

2018-02-05 10:44:40 +01:00
<form *ngIf="formGroup" [formGroup]="formGroup">
2018-11-29 15:19:08 +01:00
<h1 mat-dialog-title>{{'ADDRESEARCHERS-EDITOR.TITLE' | translate}}</h1>
<div mat-dialog-content class="row">
<mat-form-field class="col-12">
2018-11-29 15:19:08 +01:00
<input matInput formControlName="firstName" placeholder="{{'ADDRESEARCHERS-EDITOR.FIRST_NAME' | translate}}" required>
<mat-error *ngIf="formGroup.get('firstName').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
</mat-form-field>
<mat-form-field class="col-12">
2018-11-29 15:19:08 +01:00
<input matInput formControlName="lastName" placeholder="{{'ADDRESEARCHERS-EDITOR.LAST_NAME' | translate}}" required>
<mat-error *ngIf="formGroup.get('lastName').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
</mat-form-field>
<div class="col-12">
<div class="row">
<div class="col-auto"><button mat-button mat-dialog-close mat-raised-button color="primary">Cancel</button></div>
<div class="col"></div>
<div class="col-auto"><button mat-raised-button color="primary" (click)="addResearcher()" type="button">Save</button></div>
2018-11-29 15:19:08 +01:00
</div>
</div>
</div>
2018-10-05 17:00:54 +02:00
</form>