1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-06 02:52:41 +01:00

Merge branch 'kay.one' of github.com:NzbDrone/NzbDrone into markus

This commit is contained in:
Mark McDowall 2011-11-30 21:08:53 -08:00
commit 3c09533976
12 changed files with 430 additions and 449 deletions

View File

@ -68,7 +68,7 @@ public JsonResult TestResults(string q)
public ActionResult Index() public ActionResult Index()
{ {
return RedirectToAction("Indexers"); return View();
} }
public ActionResult Indexers() public ActionResult Indexers()

View File

@ -518,6 +518,12 @@
<LastGenOutput>EditorLocalization.en-US.designer.cs</LastGenOutput> <LastGenOutput>EditorLocalization.en-US.designer.cs</LastGenOutput>
</Content> </Content>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Include="Views\Settings\Index.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Views\Shared\_RefrenceLayout.cshtml" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" /> <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View File

@ -1,24 +1,21 @@
@using NzbDrone.Core.Repository @section TitleContent{
@section TitleContent{
Add Series Add Series
} }
@section Scripts @section Scripts
{ {
<script type="text/javascript" src="../../Scripts/NzbDrone/addSeries.js"></script> <script type="text/javascript" src="../../Scripts/NzbDrone/addSeries.js"></script>
} }
@section MainContent{ <h2>
<h2>
Add New Series</h2> Add New Series</h2>
<div id="addNewSeries"> <div id="addNewSeries">
@{ Html.RenderAction("AddNew", "AddSeries"); } @{ Html.RenderAction("AddNew", "AddSeries"); }
</div> </div>
<h2> <h2>
Add Series Already on Disk</h2> Add Series Already on Disk</h2>
<h3> <h3>
Manage Root Folders Manage Root Folders
</h3> </h3>
@{Html.RenderAction("RootDir");} @{Html.RenderAction("RootDir");}
<div id="existingSeries"> <div id="existingSeries">
@{ Html.RenderAction("ExistingSeries", "AddSeries"); } @{ Html.RenderAction("ExistingSeries", "AddSeries"); }
</div> </div>
}

View File

@ -0,0 +1,24 @@
@section TitleContent
{
Settings
}
@section Scripts
{
<script type="text/javascript">
$(function () {
$("#tabs222").tabs();
});
</script>
}
@section MainContent{
<div id="tabs222">
<ul>
<li>@Html.ActionLink("Naming", "Naming", "Settings")</li>
<li>@Html.ActionLink("Indexers", "Indexers", "Settings")</li>
<li>@Html.ActionLink("Quality", "Quality", "Settings")</li>
<li>@Html.ActionLink("SABnzbd", "Sabnzbd", "Settings")</li>
<li>@Html.ActionLink("Notifications", "Notifications", "Settings")</li>
<li>@Html.ActionLink("System", "System", "Settings")</li>
</ul>
</div>
}

View File

@ -1,5 +1,6 @@
@using NzbDrone.Web.Helpers @using NzbDrone.Web.Helpers
@model NzbDrone.Web.Models.IndexerSettingsModel @model NzbDrone.Web.Models.IndexerSettingsModel
@{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@section HeaderContent{ @section HeaderContent{
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
<link rel="stylesheet" type="text/css" href="../../Content/IndexerSettings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/IndexerSettings.css" />
@ -10,16 +11,9 @@
} }
</style> </style>
} }
@section TitleContent{ <div class="infoBox">
Settings > Indexers
}
@section ActionMenu{
@{Html.RenderPartial("SubMenu");}
}
@section MainContent{
<div class="infoBox">
RSS feeds are checked every 15 minutes for new episodes.</div> RSS feeds are checked every 15 minutes for new episodes.</div>
<div id="stylized"> <div id="stylized">
@using (Html.BeginForm("SaveIndexers", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" })) @using (Html.BeginForm("SaveIndexers", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" }))
{ {
@Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.") @Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.")
@ -115,8 +109,7 @@ Settings > Indexers
<button type="submit" id="save_button" disabled="disabled"> <button type="submit" id="save_button" disabled="disabled">
Save</button> Save</button>
} }
</div> </div>
}
@section Scripts{ @section Scripts{
<script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script> <script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">

View File

@ -1,9 +1,8 @@
@using NzbDrone.Web.Helpers @using NzbDrone.Web.Helpers
@model NzbDrone.Web.Models.EpisodeNamingModel @model NzbDrone.Web.Models.EpisodeNamingModel
@{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@section HeaderContent{ @section HeaderContent{
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
<style> <style>
#examples #examples
{ {
@ -18,16 +17,6 @@
} }
</style> </style>
} }
@section TitleContent{
Settings > Naming
}
@section ActionMenu{
@{Html.RenderPartial("SubMenu");}
}
@section MainContent{
<div id="stylized"> <div id="stylized">
@using (Html.BeginForm("SaveNaming", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" })) @using (Html.BeginForm("SaveNaming", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" }))
{ {
@ -37,60 +26,54 @@
<span class="small">@Html.DescriptionFor(m => m.SeriesName)</span> <span class="small">@Html.DescriptionFor(m => m.SeriesName)</span>
</label> </label>
@Html.CheckBoxFor(m => m.SeriesName, new { @class = "inputClass checkClass" }) @Html.CheckBoxFor(m => m.SeriesName, new { @class = "inputClass checkClass" })
<label class="labelClass">@Html.LabelFor(m => m.EpisodeName) <label class="labelClass">@Html.LabelFor(m => m.EpisodeName)
<span class="small">@Html.DescriptionFor(m => m.EpisodeName)</span> <span class="small">@Html.DescriptionFor(m => m.EpisodeName)</span>
</label> </label>
@Html.CheckBoxFor(m => m.EpisodeName, new { @class = "inputClass checkClass" }) @Html.CheckBoxFor(m => m.EpisodeName, new { @class = "inputClass checkClass" })
<label class="labelClass">@Html.LabelFor(m => m.ReplaceSpaces) <label class="labelClass">@Html.LabelFor(m => m.ReplaceSpaces)
<span class="small">@Html.DescriptionFor(m => m.ReplaceSpaces)</span> <span class="small">@Html.DescriptionFor(m => m.ReplaceSpaces)</span>
</label> </label>
@Html.CheckBoxFor(m => m.ReplaceSpaces, new { @class = "inputClass checkClass" }) @Html.CheckBoxFor(m => m.ReplaceSpaces, new { @class = "inputClass checkClass" })
<label class="labelClass">@Html.LabelFor(m => m.AppendQuality) <label class="labelClass">@Html.LabelFor(m => m.AppendQuality)
<span class="small">@Html.DescriptionFor(m => m.AppendQuality)</span> <span class="small">@Html.DescriptionFor(m => m.AppendQuality)</span>
</label> </label>
@Html.CheckBoxFor(m => m.AppendQuality, new { @class = "inputClass checkClass" }) @Html.CheckBoxFor(m => m.AppendQuality, new { @class = "inputClass checkClass" })
<label class="labelClass">@Html.LabelFor(m => m.SeasonFolders) <label class="labelClass">@Html.LabelFor(m => m.SeasonFolders)
<span class="small">@Html.DescriptionFor(m => m.SeasonFolders)</span> <span class="small">@Html.DescriptionFor(m => m.SeasonFolders)</span>
</label> </label>
@Html.CheckBoxFor(m => m.SeasonFolders, new { @class = "inputClass checkClass" }) @Html.CheckBoxFor(m => m.SeasonFolders, new { @class = "inputClass checkClass" })
<label class="labelClass">@Html.LabelFor(m => m.SeasonFolderFormat) <label class="labelClass">@Html.LabelFor(m => m.SeasonFolderFormat)
<span class="small">@Html.DescriptionFor(m => m.SeasonFolderFormat)</span> <span class="small">@Html.DescriptionFor(m => m.SeasonFolderFormat)</span>
</label> </label>
@Html.TextBoxFor(m => m.SeasonFolderFormat, new { @class = "inputClass" }) @Html.TextBoxFor(m => m.SeasonFolderFormat, new { @class = "inputClass" })
<label class="labelClass">@Html.LabelFor(m => m.SeparatorStyle) <label class="labelClass">@Html.LabelFor(m => m.SeparatorStyle)
<span class="small">@Html.DescriptionFor(m => m.SeparatorStyle)</span> <span class="small">@Html.DescriptionFor(m => m.SeparatorStyle)</span>
</label> </label>
@Html.DropDownListFor(m => m.SeparatorStyle, Model.SeparatorStyles, new { @class = "inputClass selectClass" }) @Html.DropDownListFor(m => m.SeparatorStyle, Model.SeparatorStyles, new { @class = "inputClass selectClass" })
<label class="labelClass">@Html.LabelFor(m => m.NumberStyle) <label class="labelClass">@Html.LabelFor(m => m.NumberStyle)
<span class="small">@Html.DescriptionFor(m => m.NumberStyle)</span> <span class="small">@Html.DescriptionFor(m => m.NumberStyle)</span>
</label> </label>
@Html.DropDownListFor(m => m.NumberStyle, Model.NumberStyles, new { @class = "inputClass selectClass" }) @Html.DropDownListFor(m => m.NumberStyle, Model.NumberStyles, new { @class = "inputClass selectClass" })
<label class="labelClass">@Html.LabelFor(m => m.MultiEpisodeStyle) <label class="labelClass">@Html.LabelFor(m => m.MultiEpisodeStyle)
<span class="small">@Html.DescriptionFor(m => m.MultiEpisodeStyle)</span> <span class="small">@Html.DescriptionFor(m => m.MultiEpisodeStyle)</span>
</label> </label>
@Html.DropDownListFor(m => m.MultiEpisodeStyle, Model.MultiEpisodeStyles, new { @class = "inputClass selectClass" }) @Html.DropDownListFor(m => m.MultiEpisodeStyle, Model.MultiEpisodeStyles, new { @class = "inputClass selectClass" })
</div> </div>
<div id ="examples"> <div id="examples">
<div id="singleEpisodeExample"><b>Single Episode Example: </b><span class="result"></span></div> <div id="singleEpisodeExample">
<div id="multiEpisodeExample"><b>Multi-Episode Example: </b><span class="result"></span></div> <b>Single Episode Example: </b><span class="result"></span>
</div>
<div id="multiEpisodeExample">
<b>Multi-Episode Example: </b><span class="result"></span>
</div>
</div> </div>
<button type="submit" id="save_button" disabled="disabled">Save</button> <button type="submit" id="save_button" disabled="disabled">
Save</button>
} }
</div> </div>
}
@section Scripts{ @section Scripts{
<script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script> <script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function () { $(document).ready(function () {
createExamples(); createExamples();

View File

@ -1,9 +1,7 @@
@using NzbDrone.Web.Helpers @model NzbDrone.Web.Models.NotificationSettingsModel
@model NzbDrone.Web.Models.NotificationSettingsModel @{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@section HeaderContent{ @section HeaderContent{
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
<style> <style>
.notifier .notifier
{ {
@ -31,47 +29,36 @@
} }
</style> </style>
} }
<div id="stylized">
@section TitleContent{
Settings > Notifications
}
@section ActionMenu{
@{Html.RenderPartial("SubMenu");}
}
@section MainContent{
<div id="stylized">
@using (Html.BeginForm("SaveNotifications", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" })) @using (Html.BeginForm("SaveNotifications", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" }))
{ {
<div id="accordion"> <div id="accordion2">
<h3><a href="#">XBMC</a></h3> <h3>
<a href="#">XBMC</a></h3>
@{Html.RenderPartial("Xbmc", Model);} @{Html.RenderPartial("Xbmc", Model);}
<h3>
<h3><a href="#">SMTP</a></h3> <a href="#">SMTP</a></h3>
@{Html.RenderPartial("Smtp", Model);} @{Html.RenderPartial("Smtp", Model);}
<h3>
<h3><a href="#">Twitter</a></h3> <a href="#">Twitter</a></h3>
@{Html.RenderPartial("Twitter", Model);} @{Html.RenderPartial("Twitter", Model);}
<h3>
<h3><a href="#">Growl</a></h3> <a href="#">Growl</a></h3>
@{Html.RenderPartial("Growl", Model);} @{Html.RenderPartial("Growl", Model);}
<h3>
<h3><a href="#">Prowl</a></h3> <a href="#">Prowl</a></h3>
@{Html.RenderPartial("Prowl", Model);} @{Html.RenderPartial("Prowl", Model);}
</div> </div>
<button type="submit" id="save_button" disabled="disabled">Save</button> <button type="submit" id="save_button" disabled="disabled">
Save</button>
} }
</div> </div>
}
@section Scripts{ @section Scripts{
<script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script> <script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
$("#accordion").accordion({ $("#accordion2").accordion({
autoHeight: false autoHeight: false
}); });
}); });
@ -84,10 +71,10 @@
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: getAuthorizationUrl, url: getAuthorizationUrl,
error: function(req, status, error) { error: function (req, status, error) {
alert("Sorry! We could get Twitter Authorization at this time. " + error); alert("Sorry! We could get Twitter Authorization at this time. " + error);
}, },
success: function(data, textStatus, jqXHR) { success: function (data, textStatus, jqXHR) {
if (data.IsMessage) if (data.IsMessage)
return false; return false;
@ -105,7 +92,7 @@
type: "GET", type: "GET",
url: verifyAuthorizationUrl, url: verifyAuthorizationUrl,
data: jQuery.param({ token: token, verifier: verifier }), data: jQuery.param({ token: token, verifier: verifier }),
error: function(req, status, error) { error: function (req, status, error) {
alert("Sorry! We could verify Twitter Authorization at this time. " + error); alert("Sorry! We could verify Twitter Authorization at this time. " + error);
} }
}); });
@ -142,5 +129,5 @@
return false; return false;
} }
</script> </script>
} }

View File

@ -1,18 +1,12 @@
@using NzbDrone.Core.Repository.Quality @using NzbDrone.Core.Repository.Quality
@using NzbDrone.Web.Helpers; @using NzbDrone.Web.Helpers;
@model NzbDrone.Web.Models.QualityModel @model NzbDrone.Web.Models.QualityModel
@{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@section HeaderContent{ @section HeaderContent{
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
<link href="../../Content/QualitySettings.css" rel="stylesheet" type="text/css" /> <link href="../../Content/QualitySettings.css" rel="stylesheet" type="text/css" />
} }
@section TitleContent{ <div id="stylized">
Settings > Quality
}
@section ActionMenu{
@{Html.RenderPartial("SubMenu");}
}
@section MainContent{
<div id="stylized">
@using (Html.BeginForm("SaveQuality", "Settings", FormMethod.Post, new { id = "form", name = "form" })) @using (Html.BeginForm("SaveQuality", "Settings", FormMethod.Post, new { id = "form", name = "form" }))
{ {
<div id="top" class="settingsForm"> <div id="top" class="settingsForm">
@ -20,48 +14,54 @@ Settings > Quality
<span class="small">@Html.DescriptionFor(m => m.DefaultQualityProfileId)</span> <span class="small">@Html.DescriptionFor(m => m.DefaultQualityProfileId)</span>
</label> </label>
@Html.DropDownListFor(m => m.DefaultQualityProfileId, Model.QualityProfileSelectList, new { @class = "inputClass" }) @Html.DropDownListFor(m => m.DefaultQualityProfileId, Model.QualityProfileSelectList, new { @class = "inputClass" })
<div class="sliders"> <div class="sliders">
<div class="slider-container"> <div class="slider-container">
<b>SDTV</b> <b>SDTV</b>
<div id="sdtv-slider" class="slider"></div> <div id="sdtv-slider" class="slider">
@Html.HiddenFor(m => m.SdtvMaxSize, new { @class="slider-value" }) </div>
30 minute size: <span class="30-minute"></span> | 60 minute size: <span class="60-minute"></span> @Html.HiddenFor(m => m.SdtvMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span>| 60 minute size: <span class="60-minute">
</span>
</div> </div>
<div class="slider-container"> <div class="slider-container">
<b>DVD</b> <b>DVD</b>
<div id="dvd-slider" class="slider"></div> <div id="dvd-slider" class="slider">
@Html.HiddenFor(m => m.DvdMaxSize, new { @class = "slider-value" }) </div>
30 minute size: <span class="30-minute"></span> | 60 minute size: <span class="60-minute"></span> @Html.HiddenFor(m => m.DvdMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span>| 60 minute size: <span class="60-minute">
</span>
</div> </div>
<div class="slider-container"> <div class="slider-container">
<b>HDTV</b> <b>HDTV</b>
<div id="hdtv-slider" class="slider"></div> <div id="hdtv-slider" class="slider">
@Html.HiddenFor(m => m.HdtvMaxSize, new { @class = "slider-value" }) </div>
30 minute size: <span class="30-minute"></span> | 60 minute size: <span class="60-minute"></span> @Html.HiddenFor(m => m.HdtvMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span>| 60 minute size: <span class="60-minute">
</span>
</div> </div>
<div class="slider-container"> <div class="slider-container">
<b>WEBDL</b> <b>WEBDL</b>
<div id="webdl-slider" class="slider"></div> <div id="webdl-slider" class="slider">
@Html.HiddenFor(m => m.WebdlMaxSize, new { @class = "slider-value" }) </div>
30 minute size: <span class="30-minute"></span> | 60 minute size: <span class="60-minute"></span> @Html.HiddenFor(m => m.WebdlMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span>| 60 minute size: <span class="60-minute">
</span>
</div> </div>
<div class="slider-container"> <div class="slider-container">
<b>Bluray 720p</b> <b>Bluray 720p</b>
<div id="bluray720p-slider" class="slider"></div> <div id="bluray720p-slider" class="slider">
@Html.HiddenFor(m => m.Bluray720pMaxSize, new { @class = "slider-value" }) </div>
30 minute size: <span class="30-minute"></span> | 60 minute size: <span class="60-minute"></span> @Html.HiddenFor(m => m.Bluray720pMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span>| 60 minute size: <span class="60-minute">
</span>
</div> </div>
<div class="slider-container"> <div class="slider-container">
<b>Bluray 1080p</b> <b>Bluray 1080p</b>
<div id="bluray1080p-slider" class="slider"></div> <div id="bluray1080p-slider" class="slider">
</div>
@Html.HiddenFor(m => m.Bluray1080pMaxSize, new { @class = "slider-value" }) @Html.HiddenFor(m => m.Bluray1080pMaxSize, new { @class = "slider-value" })
30 minute size: <span class="30-minute"></span> | 60 minute size: <span class="60-minute"></span> 30 minute size: <span class="30-minute"></span>| 60 minute size: <span class="60-minute">
</span>
</div> </div>
</div> </div>
</div> </div>
@ -81,14 +81,13 @@ Settings > Quality
</div> </div>
</div> </div>
<br /> <br />
<button type="submit" id="save_button" disabled="disabled">Save</button> <button type="submit" id="save_button" disabled="disabled">
Save</button>
</div> </div>
} }
</div> </div>
}
@section Scripts{ @section Scripts{
<script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script> <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="../../Scripts/jquery.validate.unobtrusive.min.js"type="text/javascript"></script>
<script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script> <script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
var deleteQualityProfileUrl = '@Url.Action("DeleteQualityProfile", "Settings")'; var deleteQualityProfileUrl = '@Url.Action("DeleteQualityProfile", "Settings")';
@ -196,12 +195,12 @@ Settings > Quality
max: 200, max: 200,
value: 0, value: 0,
step: 1, step: 1,
create: function( event, ui ) { create: function (event, ui) {
var startingValue = $(this).siblings('.slider-value').val(); var startingValue = $(this).siblings('.slider-value').val();
$(this).siblings('.30-minute').text(startingValue * 30); $(this).siblings('.30-minute').text(startingValue * 30);
$(this).siblings('.60-minute').text(startingValue * 60); $(this).siblings('.60-minute').text(startingValue * 60);
}, },
slide: function( event, ui ) { slide: function (event, ui) {
$(this).siblings('.slider-value').val(ui.value); $(this).siblings('.slider-value').val(ui.value);
$(this).siblings('.30-minute').text(ui.value * 30); $(this).siblings('.30-minute').text(ui.value * 30);
$(this).siblings('.60-minute').text(ui.value * 60); $(this).siblings('.60-minute').text(ui.value * 60);
@ -209,7 +208,7 @@ Settings > Quality
}; };
function setupSliders() { function setupSliders() {
$(".slider").each(function() { $(".slider").each(function () {
var localOptions = sliderOptions; var localOptions = sliderOptions;
localOptions["value"] = $(this).siblings('.slider-value').val(); localOptions["value"] = $(this).siblings('.slider-value').val();

View File

@ -1,27 +1,18 @@
@using NzbDrone.Web.Helpers; @using NzbDrone.Web.Helpers;
@model NzbDrone.Web.Models.SabnzbdSettingsModel @model NzbDrone.Web.Models.SabnzbdSettingsModel
@{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@section HeaderContent{ @section HeaderContent{
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
} }
<div id="stylized">
@section TitleContent{
Settings > Sabnzbd
}
@section ActionMenu{
@{Html.RenderPartial("SubMenu");}
}
@section MainContent{
<div id="stylized">
@using (Html.BeginForm("SaveSabnzbd", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" })) @using (Html.BeginForm("SaveSabnzbd", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" }))
{ {
<label class="labelClass">Auto-Configure <label class="labelClass">
<span class="small">If access to SABnzbd doesn't require a username + password and is on the same system as NzbDrone, you can auto-configure it</span> Auto-Configure <span class="small">If access to SABnzbd doesn't require a username +
password and is on the same system as NzbDrone, you can auto-configure it</span>
</label> </label>
<input type="button" onclick="autoConfigureSab(); return false;" value="Auto-Configure" class="inputClass"/> <input type="button" onclick="autoConfigureSab(); return false;" value="Auto-Configure"
class="inputClass" />
<label class="labelClass">@Html.LabelFor(m => m.SabHost) <label class="labelClass">@Html.LabelFor(m => m.SabHost)
<span class="small">@Html.DescriptionFor(m => m.SabHost)</span> <span class="small">@Html.DescriptionFor(m => m.SabHost)</span>
@ -63,16 +54,14 @@
</label> </label>
@Html.TextBoxFor(m => m.SabDropDirectory, new { @class = "inputClass folderLookup" }) @Html.TextBoxFor(m => m.SabDropDirectory, new { @class = "inputClass folderLookup" })
<button type="submit" id="save_button" disabled="disabled">Save</button> <button type="submit" id="save_button" disabled="disabled">
Save</button>
} }
</div> </div>
<div id="result" class="hiddenResult">
<div id="result" class="hiddenResult"></div> </div>
}
@section Scripts{ @section Scripts{
<script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script> <script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script>
<script type="text/javascript"> <script type="text/javascript">
var autoConfigureSabUrl = '@Url.Action("AutoConfigureSab", "Settings")'; var autoConfigureSabUrl = '@Url.Action("AutoConfigureSab", "Settings")';

View File

@ -1,19 +1,10 @@
@using NzbDrone.Web.Helpers @using NzbDrone.Web.Helpers
@model NzbDrone.Web.Models.SystemSettingsModel @model NzbDrone.Web.Models.SystemSettingsModel
@{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@section HeaderContent{ @section HeaderContent{
<link rel="stylesheet" type="text/css" href="../../Content/Settings.css" /> <link rel="stylesheet" type="text/css" href="../../Content/Settings.css" />
} }
@section TitleContent{
Settings > System
}
@section ActionMenu{
@{Html.RenderPartial("SubMenu");}
}
@section MainContent{
<div id="stylized"> <div id="stylized">
@using (Html.BeginForm("SaveSystem", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" })) @using (Html.BeginForm("SaveSystem", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" }))
{ {
@ -33,10 +24,10 @@
</label> </label>
@Html.DropDownListFor(m => m.AuthenticationType, Model.AuthTypeSelectList, new { @class = "inputClass" }) @Html.DropDownListFor(m => m.AuthenticationType, Model.AuthTypeSelectList, new { @class = "inputClass" })
<button type="submit" id="save_button" disabled="disabled">Save</button> <button type="submit" id="save_button" disabled="disabled">
Save</button>
} }
</div> </div>
}
@section Scripts{ @section Scripts{
<script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script> <script src="../../Scripts/NzbDrone/settingsForm.js" type="text/javascript"></script>
} }

View File

@ -1,24 +1,13 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@{ Layout = "~/Views/Shared/_RefrenceLayout.cshtml"; }
@using NzbDrone.Common @using NzbDrone.Common
@using NzbDrone.Web.Helpers @using NzbDrone.Web.Helpers
@using Telerik.Web.Mvc.UI @section HeaderContent
<html xmlns="http://www.w3.org/1999/xhtml"> {
<head runat="server">
<link rel="SHORTCUT ICON" href="../../favicon.ico" />
<title>NzbDrone</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link type="text/css" rel="stylesheet" href="../../Content/2011.3.1115/telerik.common.min.css" />
<link type="text/css" rel="stylesheet" href="../../Content/2011.3.1115/telerik.sitefinity.min.css" />
<link type="text/css" rel="stylesheet" href="../../Content/jQueryUI/jquery-ui-1.8.16.custom.css" />
<link type="text/css" rel="stylesheet" href="../../Content/jquery.gritter.css" />
<link type="text/css" rel="stylesheet" href="../../Content/NzbDrone.css" />
<link type="text/css" rel="stylesheet" href="../../Content/ActionButton.css" />
<link type="text/css" rel="stylesheet" href="../../Content/overrides.css" />
<link type="text/css" rel="stylesheet" href="../../Content/Menu.css" />
<link type="text/css" rel="stylesheet" href="../../Content/Messages.css" />
@MvcMiniProfiler.MiniProfiler.RenderIncludes() @MvcMiniProfiler.MiniProfiler.RenderIncludes()
@RenderSection("HeaderContent", required: false) @RenderSection("HeaderContent", required: false)
</head> }
<body> <body>
<div id="centered"> <div id="centered">
<div id="menu"> <div id="menu">
@ -30,14 +19,13 @@
@MvcHtmlString.Create(Html.CurrentActionLink("Settings", "Index", "Settings")) @MvcHtmlString.Create(Html.CurrentActionLink("Settings", "Index", "Settings"))
@MvcHtmlString.Create(Html.CurrentActionLink("Logs", "Index", "Log")) @MvcHtmlString.Create(Html.CurrentActionLink("Logs", "Index", "Log"))
</ul> </ul>
<input id="localSeriesLookup" type="text"/> <input id="localSeriesLookup" type="text" />
</div> </div>
<div id="logo"> <div id="logo">
@RenderSection("TitleContent", required: false) @RenderSection("TitleContent", required: false)
</div> </div>
<div id="page"> <div id="page">
@RenderSection("ActionMenu", required: false) @RenderSection("ActionMenu", required: false)
@RenderSection("MainContent", required: false)
@RenderBody() @RenderBody()
</div> </div>
<div id="footer"> <div id="footer">
@ -47,20 +35,8 @@
<div id="msgBox"> <div id="msgBox">
<span id="msgText">background notification</span> <span id="msgText">background notification</span>
</div> </div>
@(Html.Telerik().ScriptRegistrar().jQuery(true)) @section Scripts
<script type="text/javascript" src="../../Scripts/jquery-ui-1.8.16.min.js"></script> {
<script type="text/javascript" src="../../Scripts/MicrosoftAjax.js"></script>
<script type="text/javascript" src="../../Scripts/MicrosoftMvcAjax.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.gritter.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.form.js"></script>
<script type="text/javascript" src="../../Scripts/jquery-tgc-countdown-1.0.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.watermark.min.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.hotkeys.js"></script>
<script type="text/javascript" src="../../Scripts/doTimeout.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/episodeSearch.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/AutoComplete.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/LocalSearch.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/Notification.js"></script>
@RenderSection("Scripts", required: false) @RenderSection("Scripts", required: false)
@if (EnviromentProvider.IsProduction) @if (EnviromentProvider.IsProduction)
{ {
@ -78,5 +54,4 @@
})(); })();
</script> </script>
} }
</body> }
</html>

View File

@ -0,0 +1,37 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@using Telerik.Web.Mvc.UI
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link rel="SHORTCUT ICON" href="../../favicon.ico" />
<title>NzbDrone</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link type="text/css" rel="stylesheet" href="../../Content/2011.3.1115/telerik.common.min.css" />
<link type="text/css" rel="stylesheet" href="../../Content/2011.3.1115/telerik.sitefinity.min.css" />
<link type="text/css" rel="stylesheet" href="../../Content/jQueryUI/jquery-ui-1.8.16.custom.css" />
<link type="text/css" rel="stylesheet" href="../../Content/jquery.gritter.css" />
<link type="text/css" rel="stylesheet" href="../../Content/NzbDrone.css" />
<link type="text/css" rel="stylesheet" href="../../Content/ActionButton.css" />
<link type="text/css" rel="stylesheet" href="../../Content/overrides.css" />
<link type="text/css" rel="stylesheet" href="../../Content/Menu.css" />
<link type="text/css" rel="stylesheet" href="../../Content/Messages.css" />
@RenderSection("HeaderContent", required: false)
</head>
<body>
@RenderBody()
@(Html.Telerik().ScriptRegistrar().jQuery(true))
<script type="text/javascript" src="../../Scripts/jquery-ui-1.8.16.min.js"></script>
<script type="text/javascript" src="../../Scripts/MicrosoftAjax.js"></script>
<script type="text/javascript" src="../../Scripts/MicrosoftMvcAjax.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.gritter.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.form.js"></script>
<script type="text/javascript" src="../../Scripts/jquery-tgc-countdown-1.0.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.watermark.min.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.hotkeys.js"></script>
<script type="text/javascript" src="../../Scripts/doTimeout.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/episodeSearch.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/AutoComplete.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/LocalSearch.js"></script>
<script type="text/javascript" src="../../Scripts/NzbDrone/Notification.js"></script>
@RenderSection("Scripts", required: false)
</body>
</html>