<h1 mat-dialog-title><i class="fas fa-sliders-h"></i> {{'MediaDetails.AdvancedOptions' | translate }}</h1>
<div mat-dialog-content>
    <hr />
    <div class="alert alert-info" role="alert">
      <i class="fas fa-x7 fa-exclamation-triangle glyphicon"></i>
      <span>{{'MediaDetails.AutoApproveOptionsTvShort' | translate }}</span>
    </div>
    <mat-form-field *ngIf="sonarrEnabled">
        <mat-label>{{'MediaDetails.QualityProfilesSelect' | translate }}</mat-label>
        <mat-select [(value)]="data.profileId">
            <mat-option *ngFor="let profile of sonarrProfiles" value="{{profile.id}}">{{profile.name}}</mat-option>
        </mat-select>
    </mat-form-field>
</div>
<div mat-dialog-content>
    <mat-form-field  *ngIf="sonarrEnabled">
        <mat-label>{{'MediaDetails.RootFolderSelect' | translate }}</mat-label>
        <mat-select [(value)]="data.rootFolderId">
            <mat-option *ngFor="let profile of sonarrRootFolders" value="{{profile.id}}">{{profile.path}}</mat-option>
        </mat-select>
    </mat-form-field>
</div>
<div mat-dialog-content>
    <mat-form-field  *ngIf="sonarrEnabled">
        <mat-label>{{'MediaDetails.LanguageProfileSelect' | translate }}</mat-label>
        <mat-select [(value)]="data.languageId">
            <mat-option *ngFor="let profile of sonarrLanguageProfiles" value="{{profile.id}}">{{profile.name}}</mat-option>
        </mat-select>
    </mat-form-field>
</div>
<div mat-dialog-actions>
    <button mat-raised-button [mat-dialog-close]="" color="warn"><i class="fas fa-times"></i> {{ 'Common.Cancel' | translate }}</button>
    <button mat-raised-button [mat-dialog-close]="data" color="accent" cdkFocusInitial><i class="fas fa-plus"></i> {{ 'Common.Submit' | translate }}</button>
</div>