oggui/ogWebconsole/src/app/components/ogdhcp/manage-dhcp-server/manage-dhcp-server.componen...

30 lines
1.3 KiB
HTML

<h2 mat-dialog-title>{{ data ? 'Editar servidor DHCP' : 'Añadir servidor DHCP' }}</h2>
<mat-dialog-content>
<form [formGroup]="dhcpServerForm">
<mat-form-field appearance="fill" class="full-width">
<mat-label>{{ 'labelNameTitle' | translate }}</mat-label>
<input matInput formControlName="name" required>
</mat-form-field>
<mat-form-field appearance="fill" class="full-width">
<mat-label>{{ 'labelIpAddress' | translate }}</mat-label>
<input matInput formControlName="ip" required>
</mat-form-field>
<mat-form-field appearance="fill" class="full-width">
<mat-label>{{ 'apiPort' | translate }}</mat-label>
<input matInput formControlName="apiPort" type="number" required>
</mat-form-field>
<mat-form-field appearance="fill" class="full-width">
<mat-label>{{ 'commentsLabel' | translate }}</mat-label>
<textarea matInput formControlName="comments" rows="3"></textarea>
</mat-form-field>
</form>
</mat-dialog-content>
<mat-dialog-actions align="end">
<button mat-button (click)="close()">{{ 'buttonCancel' | translate }}</button>
<button mat-button color="primary" [disabled]="dhcpServerForm.invalid" (click)="save()">
{{ 'buttonSave' | translate }}</button>
</mat-dialog-actions>