<h2 mat-dialog-title> {{ repositoryId ? 'Editar' : 'Añadir' }} repositorio</h2>

<mat-dialog-content class="dialog-content">
  <form [formGroup]="imageForm" (ngSubmit)="save()" class="repository-form">
    <mat-form-field appearance="fill" class="form-field">
      <mat-label>Nombre del repositorio</mat-label>
      <input matInput formControlName="name" required>
    </mat-form-field>

    <mat-form-field appearance="fill" class="form-field">
      <mat-label>Ip</mat-label>
      <input matInput formControlName="ip" 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>
  </form>
</mat-dialog-content>

<div mat-dialog-actions class="action-container">
  <button class="ordinary-button" (click)="close()">Cancelar</button>
  <button class="submit-button" (click)="save()">Guardar</button>
</div>
