2011-11-29 08:10:43 +03:00
|
|
|
@model NzbDrone.Web.Models.QualityProfileModel
|
2011-04-21 04:43:09 +03:00
|
|
|
@using NzbDrone.Web.Helpers
|
2011-04-22 03:30:19 +03:00
|
|
|
@{
|
|
|
|
Layout = null;
|
|
|
|
}
|
2011-05-29 07:07:11 +03:00
|
|
|
@using (Html.BeginCollectionItem("Profiles"))
|
2011-04-21 04:43:09 +03:00
|
|
|
{
|
|
|
|
var idClean = ViewData.TemplateInfo.HtmlFieldPrefix.Replace('[', '_').Replace(']', '_');
|
|
|
|
|
2012-10-11 10:27:05 +03:00
|
|
|
<div class="profileSection" data-profile-id="@Model.QualityProfileId">
|
2011-07-01 12:10:42 +03:00
|
|
|
<div class="qualityHeader">
|
2012-10-11 10:27:05 +03:00
|
|
|
<span class="titleText">
|
2011-07-01 12:10:42 +03:00
|
|
|
@Model.Name
|
2012-10-11 10:27:05 +03:00
|
|
|
</span>
|
|
|
|
<a href="@Url.Action("DeleteQualityProfile", "Settings", new { profileId = @Model.QualityProfileId })" class="delete-profile">
|
|
|
|
<i class="icon-remove"></i>
|
|
|
|
</a>
|
2011-07-01 12:10:42 +03:00
|
|
|
</div>
|
|
|
|
<div class="profileOptions">
|
|
|
|
@Html.LabelFor(x => x.Name)
|
2011-12-01 07:19:51 +03:00
|
|
|
@Html.TextBoxFor(x => x.Name, new { @class = "profileName_textbox" })
|
2011-07-01 12:10:42 +03:00
|
|
|
@Html.LabelFor(x => x.Cutoff)
|
2012-10-15 02:09:07 +03:00
|
|
|
@Html.DropDownListFor(m => m.Cutoff, new SelectList(Model.Allowed, "Id", "Name", Model.Cutoff))
|
2011-07-01 12:10:42 +03:00
|
|
|
</div>
|
2011-12-09 05:34:10 +03:00
|
|
|
<div class="qualitySelectees">
|
2012-10-15 02:09:07 +03:00
|
|
|
@Html.CheckBoxFor(m => m.Sdtv, new { @class = "quality-selectee", data_quality_id = Model.SdtvId })
|
2011-11-29 08:10:43 +03:00
|
|
|
@Html.LabelFor(m => m.Sdtv)
|
2012-10-15 02:09:07 +03:00
|
|
|
@Html.CheckBoxFor(m => m.Dvd, new { @class = "quality-selectee", data_quality_id = Model.DvdId })
|
2011-11-29 08:10:43 +03:00
|
|
|
@Html.LabelFor(m => m.Dvd)
|
2012-10-15 02:09:07 +03:00
|
|
|
@Html.CheckBoxFor(m => m.Hdtv, new { @class = "quality-selectee", data_quality_id = Model.HdtvId })
|
2011-11-29 08:10:43 +03:00
|
|
|
@Html.LabelFor(m => m.Hdtv)
|
2012-10-15 07:30:07 +03:00
|
|
|
@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 })
|
2011-11-29 08:10:43 +03:00
|
|
|
@Html.LabelFor(m => m.Bluray720p)
|
2012-10-15 07:30:07 +03:00
|
|
|
@Html.CheckBoxFor(m => m.Webdl1080p, new { @class = "quality-selectee", data_quality_id = Model.Webdl1080pId })
|
|
|
|
@Html.LabelFor(m => m.Webdl1080p)
|
2012-10-15 02:09:07 +03:00
|
|
|
@Html.CheckBoxFor(m => m.Bluray1080p, new { @class = "quality-selectee", data_quality_id = Model.Bluray1080pId })
|
2011-11-29 08:10:43 +03:00
|
|
|
@Html.LabelFor(m => m.Bluray1080p)
|
2011-07-01 12:10:42 +03:00
|
|
|
</div>
|
2011-12-01 07:19:51 +03:00
|
|
|
@Html.HiddenFor(x => x.QualityProfileId, new { @class = "qualityProfileId" })
|
|
|
|
@Html.Hidden("cleanId", idClean, new { @class = "cleanId" })
|
2011-07-01 12:10:42 +03:00
|
|
|
</div>
|
2011-11-29 08:10:43 +03:00
|
|
|
}
|