make year nullable, and rmember the profileid

This commit is contained in:
Devin Buhl 2017-01-28 17:14:51 -05:00
commit 8a0820ad1e
3 changed files with 7 additions and 3 deletions

View file

@ -15,7 +15,7 @@ namespace NzbDrone.Core.NetImport.Trakt
public class Movie
{
public string title { get; set; }
public int year { get; set; }
public int? year { get; set; }
public Ids ids { get; set; }
}

View file

@ -25,7 +25,7 @@ var view = Marionette.ItemView.extend({
events : {
'click .x-back' : '_back',
'click .x-captcha-refresh' : '_onRefreshCaptcha',
'change .x-root-folder' : '_rootFolderChanged',
'change .x-root-folder' : '_rootFolderChanged',
},
_deleteView : DeleteView,

View file

@ -66,7 +66,11 @@
<label class="col-sm-3 control-label">Quality Profile</label>
<div class="col-sm-5">
{{> ProfileSelectionPartial profiles}}
<select class="form-control x-profile" id="inputProfile" name="profileId">
{{#each profiles}}
<option value="{{id}}">{{name}}</option>
{{/each}}
</select>
</div>
</div>