More validation for Settings.

This commit is contained in:
Mark McDowall 2012-02-25 13:21:41 -08:00
commit c0e0bf7e66
16 changed files with 185 additions and 66 deletions

View file

@ -13,7 +13,7 @@ namespace NzbDrone.Web.Models
[DisplayName("Username")]
[Description("Username for NZB Matrix")]
[DisplayFormat(ConvertEmptyStringToNull = false)]
[RequiredIf("NzbMatrixEnabled", true, ErrorMessage = "USername Required when NZBMatrix is enabled")]
[RequiredIf("NzbMatrixEnabled", true, ErrorMessage = "Username Required when NZBMatrix is enabled")]
public String NzbMatrixUsername { get; set; }
[DataType(DataType.Text)]