51 lines
1.8 KiB
HTML
51 lines
1.8 KiB
HTML
<h2 mat-dialog-title>Añadir nueva imagen</h2>
|
|
|
|
<mat-dialog-content class="dialog-content">
|
|
<form [formGroup]="imageForm" (ngSubmit)="saveImage()" class="image-form">
|
|
<mat-form-field appearance="fill" class="form-field">
|
|
<mat-label>Nombre de la imagen</mat-label>
|
|
<input matInput formControlName="name" required>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field appearance="fill" class="form-field">
|
|
<mat-label>Repositorio</mat-label>
|
|
<mat-select formControlName="imageRepository" required>
|
|
<mat-option *ngFor="let imageRepository of repositories" [value]="imageRepository['@id']">
|
|
{{ imageRepository.name }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field appearance="fill" class="form-field">
|
|
<mat-label>Descripción</mat-label>
|
|
<input matInput formControlName="description" name="description">
|
|
</mat-form-field>
|
|
|
|
<mat-form-field appearance="fill" class="form-field">
|
|
<mat-label>Comentarios</mat-label>
|
|
<input matInput formControlName="comments" name="comments">
|
|
</mat-form-field>
|
|
|
|
<mat-form-field appearance="fill" class="form-field">
|
|
<mat-label>Perfil de software</mat-label>
|
|
<mat-select formControlName="softwareProfile" required>
|
|
<mat-option *ngFor="let profile of softwareProfiles" [value]="profile['@id']">
|
|
{{ profile.description }}
|
|
</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<mat-checkbox
|
|
formControlName="remotePc"
|
|
class="example-margin"
|
|
>
|
|
Remote Pc
|
|
</mat-checkbox>
|
|
</form>
|
|
</mat-dialog-content>
|
|
|
|
<mat-dialog-actions align="end" class="dialog-actions">
|
|
<button mat-button (click)="close()">Cancelar</button>
|
|
<button mat-button color="primary" (click)="saveImage()">Guardar</button>
|
|
</mat-dialog-actions>
|