Add update application component and danger color for buttons.

This commit is contained in:
2021-08-07 23:51:44 +02:00
parent 82053e4002
commit 84d66ec45a
13 changed files with 255 additions and 100 deletions

View File

@@ -0,0 +1,30 @@
<div class="title">
<h1>Edit the application {{application?.name}}</h1>
<button class="icon danger">
<mat-icon>delete</mat-icon>
</button>
</div>
<form [formGroup]="form" (ngSubmit)="onSubmit()" ngNativeValidate>
<div class="form-control">
<label for="name">Application name</label>
<input id="name" formControlName="name" placeholder="Enter application name" required />
</div>
<div class="form-control">
<label for="service-name">Service name</label>
<input id="service-name" formControlName="serviceName" placeholder="Enter service name" required />
</div>
<div class="form-control">
<label for="service-type">Type</label>
<app-select [options]="serviceTypes"
optionLabel="label"
(onSelection)="onServiceTypeSelection($event)"></app-select>
</div>
<div class="form-control">
<label for="image">Image</label>
<input id="image" formControlName="image" placeholder="Enter image url" required />
</div>
<div class="row action">
<button type="button" class="secondary" (click)="onCancel()">Cancel</button>
<button type="submit">Save</button>
</div>
</form>