<div class="relation-picker-group">
    <div *ngFor="let relation of relations[field.name]; let i = index">
        <relation-picker [(document)]="document" [field]="field" [relationIndex]="i"
                         [primary]="primary"></relation-picker>
    </div>

    <button class="btn btn-primary add-relation"
            *ngIf="!relations[field.name] || relations[field.name].length == 0 || validateNewest()"
            role="button"
            (click)="createRelation()">+
    </button>

    <!-- Button disabled when waiting for input -->
    <button class="btn btn-primary add-relation"
            *ngIf="relations[field.name] && relations[field.name].length > 0 && !validateNewest()"
            role="button" disabled>+
    </button>
</div>
<div class="relation-picker-group">
    <div *ngFor="let relation of relations[field.name]; let i = index">
        <relation-picker [(document)]="document" [field]="field" [relationIndex]="i"
                         [primary]="primary"></relation-picker>
    </div>

    <button class="btn btn-primary"
            *ngIf="!relations[field.name] || relations[field.name].length == 0 || validateNewest()"
            role="button"
            (click)="createRelation()">+
    </button>

    <!-- Button disabled when waiting for input -->
    <button class="btn btn-primary"
            *ngIf="relations[field.name] && relations[field.name].length > 0 && !validateNewest()"
            role="button" disabled>+
    </button>
</div>
Revert "Give "add relation" button a class so that it can be referenced from e2e tests."
Revert "Give "add relation" button a class so that it can be referenced from e2e tests."

This reverts commit 6ccbdd8b25dc0b11aee84805f86ba7d3ddb495e4.
