30 lines
1.2 KiB
HTML
30 lines
1.2 KiB
HTML
<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> |