|
|
|
@model NzbDrone.Web.Models.QualityProfileModel
|
|
|
|
@using NzbDrone.Web.Helpers
|
|
|
|
@{
|
|
|
|
Layout = null;
|
|
|
|
}
|
|
|
|
@using (Html.BeginCollectionItem("Profiles"))
|
|
|
|
{
|
|
|
|
var idClean = ViewData.TemplateInfo.HtmlFieldPrefix.Replace('[', '_').Replace(']', '_');
|
|
|
|
|
|
|
|
<div class="profileSection" data-profile-id="@Model.QualityProfileId">
|
|
|
|
<div class="qualityHeader">
|
|
|
|
<span class="titleText">
|
|
|
|
@Model.Name
|
|
|
|
</span>
|
|
|
|
<a href="@Url.Action("DeleteQualityProfile", "Settings", new { profileId = @Model.QualityProfileId })" class="delete-profile">
|
|
|
|
<i class="icon-remove"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="profileOptions">
|
|
|
|
@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, "Id", "Name", Model.Cutoff))
|
|
|
|
</div>
|
|
|
|
<div class="qualitySelectees">
|
|
|
|
@Html.CheckBoxFor(m => m.Sdtv, new { @class = "quality-selectee", data_quality_id = Model.SdtvId })
|
|
|
|
@Html.LabelFor(m => m.Sdtv)
|
|
|
|
@Html.CheckBoxFor(m => m.Dvd, new { @class = "quality-selectee", data_quality_id = Model.DvdId })
|
|
|
|
@Html.LabelFor(m => m.Dvd)
|
|
|
|
@Html.CheckBoxFor(m => m.Hdtv, new { @class = "quality-selectee", data_quality_id = Model.HdtvId })
|
|
|
|
@Html.LabelFor(m => m.Hdtv)
|
|
|
|
@Html.CheckBoxFor(m => m.Webdl720p, new { @class = "quality-selectee", data_quality_id = Model.Webdl720pId })
|
|
|
|
@Html.LabelFor(m => m.Webdl720p)
|
|
|
|
@Html.CheckBoxFor(m => m.Bluray720p, new { @class = "quality-selectee", data_quality_id = Model.Bluray720pId })
|
|
|
|
@Html.LabelFor(m => m.Bluray720p)
|
|
|
|
@Html.CheckBoxFor(m => m.Webdl1080p, new { @class = "quality-selectee", data_quality_id = Model.Webdl1080pId })
|
|
|
|
@Html.LabelFor(m => m.Webdl1080p)
|
|
|
|
@Html.CheckBoxFor(m => m.Bluray1080p, new { @class = "quality-selectee", data_quality_id = Model.Bluray1080pId })
|
|
|
|
@Html.LabelFor(m => m.Bluray1080p)
|
|
|
|
</div>
|
|
|
|
@Html.HiddenFor(x => x.QualityProfileId, new { @class = "qualityProfileId" })
|
|
|
|
@Html.Hidden("cleanId", idClean, new { @class = "cleanId" })
|
|
|
|
</div>
|
|
|
|
}
|