Validation changes, moved JS for Client-Side validation to Settings/Index.aspx

Still need to sort out validation for Quality Cutoff (not part of the Model so it seems to cause issues).
This commit is contained in:
markus101 2011-02-14 16:45:31 -08:00
commit b2524cf697
5 changed files with 29 additions and 27 deletions

View file

@ -11,6 +11,7 @@ namespace NzbDrone.Core.Repository.Quality
[SubSonicPrimaryKey(true)]
public int ProfileId { get; set; }
[Required (ErrorMessage = "A Name is Required")]
[DisplayName("Name")]
public string Name { get; set; }
public bool UserProfile { get; set; } //Allows us to tell the difference between default and user profiles