<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <%@ Import Namespace="NzbDrone.Core.Repository.Quality" %> <%@ Import Namespace="NzbDrone.Web.Helpers" %> <% using (Html.BeginForm("SaveQuality", "Settings", FormMethod.Post, new { id = "form", name = "form" })) {%>
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); %> <% } %>

<%}%>