diff --git a/NzbDrone.Core/Repository/Quality/QualityProfile.cs b/NzbDrone.Core/Repository/Quality/QualityProfile.cs index 58a99f965..c12cc0ca0 100644 --- a/NzbDrone.Core/Repository/Quality/QualityProfile.cs +++ b/NzbDrone.Core/Repository/Quality/QualityProfile.cs @@ -9,10 +9,12 @@ namespace NzbDrone.Core.Repository.Quality { [SubSonicPrimaryKey(true)] public int ProfileId { get; set; } + [DisplayName("Name")] public string Name { get; set; } public bool UserProfile { get; set; } //Allows us to tell the difference between default and user profiles [SubSonicIgnore] + [DisplayName("Allowed Qualities")] public List Allowed { get; set; } public QualityTypes Cutoff { get; set; } diff --git a/NzbDrone.Web/Controllers/SettingsController.cs b/NzbDrone.Web/Controllers/SettingsController.cs index b14643346..a046f03f2 100644 --- a/NzbDrone.Web/Controllers/SettingsController.cs +++ b/NzbDrone.Web/Controllers/SettingsController.cs @@ -123,6 +123,11 @@ namespace NzbDrone.Web.Controllers return View("Index", model); } + public ViewResult AddUserProfile() + { + return View("UserProfileSection", new QualityProfile()); + } + public ActionResult SubMenu() { return PartialView(); diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index 9edf18717..8acdd5879 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -269,6 +269,9 @@ + + + Designer diff --git a/NzbDrone.Web/Views/Settings/Quality.ascx b/NzbDrone.Web/Views/Settings/Quality.ascx index 1193ed0ff..f73fd1fcb 100644 --- a/NzbDrone.Web/Views/Settings/Quality.ascx +++ b/NzbDrone.Web/Views/Settings/Quality.ascx @@ -1,4 +1,5 @@ <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> +<%@ Import Namespace="NzbDrone.Core.Repository.Quality" %> --%> + + \ No newline at end of file diff --git a/NzbDrone.Web/Views/Settings/UserProfileSection.ascx b/NzbDrone.Web/Views/Settings/UserProfileSection.ascx new file mode 100644 index 000000000..9a9f892fd --- /dev/null +++ b/NzbDrone.Web/Views/Settings/UserProfileSection.ascx @@ -0,0 +1,9 @@ +<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> + +
+ <%= Html.LabelFor(m => m.Name) %> +
+
+ <%: Html.TextBoxFor(m => m.Name)%> + <%= Html.ValidationMessageFor(m => m.Name)%> +
\ No newline at end of file diff --git a/NzbDrone.Web/Views/Shared/Site.Master b/NzbDrone.Web/Views/Shared/Site.Master index 8bef89d9d..1a6749e59 100644 --- a/NzbDrone.Web/Views/Shared/Site.Master +++ b/NzbDrone.Web/Views/Shared/Site.Master @@ -19,7 +19,7 @@ - + <%----%> @@ -52,7 +52,8 @@ <% Html.Telerik().ScriptRegistrar().Scripts( - c => c.Add("jquery-ui-1.8.8.min.js") + c => c.Add("jquery-1.4.3.min.js") + .Add("jquery-ui-1.8.8.min.js") .Add("jquery.form.js") .Add("jquery.jgrowl.js") .Add("Notification.js")