54 lines
2.4 KiB
HTML
54 lines
2.4 KiB
HTML
<div class="container-fluid">
|
|
<form *ngIf="formGroup" [formGroup]="formGroup">
|
|
|
|
<!-- Toggle Between Add Project or Use Existing -->
|
|
<div class="row" *ngIf="!isFinalized">
|
|
<div class="col-12 add-project" *ngIf="isCreateNew" (click)="create()">
|
|
<mat-icon>keyboard_backspace</mat-icon>
|
|
<span>{{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.ACTIONS.EXIST' | translate}}</span>
|
|
</div>
|
|
<div class="col-12 add-project" *ngIf="!isCreateNew" (click)="create()">
|
|
<mat-icon>add</mat-icon>
|
|
<span>{{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.ACTIONS.CREATE-NEW' | translate}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Create New DMP Mode -->
|
|
<div class="row" *ngIf="!isCreateNew">
|
|
<div class="col-6 pb-4 pl-4 pt-2">
|
|
<mat-form-field>
|
|
<app-single-auto-complete required='true' [formControl]="formGroup.get('existProject')"
|
|
placeholder="{{this.languageResolverService.getBy('dmpEditor') | translate}}"
|
|
[configuration]="projectAutoCompleteConfiguration">
|
|
</app-single-auto-complete>
|
|
</mat-form-field>
|
|
</div>
|
|
</div>
|
|
<!-- <app-dynamic-fields-project [formGroup]="formGroup"></app-dynamic-fields-project> -->
|
|
|
|
<!-- Create New Project -->
|
|
<div class="row" *ngIf="isCreateNew">
|
|
<div class="col-6 pb-4 pl-4">
|
|
<mat-form-field class="col-md-12">
|
|
<input matInput
|
|
placeholder="{{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.FIRST-STEP.FIELDS.LABEL' | translate}}"
|
|
type="text" name="label" [formControl]="formGroup.get('label')" required>
|
|
<mat-error *ngIf="formGroup.get('label').hasError('backendError')">
|
|
{{formGroup.get('label').getError('backendError').message}}</mat-error>
|
|
<mat-error *ngIf="formGroup.get('label').hasError('required')">
|
|
{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
</mat-form-field>
|
|
<mat-form-field class="col-md-12">
|
|
<textarea matInput class="description-area"
|
|
placeholder="{{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.FIRST-STEP.FIELDS.DESCRIPTION' | translate}}"
|
|
[formControl]="formGroup.get('description')" required></textarea>
|
|
<mat-error *ngIf="formGroup.get('description').hasError('backendError')">
|
|
{{formGroup.get('description').getError('backendError').message}}</mat-error>
|
|
<mat-error *ngIf="formGroup.get('description').hasError('required')">
|
|
{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
</mat-form-field>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|