<div class="container" fxLayout="row" fxLayoutAlign="center none">
  <div fxFlex="95%">

    <mat-card>
      <mat-card-header>
          <mat-card-title>New Lot</mat-card-title>        
      </mat-card-header>
      <mat-card-content>
        <div fxLayout="row" fxLayoutGap="5px">  
          <mat-form-field>
            <mat-label>Url</mat-label>
            <input matInput placeholder="Ex. https://drouot.com/..." maxlength="255" st [(ngModel)]="url" >
          </mat-form-field>
          <button mat-raised-button color="primary" (click)="openDialog()">Add</button>
      </div>                   
      </mat-card-content>
    </mat-card>

    <mat-card style="margin-top: 10px;">
      <mat-card-header>
          <mat-card-title>Favorites</mat-card-title>        
      </mat-card-header>
      <mat-card-content>
        <div fxLayout="row" fxLayoutGap="5px">  
          <table mat-table [dataSource]="dataSource" class="mat-elevation-z8">

            <!--- Note that these columns can be defined in any order.
                  The actual rendered columns are set as a property on the row definition" -->
          
            <!-- Position Column -->
            <ng-container matColumnDef="picture">
              <th mat-header-cell *matHeaderCellDef> Picture </th>
              <td mat-cell *matCellDef="let element"><img [src]="element.picture" alt="Picture" style="width: 50px"></td>
            </ng-container>
          
            <!-- Name Column -->
            <ng-container matColumnDef="lot">
              <th mat-header-cell *matHeaderCellDef> Lot </th>
              <td mat-cell *matCellDef="let element"> {{element.lotInfo.lotNumber}} </td>
            </ng-container>
          
            <!-- Weight Column -->
            <ng-container matColumnDef="title">
              <th mat-header-cell *matHeaderCellDef> Title </th>
              <td mat-cell *matCellDef="let element"> {{element.lotInfo.title}} </td>
            </ng-container>
          
            <!-- Symbol Column -->
            <ng-container matColumnDef="estimate">
              <th mat-header-cell *matHeaderCellDef> Estimate </th>
              <td mat-cell *matCellDef="let element"> {{element.lotInfo.EstimateLow}} - {{element.lotInfo.EstimateHigh}} </td>
            </ng-container>

            <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
            <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>

          </table>
          
      </div>                   
      </mat-card-content>
    </mat-card>

  </div>
</div>