sonarr-repo-only/NzbDrone.Web/Views/Settings/QualityProfileItem.cshtml

46 lines
2.1 KiB
Plaintext
Raw Normal View History

@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" id="profile_@(Model.QualityProfileId)">
<div class="qualityHeader">
<span class="titleText" id="title_@(Model.QualityProfileId)">
@Model.Name
2011-12-01 04:19:51 +00:00
</span><a href="#" id="@Model.QualityProfileId" class="deleteProfile" onclick=" deleteProfile('@(Model.QualityProfileId)'); return false;">
<img src="../../Content/Images/X.png" alt="Delete" width="22px" height="22px" /></a>
</div>
<div class="profileOptions">
@Html.LabelFor(x => x.Name)
2011-12-01 04:19:51 +00:00
@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))
</div>
<div class="qualitySelector">
2011-12-01 04:19:51 +00:00
@Html.CheckBoxFor(m => m.Sdtv, new { @class = "quality-selectee" })
@Html.LabelFor(m => m.Sdtv)
2011-12-01 04:19:51 +00:00
@Html.CheckBoxFor(m => m.Dvd, new { @class = "quality-selectee" })
@Html.LabelFor(m => m.Dvd)
2011-12-01 04:19:51 +00:00
@Html.CheckBoxFor(m => m.Hdtv, new { @class = "quality-selectee" })
@Html.LabelFor(m => m.Hdtv)
2011-12-01 04:19:51 +00:00
@Html.CheckBoxFor(m => m.Webdl, new { @class = "quality-selectee" })
@Html.LabelFor(m => m.Webdl)
2011-12-01 04:19:51 +00:00
@Html.CheckBoxFor(m => m.Bluray720p, new { @class = "quality-selectee" })
@Html.LabelFor(m => m.Bluray720p)
2011-12-01 04:19:51 +00:00
@Html.CheckBoxFor(m => m.Bluray1080p, new { @class = "quality-selectee" })
@Html.LabelFor(m => m.Bluray1080p)
</div>
2011-12-01 04:19:51 +00:00
@Html.HiddenFor(x => x.QualityProfileId, new { @class = "qualityProfileId" })
@Html.Hidden("cleanId", idClean, new { @class = "cleanId" })
</div>
}
2011-12-01 04:19:51 +00:00
<script type="text/javascript">
$(function () {
2011-12-01 04:19:51 +00:00
$('.quality-selectee').button();
});
2011-12-01 04:19:51 +00:00
</script>