@model NzbDrone.Core.Repository.Quality.QualityProfile @using System.Collections @using NzbDrone.Core.Repository.Quality @using NzbDrone.Web.Helpers @{ Layout = null; } @using (Html.BeginCollectionItem("Profiles")) { var idClean = ViewData.TemplateInfo.HtmlFieldPrefix.Replace('[', '_').Replace(']', '_');
@Model.Name Delete
@Html.LabelFor(x => x.Name) @Html.TextBoxFor(x => x.Name, new {@class = "profileName_textbox"}) @Html.LabelFor(x => x.Cutoff) @Html.DropDownListFor(m => m.Cutoff, new SelectList(Model.Allowed, Model.Cutoff))
@{ var qualitiesList = (List) ViewData["Qualities"]; } @for (int i = 0; i < qualitiesList.Count(); i++) { if (qualitiesList[i].ToString() == "Unknown") { continue; } if (Model.Allowed != null) { if (Model.Allowed.Contains(qualitiesList[i])) {
@qualitiesList[i].ToString()
continue; } }
@qualitiesList[i].ToString()
}
@Html.HiddenFor(x => x.QualityProfileId, new {@class = "qualityProfileId"}) @Html.HiddenFor(m => m.AllowedString) @Html.Hidden("cleanId", idClean, new {@class = "cleanId"})
}