@ -17,7 +17,7 @@
< div class = "row" >
< div class = "col-sm-2" >
< img class = "img-responsive poster" src = "{{request.posterPath}}" alt = "poster" >
< img class = "img-responsive poster" src = "{{request.posterPath}}" alt = "poster" >
< / div >
@ -32,240 +32,25 @@
< span > Status: < / span >
< span class = "label label-success" > {{request.status}}< / span >
< / div >
< div * ngIf = "!request.hasChildRequests" >
< div >
< span > Request status: < / span >
< span * ngIf = "request.available" class = "label label-success" > Available< / span >
< span * ngIf = "request.approved && !request.available" class = "label label-info" > Processing Request< / span >
< span * ngIf = "request.denied" class = "label label-danger" > Request Denied< / span >
< span * ngIf = "request.deniedReason" title = "{{request.deniedReason}}" > < i class = "fa fa-info-circle" > < / i > < / span >
< span * ngIf = "!request.approved && !request.availble && !request.denied" class = "label label-warning" > Pending Approval< / span >
< / div >
< div * ngIf = "request.denied" >
Denied: < i style = "color:red;" class = "fa fa-check" > < / i >
< / div >
< div > Release Date: {{request.releaseDate | date}}< / div >
< br / >
<!-- {{#if_eq type "tv"}}
{{#if episodes}}
Episodes: < span class = "customTooltip" data-tooltip-content = "#{{requestId}}toolTipContent" > < i class = "fa fa-info-circle" > < / i > < / span >
{{else}}
< div > @UI.Requests_SeasonsRequested: {{seriesRequested}}< / div >
{{/if}}
{{/if_eq}}-->
< div > Requested Date: {{request.requestedDate | date}}< / div >
<!-- {{#if admin}}
{{#if currentRootPath}}
< div class = "{{requestId}}rootPathMain" > Root Path: < span id = "{{requestId}}currentRootPath" > {{currentRootPath}}< / span > < / div >
{{/if}}
{{/if}}
< div >
{{#if_eq issueId 0}}
@*Nothing*@
{{else}}
@UI.Issues_Issue: < a href = "@formAction/issues/{{issueId}}" > < i class = "fa fa-check" > < / i > < / a >
{{/if_eq}}
< / div > -->
< div >
< span > Request status: < / span >
< span * ngIf = "request.available" class = "label label-success" > Available< / span >
< span * ngIf = "request.approved && !request.available" class = "label label-info" > Processing Request< / span >
< span * ngIf = "request.denied" class = "label label-danger" > Request Denied< / span >
< span * ngIf = "request.deniedReason" title = "{{request.deniedReason}}" > < i class = "fa fa-info-circle" > < / i > < / span >
< span * ngIf = "!request.approved && !request.availble && !request.denied" class = "label label-warning" > Pending Approval< / span >
< / div >
<!-- Child Requests -->
< button type = "button" class = "btn btn-sm btn-info-outline" ( click ) = " showChildren ( request ) " > Requests< / button >
< div > Release Date: {{request.releaseDate | date}}< / div >
< br / >
< div > Requested Date: {{request.requestedDate | date}}< / div >
< / div >
< div class = "col-sm-3 col-sm-push-3" >
< div * ngIf = "isAdmin" >
< div * ngIf = "!request.approved" >
< form >
< input name = "requestId" type = "text" value = "{{request.requestId}}" hidden = "hidden" / >
< div * ngIf = "request.hasQualities" class = "btn-group btn-split" >
< button type = "button" ( click ) = " approve ( request ) " class = "btn btn-sm btn-success-outline approve" > < i class = "fa fa-plus" > < / i > Approve< / button >
< button type = "button" class = "btn btn-success-outline dropdown-toggle" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
< span class = "caret" > < / span >
< span class = "sr-only" > Toggle Dropdown< / span >
< / button >
<!-- <ul class="dropdown - menu">
{{#each qualities}}
< li > < a href = "#" class = "approve-with-quality" id = "{{id}}" > {{name}}< / a > < / li >
{{/each}}
< / ul > -->
< / div >
< button * ngIf = "!request.hasQualities" ( click ) = " approve ( request ) " style = "text-align: right" class = "btn btn-sm btn-success-outline approve" type = "submit" > < i class = "fa fa-plus" > < / i > Approve< / button >
< / form >
<!-- <form method="POST" action="@formAction/requests/changeRootFolder{{#if_eq type "tv"}}tv{{else}}movie{{/if_eq}}" id="changeFolder{{requestId}}">
< input name = "requestId" type = "text" value = "{{requestId}}" hidden = "hidden" / >
{{#if_eq hasRootFolders true}}
< div class = "btn-group btn-split" >
< button type = "button" class = "btn btn-sm btn-success-outline" id = "changeRootFolderBtn{{requestId}}" custom-button = "{{requestId}}" > @*< i class = "fa fa-plus" > < / i > *@ Change Root Folder< / button >
< button type = "button" class = "btn btn-success-outline dropdown-toggle" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "false" >
< span class = "caret" > < / span >
< span class = "sr-only" > @UI.Requests_ToggleDropdown< / span >
< / button >
< ul class = "dropdown-menu" >
{{#each rootFolders}}
< li > < a href = "#" class = "change-root-folder" id = "{{id}}" requestId = "{{requestId}}" > {{path}}< / a > < / li >
{{/each}}
< / ul >
< / div >
{{/if_eq}}
< / form > -->
< div * ngIf = "!request.denied" >
< input name = "requestId" type = "text" value = "{{request.requestId}}" hidden = "hidden" / >
< input name = "reason" type = "text" hidden = "hidden" / >
< div class = "btn-group-sm btn-split" >
< a ( click ) = " deny ( request ) " class = "btn btn-sm btn-danger-outline deny" > < i class = "fa fa-times" > < / i > Deny< / a >
< a class = "btn btn-sm btn-danger-outline dropdown-toggle" data-toggle = "dropdown" > < span class = "caret" > < / span > < / a >
< ul class = "dropdown-menu" >
< li > < a class = "deny-with-reason" id = "denyReason{{request.requestId}}" href = "#" data-toggle = "modal" data-target = "#denyReasonModal" > Deny with a reason< / a > < / li >
< / ul >
< / div >
< div class = "btn-group" >
< a href = "#" class = "btn btn-default" > Default< / a >
< a href = "#" class = "btn btn-default dropdown-toggle" data-toggle = "dropdown" > < span class = "caret" > < / span > < / a >
< ul class = "dropdown-menu btn-split" >
< li > < a href = "#" > Action< / a > < / li >
< li > < a href = "#" > Another action< / a > < / li >
< li > < a href = "#" > Something else here< / a > < / li >
< li class = "divider" > < / li >
< li > < a href = "#" > Separated link< / a > < / li >
< / ul >
< / div >
< / div >
< / div >
< form >
< button ( click ) = " removeRequest ( request ) " style = "text-align: right" class = "btn btn-sm btn-danger-outline delete" > < i class = "fa fa-minus" > < / i > Remove< / button >
< / form >
< form >
< button * ngIf = "request.available" ( click ) = " changeAvailability ( request , false ) " style = "text-align: right" value = "false" class = "btn btn-sm btn-info-outline change" > < i class = "fa fa-minus" > < / i > Mark Unavailable< / button >
< button * ngIf = "!request.available" ( click ) = " changeAvailability ( request , true ) " style = "text-align: right" value = "true" class = "btn btn-sm btn-success-outline change" > < i class = "fa fa-plus" > < / i > Mark Available< / button >
< / form >
< / div >
< input name = "requestId" type = "text" value = "{{request.requestId}}" hidden = "hidden" / >
< div class = "dropdown" >
< button id = "{{request.requestId}}" class = "btn btn-sm btn-primary-outline dropdown-toggle" type = "button" data-toggle = "dropdown" aria-haspopup = "true" aria-expanded = "true" >
< i class = "fa fa-plus" > < / i > Report Issue
< span class = "caret" > < / span >
< / button >
< ul class = "dropdown-menu" aria-labelledby = "dropdownMenu1" >
< li > < a issue-select = "0" > @UI.Issues_WrongAudio< / a > < / li >
< li > < a issue-select = "1" > @UI.Issues_NoSubs< / a > < / li >
< li > < a issue-select = "2" > @UI.Issues_WrongContent< / a > < / li >
< li > < a issue-select = "3" > @UI.Issues_Playback< / a > < / li >
< li > < a issue-select = "4" data-toggle = "modal" data-target = "#myModal" > @UI.Issues_Other< / a > < / li >
< / ul >
< / div >
< button [ routerLink ] = " [ request . id ] " style = "text-align: right" class = "btn btn-sm btn-success-outline" type = "submit" > < i class = "fa fa-plus" > < / i > View< / button >
< / div >
< / div >
< hr / >
< / div >
< / div >
< p-dialog * ngIf = "showChildDialogue" id = "dialogOverride" header = "{{selectedSeason?.title}}" [ ( visible ) ] = " showChildDialogue " [ contentStyle ] = " { ' overflow ' : ' auto ' , ' max-height ' : ' 500px ' } " [ width ] = " 768 " >
< div class = "row" * ngFor = "let child of selectedSeason.childRequests" >
< div class = "col-md-12" >
<!-- Child Requests -->
< div class = "col-md-9" >
< span class = "col-md-12" > Requested By: < b > {{child.requestedUser.username}}< / b > < / span >
<!-- <span class="col - md - 12" *ngIf="child.requestAll">Requested All Seasons</span> -->
<!-- Seasons -->
< span * ngIf = "child.approved && !child.available" class = "label label-info" > Processing Request< / span >
< span * ngIf = "child.denied" class = "label label-danger" > Request Denied< / span >
< span * ngIf = "child.deniedReason" title = "{{child.deniedReason}}" > < i class = "fa fa-info-circle" > < / i > < / span >
< span * ngIf = "!child.approved && !child.availble && !child.denied" class = "label label-warning" > Pending Approval< / span >
< div class = "col-md-12" * ngFor = "let seasons of child.seasonRequests" >
< span > < b > Season: {{seasons.seasonNumber}}< / b > < / span >
< div >
< span > Episodes:< / span >
< div * ngFor = "let episode of seasons.episodes" >
<!-- Episodes -->
< span > # {{episode.episodeNumber}} | {{episode.title}}< / span >
< span * ngIf = "episode.available" class = "label label-success" > Available< / span >
< / div >
< / div >
< / div >
< / div >
< div class = "col-md-3" >
< button * ngIf = "!child.approved" type = "button" ( click ) = " approveSeasonRequest ( child ) " class = "btn btn-sm btn-success-outline" style = "text-align: right" > < i class = "fa fa-plus" > < / i > Approve< / button >
< button * ngIf = "child.approved && !child.available" type = "button" [ disabled ] = " true " class = "btn btn-sm btn-primary-outline" style = "text-align: right" > < i class = "fa fa-plus" > < / i > Processing< / button >
< button * ngIf = "!child.approved && !child.available && !child.denied" type = "button" ( click ) = " denySeasonRequest ( child ) " class = "btn btn-sm btn-danger-outline" style = "text-align: right" > < i class = "fa fa-plus" > < / i > Deny< / button >
< / div >
< / div >
< hr / >
< / div >
< / p-dialog >
<!-- <div class="modal fade in" *ngIf="showChildDialogue" style="display: block;">
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< button type = "button" class = "close" ( click ) = " showChildDialogue = false" > × < / button >
< h4 class = "modal-title" > {{selectedSeason?.title}}< / h4 >
< / div >
< div class = "modal-body" >
< div class = "row" * ngFor = "let child of selectedSeason.childRequests" >
< div class = "col-md-12" >
< div class = "col-md-9" >
< span class = "col-md-12" > Requested By: < b > {{child.requestedUser.username}}< / b > < / span >
< span * ngIf = "child.approved && !child.available" class = "label label-info" > Processing Request< / span >
< span * ngIf = "child.denied" class = "label label-danger" > Request Denied< / span >
< span * ngIf = "child.deniedReason" title = "{{child.deniedReason}}" > < i class = "fa fa-info-circle" > < / i > < / span >
< span * ngIf = "!child.approved && !child.availble && !child.denied" class = "label label-warning" > Pending Approval< / span >
< div class = "col-md-12" * ngFor = "let seasons of child.seasonRequests" >
< span > Season: {{seasons.seasonNumber}}< / span >
< span > Episodes:< / span >
< div * ngFor = "let episode of seasons.episodes" >
< span > # {{episode.episodeNumber}} | {{episode.title}}< / span >
< span * ngIf = "episode.available" class = "label label-success" > Available< / span >
< / div >
< / div >
< / div >
< div class = "col-md-3" >
< button * ngIf = "!child.approved" type = "button" ( click ) = " approveSeasonRequest ( child ) " class = "btn btn-sm btn-success-outline" style = "text-align: right" > < i class = "fa fa-plus" > < / i > Approve< / button >
< button * ngIf = "child.approved && !child.available" type = "button" [ disabled ] = " true " class = "btn btn-sm btn-primary-outline" style = "text-align: right" > < i class = "fa fa-plus" > < / i > Processing< / button >
< button * ngIf = "!child.approved && !child.available && !child.denied" type = "button" ( click ) = " denySeasonRequest ( child ) " class = "btn btn-sm btn-danger-outline" style = "text-align: right" > < i class = "fa fa-plus" > < / i > Deny< / button >
< / div >
< / div >
< hr / >
< / div >
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-danger-outline" ( click ) = " showChildDialogue = false" > Close< / button >
< / div >
< / div >
< / div >
< / div > -->