diff --git a/NzbDrone.Web/Content/Settings.css b/NzbDrone.Web/Content/Settings.css new file mode 100644 index 000000000..6ba5707bf --- /dev/null +++ b/NzbDrone.Web/Content/Settings.css @@ -0,0 +1,100 @@ +body +{ + /*font-family:"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif; + font-size:12px;*/ +} + +p, h1, form, button{border:0; margin:0; padding:0;} +.spacer{clear:both; height:1px;} + +.settingsForm +{ + /*margin:0 auto;*/ + width: 600px; + padding: 14px; +} + +#stylized +{ + border:solid 2px #b7ddf2; + /*background:#ebf4fb;*/ +} + +#stylized h1 +{ + font-size:20px; + font-weight:bold; + margin-bottom:8px; +} + +#stylized p +{ + font-size:11px; + color:#666666; + margin-bottom:20px; + border-bottom:solid 1px #b7ddf2; + padding-bottom:10px; +} + +#stylized label +{ + display:block; + font-weight:bold; + text-align:right; + width:340px; + float:left; +} + +#stylized .small +{ + color:#666666; + display:block; + font-size:11px; + font-weight:normal; + text-align:right; + width:340px; +} + +#stylized input, select +{ + float:left; + font-size:12px; + padding:4px 2px; + border:solid 1px #aacfe4; + width:200px; + margin:2px 0 20px 10px; +} + +#stylized button +{ + clear:both; + margin-left:220px; + margin-bottom: 10px; + width:125px; + height:31px; + background:#666666 url(img/button.png) no-repeat; + text-align:center; + line-height:31px; + color:#FFFFFF; + font-size:11px; + font-weight:bold; +} + +#save_button:hover +{ + border-bottom-style: solid; + border-bottom-width: 4px; + border-color: #3C3C3C; + /* Set padding to prevent fieldset border from moving when button is highlighted... WINNING! */ + padding-bottom: 0px; + padding-top: 4px; +} + +#saveAjax +{ + padding-left: 6px; + margin-bottom: -7px; + width: 20px; + height: 20px; + display: none; +} \ No newline at end of file diff --git a/NzbDrone.Web/Controllers/SettingsController.cs b/NzbDrone.Web/Controllers/SettingsController.cs index 528a0fd0d..2f4583a80 100644 --- a/NzbDrone.Web/Controllers/SettingsController.cs +++ b/NzbDrone.Web/Controllers/SettingsController.cs @@ -94,8 +94,6 @@ namespace NzbDrone.Web.Controllers public ActionResult Sabnzbd() { - ViewData["viewName"] = "Sabnzbd"; - var sabDropDir = _configProvider.SabDropDirectory; var selectList = new SelectList(new List {sabDropDir}, sabDropDir); @@ -112,13 +110,11 @@ namespace NzbDrone.Web.Controllers SabDropDirectorySelectList = selectList }; - return View("Index", model); + return View(model); } public ActionResult Quality() { - ViewData["viewName"] = "Quality"; - var qualityTypes = new List(); foreach (QualityTypes qual in Enum.GetValues(typeof(QualityTypes))) @@ -139,7 +135,7 @@ namespace NzbDrone.Web.Controllers QualityProfileSelectList = qualityProfileSelectList }; - return View("Index", model); + return View(model); } public ActionResult Notifications() diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj index c7d826779..2a260af66 100644 --- a/NzbDrone.Web/NzbDrone.Web.csproj +++ b/NzbDrone.Web/NzbDrone.Web.csproj @@ -545,6 +545,7 @@ + @@ -579,7 +580,6 @@ - diff --git a/NzbDrone.Web/Scripts/gridLoad.js b/NzbDrone.Web/Scripts/gridLoad.js deleted file mode 100644 index 1fe5c40c5..000000000 --- a/NzbDrone.Web/Scripts/gridLoad.js +++ /dev/null @@ -1,11 +0,0 @@ -function grid_bind(args) { - var id = this.attributes[0].textContent; - var parent = $('#' + id).parent(); - parent.children('.grid-loader').stop().css("top", "0px").fadeIn('slow'); -} - -function grid_bound(args) { - var id = this.attributes[0].textContent; - var parent = $('#' + id).parent(); - $('.grid-container').children('.grid-loader').stop().fadeOut('slow'); -} \ No newline at end of file diff --git a/NzbDrone.Web/Views/History/Index.cshtml b/NzbDrone.Web/Views/History/Index.cshtml index 9e26274a9..360180511 100644 --- a/NzbDrone.Web/Views/History/Index.cshtml +++ b/NzbDrone.Web/Views/History/Index.cshtml @@ -39,12 +39,6 @@ History .Pageable( c => c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious)) - .ClientEvents(clientEvents => - { - clientEvents.OnDataBinding("grid_bind"); - clientEvents.OnDataBound("grid_bound"); - }) .Render();} - Loading Loading... } diff --git a/NzbDrone.Web/Views/Series/Details.cshtml b/NzbDrone.Web/Views/Series/Details.cshtml index d2a4552ca..76b412db7 100644 --- a/NzbDrone.Web/Views/Series/Details.cshtml +++ b/NzbDrone.Web/Views/Series/Details.cshtml @@ -68,11 +68,6 @@ "'); return false;\">Rename"); }) .DetailView(detailView => detailView.ClientTemplate("
<#= Overview #>
<#= Path #>
")) - .ClientEvents(clientEvents => - { - clientEvents.OnDataBinding("grid_bind"); - clientEvents.OnDataBound("grid_bound"); - }) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber).Descending()).Enabled(true)) .Footer(true) .DataBinding( @@ -84,9 +79,6 @@ c.Custom().Text("Rename Season").Action("RenameSeason", "Series", new { seasonId = season }) .ButtonType(GridButtonType.Text)) .Render();} - - Loading - Loading... } @if (Model.Seasons.Any(s => s == 0)) @@ -114,11 +106,6 @@ columns.Bound(c => c.Status).Width(10); }) .DetailView(detailView => detailView.ClientTemplate("
<#= Overview #>
<#= Path #>
")) - .ClientEvents(clientEvents => - { - clientEvents.OnDataBinding("grid_bind"); - clientEvents.OnDataBound("grid_bound"); - }) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber).Descending()).Enabled(true)) .Footer(true) .DataBinding( @@ -126,9 +113,6 @@ d.Ajax().Select("_AjaxSeasonGrid", "Series", new RouteValueDictionary { { "seriesId", Model.SeriesId }, { "seasonNumber", 0 } } )).Render(); } - - Loading - Loading... } } diff --git a/NzbDrone.Web/Views/Series/Index.cshtml b/NzbDrone.Web/Views/Series/Index.cshtml index 263cf0daf..63fcc1a23 100644 --- a/NzbDrone.Web/Views/Series/Index.cshtml +++ b/NzbDrone.Web/Views/Series/Index.cshtml @@ -1,4 +1,4 @@ -@using NzbDrone.Core.Repository; +@using NzbDrone.Core.Repository; @using NzbDrone.Web.Models; @model IEnumerable @section TitleContent{ @@ -55,12 +55,6 @@ Series .Delete("_DeleteAjaxSeriesEditing", "Series")) .Columns(columns => { - columns.Command(commands => - { - commands.Edit().ButtonType(GridButtonType.Image); - commands.Delete().ButtonType(GridButtonType.Image); - }).Title("Actions").Width(80); - columns.Bound(o => o.Title) .ClientTemplate("" + "" + ""); + columns.Command(commands => + { + commands.Edit().ButtonType(GridButtonType.Image); + commands.Delete().ButtonType(GridButtonType.Image); + }).Title("Actions").Width(80); }) .Editable(editor => editor.Mode(GridEditMode.PopUp)) .Sortable(sort => sort.OrderBy(order => order.Add(o => o.Title).Ascending()).Enabled(true)) - .DetailView(detailView => detailView.ClientTemplate("
<#= Overview #>
")) + .DetailView(detailView => detailView.ClientTemplate("<#= Overview #>")) .ClientEvents(clientEvents => { clientEvents.OnEdit("grid_edit"); clientEvents.OnSave("grid_save"); - clientEvents.OnDataBinding("grid_bind"); - clientEvents.OnDataBound("grid_bound"); clientEvents.OnRowDataBound("grid_rowBound"); }) .Render();} - - Loading - Loading... } @section Scripts{ + + } diff --git a/NzbDrone.Web/Views/Settings/Index.cshtml b/NzbDrone.Web/Views/Settings/Index.cshtml index 7da7aa1ba..1863d0a29 100644 --- a/NzbDrone.Web/Views/Settings/Index.cshtml +++ b/NzbDrone.Web/Views/Settings/Index.cshtml @@ -11,3 +11,30 @@ @{Html.RenderPartial(ViewData["viewName"].ToString());} } + +@section Scripts{ + +} \ No newline at end of file diff --git a/NzbDrone.Web/Views/Settings/Indexers.cshtml b/NzbDrone.Web/Views/Settings/Indexers.cshtml index 44aca26e2..d1b58a6dd 100644 --- a/NzbDrone.Web/Views/Settings/Indexers.cshtml +++ b/NzbDrone.Web/Views/Settings/Indexers.cshtml @@ -170,32 +170,4 @@ } -
- - -@section Scripts{ - - -} \ No newline at end of file +
\ No newline at end of file diff --git a/NzbDrone.Web/Views/Settings/Quality.cshtml b/NzbDrone.Web/Views/Settings/Quality.cshtml index 96bb92aa6..7b98e773c 100644 --- a/NzbDrone.Web/Views/Settings/Quality.cshtml +++ b/NzbDrone.Web/Views/Settings/Quality.cshtml @@ -1,5 +1,19 @@ @using NzbDrone.Web.Helpers; @model NzbDrone.Web.Models.QualityModel + +@section HeaderContent{ + +} + +@section TitleContent{ + Settings +} + +@section ActionMenu{ + @{Html.RenderPartial("SubMenu");} +} + +@section MainContent{ @using (Html.BeginForm("SaveQuality", "Settings", FormMethod.Post, new { id = "form", name = "form" })) {
@@ -31,36 +45,19 @@ } -
}
-@section Scripts{ - + + } diff --git a/NzbDrone.Web/Views/Settings/Sabnzbd.cshtml b/NzbDrone.Web/Views/Settings/Sabnzbd.cshtml index d637b704c..a0e5a0ec5 100644 --- a/NzbDrone.Web/Views/Settings/Sabnzbd.cshtml +++ b/NzbDrone.Web/Views/Settings/Sabnzbd.cshtml @@ -1,105 +1,82 @@ @using NzbDrone.Web.Helpers; @model NzbDrone.Web.Models.SabnzbdSettingsModel -@using (Html.BeginForm("SaveSabnzbd", "Settings", FormMethod.Post, new { id = "form", name = "form" })) -{ -
- SABnzbd - -
-
-
@Html.LabelFor(m => m.SabHost)
-
@Html.TextBoxFor(m => m.SabHost)
-
-
-
@Html.ValidationMessageFor(m => m.SabHost)
-
@Html.DescriptionFor(m => m.SabHost)
-
-
-
-
-
@Html.LabelFor(m => m.SabPort)
-
@Html.TextBoxFor(m => m.SabPort)
-
-
-
@Html.ValidationMessageFor(m => m.SabPort)
-
@Html.DescriptionFor(m => m.SabPort)
-
-
-
-
-
@Html.LabelFor(m => m.SabApiKey)
-
@Html.TextBoxFor(m => m.SabApiKey)
-
-
-
@Html.ValidationMessageFor(m => m.SabApiKey)
-
@Html.DescriptionFor(m => m.SabApiKey)
-
-
-
-
-
@Html.LabelFor(m => m.SabUsername)
-
@Html.TextBoxFor(m => m.SabUsername)
-
-
-
@Html.ValidationMessageFor(m => m.SabUsername)
-
@Html.DescriptionFor(m => m.SabUsername)
-
-
-
-
-
@Html.LabelFor(m => m.SabPassword)
-
@Html.TextBoxFor(m => m.SabPassword)
-
-
-
@Html.ValidationMessageFor(m => m.SabPassword)
-
@Html.DescriptionFor(m => m.SabPassword)
-
-
-
-
-
@Html.LabelFor(m => m.SabTvCategory)
-
@Html.TextBoxFor(m => m.SabTvCategory)
-
-
-
@Html.ValidationMessageFor(m => m.SabTvCategory)
-
@Html.DescriptionFor(m => m.SabTvCategory)
-
-
-
-
-
@Html.LabelFor(m => m.SabTvPriority)
-
@Html.DropDownListFor(m => m.SabTvPriority, Model.PrioritySelectList)
-
-
-
@Html.ValidationMessageFor(m => m.SabTvPriority)
-
@Html.DescriptionFor(m => m.SabTvPriority)
-
-
-
-
-
@Html.LabelFor(m => m.SabDropDirectory)
-
- @{Html.Telerik().ComboBoxFor(m => m.SabDropDirectory) - .BindTo(Model.SabDropDirectorySelectList) - .DataBinding(binding => binding.Ajax().Select("_autoCompletePath", "Directory").Delay(400).Cache(false)) - .Filterable(f => f.FilterMode(AutoCompleteFilterMode.StartsWith)) - .HighlightFirstMatch(true) - .HtmlAttributes(new { style = "margin-left: -2px; width: 220px;" }) - .Render();} -
-
-
-
@Html.ValidationMessageFor(m => m.SabDropDirectory)
-
@Html.DescriptionFor(m => m.SabDropDirectory)
-
-
- -
+ +@section HeaderContent{ + +} + +@section TitleContent{ + Settings +} + +@section ActionMenu{ + @{Html.RenderPartial("SubMenu");} +} + +@section MainContent{ +
+ + @using (Html.BeginForm("SaveSabnzbd", "Settings", FormMethod.Post, new { id = "form", name = "form", @class = "settingsForm" })) + { +

SABnzbd

+

+ + + + + + @Html.TextBoxFor(m => m.SabHost) + + + @Html.TextBoxFor(m => m.SabPort) + + + @Html.TextBoxFor(m => m.SabApiKey) + + + @Html.TextBoxFor(m => m.SabUsername) + + + @Html.TextBoxFor(m => m.SabPassword) + + + @Html.TextBoxFor(m => m.SabTvCategory) + + + @Html.DropDownListFor(m => m.SabTvPriority, Model.PrioritySelectList) + + + @Html.TextBoxFor(m => m.SabDropDirectory) + + Loader + } +
+ +
} -
-
+ @section Scripts{ + + + } diff --git a/NzbDrone.Web/Views/Settings/Test.cshtml b/NzbDrone.Web/Views/Settings/Test.cshtml index 9349f7ef8..27792a291 100644 --- a/NzbDrone.Web/Views/Settings/Test.cshtml +++ b/NzbDrone.Web/Views/Settings/Test.cshtml @@ -1,136 +1,94 @@ - - - - - -
-
-
- -
-
- -
-
-
- -
-
- - \ No newline at end of file +
+
+
+

Sign-up form

+

This is the basic look of my form without table

+ + + + + + + + + + + +
+
+
+
\ No newline at end of file diff --git a/NzbDrone.Web/Views/Shared/_Layout.cshtml b/NzbDrone.Web/Views/Shared/_Layout.cshtml index c276dcbe1..f8cdf7abc 100644 --- a/NzbDrone.Web/Views/Shared/_Layout.cshtml +++ b/NzbDrone.Web/Views/Shared/_Layout.cshtml @@ -65,7 +65,6 @@ .AddGroup("NzbDrone", group => group .Add("Notification.js") - .Add("gridLoad.js") .Add("episodeSearch.js")) )) diff --git a/NzbDrone.Web/Views/System/PendingProcessing.cshtml b/NzbDrone.Web/Views/System/PendingProcessing.cshtml index 50c89a056..ae3836c78 100644 --- a/NzbDrone.Web/Views/System/PendingProcessing.cshtml +++ b/NzbDrone.Web/Views/System/PendingProcessing.cshtml @@ -29,13 +29,7 @@ Pending Processing .Pageable( c => c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious)) - .ClientEvents(clientEvents => - { - clientEvents.OnDataBinding("grid_bind"); - clientEvents.OnDataBound("grid_bound"); - }) .Render();} - Loading Loading... }