@ -1,7 +1,8 @@
< settings-menu > < / settings-menu >
< settings-menu > < / settings-menu >
< div * ngIf = "form" class = "small-middle-container" >
< div * ngIf = "form" class = "small-middle-container" >
< fieldset >
< fieldset >
< legend > Sonarr Settings< / legend >
< legend > Sonarr Settings< / legend >
< div class = "md-form-field" style = "margin-top:1em;" > < / div >
< form novalidate [ formGroup ] = " form " ( ngSubmit ) = " onSubmit ( form ) " >
< form novalidate [ formGroup ] = " form " ( ngSubmit ) = " onSubmit ( form ) " >
< div class = "row top-spacing" >
< div class = "row top-spacing" >
< div class = "col-md-12 col-12 col-sm-12" >
< div class = "col-md-12 col-12 col-sm-12" >
@ -20,6 +21,7 @@
< div class = "md-form-field" >
< div class = "md-form-field" >
< mat-slide-toggle formControlName = "scanForAvailability" > Scan for Availability< / mat-slide-toggle >
< mat-slide-toggle formControlName = "scanForAvailability" > Scan for Availability< / mat-slide-toggle >
< / div >
< / div >
< div class = "md-form-field" style = "margin-top:1em;" > < / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
@ -38,6 +40,7 @@
< mat-error > The Port is required< / mat-error >
< mat-error > The Port is required< / mat-error >
< / mat-form-field >
< / mat-form-field >
< mat-slide-toggle formControlName = "ssl" > SSL< / mat-slide-toggle >
< mat-slide-toggle formControlName = "ssl" > SSL< / mat-slide-toggle >
< div class = "md-form-field" style = "margin-top:1em;" > < / div >
< / div >
< / div >
< div class = "md-form-field" >
< div class = "md-form-field" >
< mat-form-field appearance = "outline" floatLabel = always >
< mat-form-field appearance = "outline" floatLabel = always >
@ -56,6 +59,13 @@
< / div >
< / div >
< div class = "col-md-5 col-4 col-sm-12" >
< div class = "col-md-5 col-4 col-sm-12" >
< label for = "username" class = "control-label" > < h3 > Sonarr Interface< / h3 > < / label >
< label for = "username" class = "control-label" > < h3 > Sonarr Interface< / h3 > < / label >
< div class = "form-group col-md-12" >
< div id = "profiles" >
< div class = "md-form-field" style = "display:inline;" >
< button mat-raised-button id = "profiles" ( click ) = " getProfiles ( form ) " class = "mat-stroked-button load" >
Load Qualities < span * ngIf = "profilesRunning" class = "fa fa-spinner fa-spin" > < / span > < / button >
< div class = "md-form-field" style = "margin-top:1em;" > < / div >
< / div >
< div class = "md-form-field" style = "display:contents;" >
< div class = "md-form-field" style = "display:contents;" >
< mat-form-field appearance = "outline" >
< mat-form-field appearance = "outline" >
< mat-label > Quality Profiles< / mat-label >
< mat-label > Quality Profiles< / mat-label >
@ -65,7 +75,9 @@
< mat-error > A Default Quality Profile is required< / mat-error >
< mat-error > A Default Quality Profile is required< / mat-error >
< / mat-form-field >
< / mat-form-field >
< / div >
< / div >
< div class = "md-form-field" id = "qualityProfileAnime" >
< / div >
< div id = "qualityProfileAnime" >
< div class = "md-form-field" style = "display:contents;" >
< div class = "md-form-field" style = "display:contents;" >
< mat-form-field appearance = "outline" >
< mat-form-field appearance = "outline" >
< mat-label > Quality Profiles (Anime)< / mat-label >
< mat-label > Quality Profiles (Anime)< / mat-label >
@ -74,18 +86,17 @@
< / mat-select >
< / mat-select >
< mat-error > A Default Quality Profile is required< / mat-error >
< mat-error > A Default Quality Profile is required< / mat-error >
< / mat-form-field >
< / mat-form-field >
< div class = "md-form-field" style = "display:inline;" >
< button mat-raised-button id = "profiles" ( click ) = " getProfiles ( form ) " class = "mat-stroked-button load" >
Load Qualities < span * ngIf = "profilesRunning" class = "fa fa-spinner fa-spin" > < / span > < / button >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = " md-form-field ">
< div class = " form-group col-md-12 ">
< div id = "rootFolders" >
< div id = "rootFolders" >
< div class = "md-form-field" style = "display:inline" >
< button mat-raised-button id = "rootFolder" ( click ) = " getRootFolders ( form ) " class = "mat-stroked-button load" >
Load Folders < span * ngIf = "rootFoldersRunning" class = "fa fa-spinner fa-spin" > < / span > < / button > < div class = "md-form-field" style = "margin-top:1em;" > < / div >
< / div >
< div class = "md-form-field" style = "display:contents;" >
< div class = "md-form-field" style = "display:contents;" >
< mat-form-field appearance = "outline" >
< mat-form-field appearance = "outline" >
< mat-label > Default Root Folders< / mat-label >
< mat-label > Default Root Folders< / mat-label >
@ -95,10 +106,7 @@
< mat-error > A Default Root Folder is required< / mat-error >
< mat-error > A Default Root Folder is required< / mat-error >
< / mat-form-field >
< / mat-form-field >
< / div >
< / div >
< div class = "md-form-field" style = "display:inline;" >
< button mat-raised-button id = "rootFolder" ( click ) = " getRootFolders ( form ) " class = "mat-stroked-button load" >
Load Folders < span * ngIf = "rootFoldersRunning" class = "fa fa-spinner fa-spin" > < / span > < / button >
< / div >
< / div >
< / div >
< div id = "rootFoldersAnime" >
< div id = "rootFoldersAnime" >
< div class = "md-form-field" style = "display:contents;" >
< div class = "md-form-field" style = "display:contents;" >
@ -114,11 +122,15 @@
< / div >
< / div >
< div class = " md-form-field " * ngIf = "form.controls.v3.value" >
< div class = " form-group col-md-12 " * ngIf = "form.controls.v3.value" >
< label for = "select" class = "control-label" > Language Profiles
< label for = "select" class = "control-label" > Language Profiles
< i * ngIf = "form.get('languageProfile').hasError('required')" class = "fa fa-exclamation-circle error-text" pTooltip = "A Language Profile is required" > < / i >
< i * ngIf = "form.get('languageProfile').hasError('required')" class = "fa fa-exclamation-circle error-text" pTooltip = "A Language Profile is required" > < / i >
< / label >
< / label >
< div id = "langaugeProfile" >
< div id = "langaugeProfile" >
< div class = "md-form-field" style = "display:inline" >
< button type = "button" mat-raised-button ( click ) = " getLanguageProfiles ( form ) " class = "mat-stroked-button load" > Load
Languages < span * ngIf = "langRunning" class = "fa fa-spinner fa-spin" > < / span > < / button > < div class = "md-form-field" style = "margin-top:1em;" > < / div >
< / div >
< div class = "md-form-field" style = "display:contents;" >
< div class = "md-form-field" style = "display:contents;" >
< mat-form-field appearance = "outline" >
< mat-form-field appearance = "outline" >
< mat-label > Language Profiles < / mat-label >
< mat-label > Language Profiles < / mat-label >
@ -128,34 +140,36 @@
< mat-error > A Language Profile is required< / mat-error >
< mat-error > A Language Profile is required< / mat-error >
< / mat-form-field >
< / mat-form-field >
< / div >
< / div >
< div class = "md-form-field" style = "display:inline;" >
< button type = "button" mat-raised-button ( click ) = " getLanguageProfiles ( form ) " class = "mat-stroked-button load" > Load
Languages < span * ngIf = "langRunning" class = "fa fa-spinner fa-spin" > < / span > < / button >
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = " md-form-field ">
< div class = " form-group col-md-12 ">
< div class = "checkbox" >
< div class = "checkbox" >
< mat-slide-toggle id = "SeasonFolders" name = "SeasonFolders" formControlName = "seasonFolders" > Enable season folders< / mat-slide-toggle >
< mat-slide-toggle id = "SeasonFolders" name = "SeasonFolders" formControlName = "seasonFolders" > Enable season folders< / mat-slide-toggle >
< / div >
< / div > < div class = "md-form-field" style = "margin-top:1em;" > < / div >
< label > Enabled Season Folders to organize seasons into individual folders within a show.< / label >
< label > If enabled Sonarr will organize seasons into separate folders within a show.< / label >
< / div >
< / div >
< div class = " md-form-field " * ngIf = "advanced" style = "color:#ff761b" >
< div class = " form-group col-md-12 " * ngIf = "advanced" style = "color:#ff761b" >
< div class = "checkbox" >
< div class = "checkbox" >
< mat-slide-toggle id = "addOnly" formControlName = "addOnly" > Do not search< / mat-slide-toggle >
< mat-slide-toggle id = "addOnly" formControlName = "addOnly" > Do not search< / mat-slide-toggle >
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "col-md-4" >
< div class = "form-group col-md-7" >
< div >
< button mat-raised-button type = "submit" class = "mat-stroked-button accent mat-accent" > Submit< / button >
< / div >
< / div >
< div class = "row" >
< div class = " form-group col-md-7 ">
< div class = "col-12" >
< div >
< div div class = "md-form-field" >
< button mat-raised-button type = "button" ( click ) = " test ( form ) " class = "mat-stroked-button" > Test Connectivity
< button mat-raised-button type = "button" [ disabled ] = " form . invalid " ( click ) = " test ( form ) " > Test Connectivity < span id = "spinner" > < / span > < / button >
< span id = "spinner" > < / span > < / button >
< / div >
< / div >
< div class = "md-form-field" style = "margin-top:1em;" >
< button mat-raised-button type = "submit" color = "primary" [ disabled ] = " form . invalid " class = "mat-focus-indicator mat-stroked-button accent mat-accent mat-raised-button mat-button-base" ng-reflect-disabled = "false" > < span class = "mat-button-wrapper" > Submit< / span > < div matripple = "" class = "mat-ripple mat-button-ripple" ng-reflect-disabled = "false" ng-reflect-centered = "false" ng-reflect-trigger = "[object HTMLButtonElement]" > < / div > < div class = "mat-button-focus-overlay" > < / div > < / button >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >