diff --git a/NzbDrone.Web/Content/Images/Plus.png b/NzbDrone.Web/Content/Images/Plus.png new file mode 100644 index 000000000..08485e98f Binary files /dev/null and b/NzbDrone.Web/Content/Images/Plus.png differ diff --git a/NzbDrone.Web/Content/Images/X.png b/NzbDrone.Web/Content/Images/X.png new file mode 100644 index 000000000..c0fa6abc1 Binary files /dev/null and b/NzbDrone.Web/Content/Images/X.png differ diff --git a/NzbDrone.Web/Content/style.css b/NzbDrone.Web/Content/style.css index d3ca990da..f952f5a7a 100644 --- a/NzbDrone.Web/Content/style.css +++ b/NzbDrone.Web/Content/style.css @@ -1,8 +1,7 @@ h1, h2, h3 { margin: 0; - color: #549900; - text-transform: lowercase; + color: #000000; } body @@ -206,13 +205,13 @@ hr input[type="text"] { border: 1px solid #006; - background: #ffc; + background: #CBE8FF; } input[type="text"]:hover { - border: 1px solid #f00; - background: #ff6; + border: 1px solid #065EFE; + background: #C0D6FF; } .button diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index ab85c70b3..e3db921e6 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -107,6 +107,7 @@ + @@ -148,6 +149,7 @@ + diff --git a/NzbDrone.Web/Views/Settings/Quality.ascx b/NzbDrone.Web/Views/Settings/Quality.ascx index c2649ca86..f351ddefc 100644 --- a/NzbDrone.Web/Views/Settings/Quality.ascx +++ b/NzbDrone.Web/Views/Settings/Quality.ascx @@ -66,27 +66,37 @@ Quality <%: Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.") %> -
- <%= Html.LabelFor(m => m.DefaultProfileId)%> -
-
- <%: Html.DropDownListFor(m => m.DefaultProfileId, Model.SelectList)%> - <%= Html.ValidationMessageFor(m => m.DefaultProfileId)%> -
- -
- -
- <%= Html.ActionLink("Add a New Profile", "AddUserProfile", null, new { id = "addItem" }) %> -
- <%foreach (var item in Model.UserProfiles) { %> - <% Html.RenderPartial("UserProfileSection", item); %> - <% } %> +
+
+ +
+
<%= Html.LabelFor(m => m.DefaultProfileId)%>
+
<%: Html.DropDownListFor(m => m.DefaultProfileId, Model.SelectList)%>
+
<%= Html.ValidationMessageFor(m => m.DefaultProfileId)%>
+
+
+
+ +
+
+ + +
+ <%foreach (var item in Model.UserProfiles) { %> + <% Html.RenderPartial("UserProfileSection", item); %> + <% } %> +
+
+ +
+
-
- <%}%> diff --git a/NzbDrone.Web/Views/Settings/UserProfileSection.ascx b/NzbDrone.Web/Views/Settings/UserProfileSection.ascx index dc9f5ed5a..171573d2a 100644 --- a/NzbDrone.Web/Views/Settings/UserProfileSection.ascx +++ b/NzbDrone.Web/Views/Settings/UserProfileSection.ascx @@ -11,7 +11,7 @@ #sortable1 li { background: #ddd; } #sortable2 li { background: #DAA2A2; } .sortableHeader { margin:2px; margin-left:12px } - #sortable1 li.ui-state-highlight, #sortable2 li.ui-state-highlight { background: #fbf5d0; } + #sortable1 li.ui-state-highlight, #sortable2 li.ui-state-highlight { background: #fbf5d0; border-color: #065EFE; } .removeDiv { float: left; display:block; } @@ -40,69 +40,67 @@
-
- <%----%> +
- <%= Html.TextBoxFor(m => m.AllowedString, new { @id = "allowedString", @style = "display:none" })%> +
+

<%= Html.DisplayTextFor(m => m.Name) %>

+ Delete +
-
+
<%= Html.LabelFor(x => x.Name)%>
<%= Html.TextBoxFor(x => x.Name)%>
<%= Html.ValidationMessageFor(x => x.Name)%>
- -
+
+
+

Allowed

+
    + <% if (Model.Allowed != null) { %> + <%for (int i = 0; i < Model.Allowed.Count(); i++){%> +
  • + <%=Html.RadioButtonFor(x => x.Cutoff, Model.Allowed[i])%> + <%= Html.DisplayTextFor(c => c.Allowed[i]) %> +
  • + <%}%> + <%}%> +
+
+
+

Not-Allowed

+
    + <% var qualitiesList = (List) ViewData["Qualities"]; %> + + <%for (int i = 0; i < qualitiesList.Count(); i++){%> + <% + //Skip Unknown and any item that is in the allowed list + if (qualitiesList[i].ToString() == "Unknown") + continue; + + if (Model.Allowed != null) + { + if (Model.Allowed.Contains(qualitiesList[i])) + continue; + } + %> + +
  • + <%=Html.RadioButtonFor(x => x.Cutoff, qualitiesList[i])%> + <%= Html.Label(qualitiesList[i].ToString()) %> + <%--<%= Html.RenderPartial("ProfileAllowedQualities", Model.Allowed[i]) %>--%> +
  • + + <% } %> +
+
+
<%= Html.TextBoxFor(x => x.ProfileId, new { @style = "display:none" })%> <%= Html.CheckBoxFor(x => x.UserProfile, new { @style = "display:none" })%> + <%= Html.TextBoxFor(m => m.AllowedString, new { @id = "allowedString", @style = "display:none" })%>
- -
- -
-

Allowed

-
    - <% if (Model.Allowed != null) { %> - <%for (int i = 0; i < Model.Allowed.Count(); i++){%> -
  • - <%=Html.RadioButtonFor(x => x.Cutoff, Model.Allowed[i])%> - <%= Html.DisplayTextFor(c => c.Allowed[i]) %> -
  • - <%}%> - <%}%> -
-
- -
-

Not-Allowed

-
    - <% var qualitiesList = (List) ViewData["Qualities"]; %> - - <%for (int i = 0; i < qualitiesList.Count(); i++){%> - <% - //Skip Unknown and any item that is in the allowed list - if (qualitiesList[i].ToString() == "Unknown") - continue; - - if (Model.Allowed != null) - { - if (Model.Allowed.Contains(qualitiesList[i])) - continue; - } - %> - -
  • - <%=Html.RadioButtonFor(x => x.Cutoff, qualitiesList[i])%> - <%= Html.Label(qualitiesList[i].ToString()) %> - <%--<%= Html.RenderPartial("ProfileAllowedQualities", Model.Allowed[i]) %>--%> -
  • - - <% } %> -
-
-