Add Series, will need to design new and existing flows.

ScanProvider will need to be updated to support adding shows individually as well as SeriesProvider, GEt Unmapped will need to accept a path... move to ScanProvider perhaps.
pull/3113/head
markus101 14 years ago
parent 24f4f608e5
commit 2e9dd7f1ff

@ -46,6 +46,11 @@ namespace NzbDrone.Web.Controllers
return View();
}
public ActionResult Add()
{
return View(new AddSeriesModel());
}
public ActionResult Sync()
{
_syncProvider.BeginSyncUnmappedFolders();

@ -1,5 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
@ -7,7 +9,14 @@ namespace NzbDrone.Web.Models
{
public class AddSeriesModel
{
[DataType(DataType.Text)]
[DisplayName("Single Series Path")]
[DisplayFormat(ConvertEmptyStringToNull = false)]
public string SingleSeries { get; set; }
[DataType(DataType.Text)]
[DisplayName("Series Root Path")]
[DisplayFormat(ConvertEmptyStringToNull = false)]
public string SeriesRoot { get; set; }
}
}

@ -86,6 +86,7 @@
<Compile Include="Helpers\HtmlPrefixScopeExtensions.cs" />
<Compile Include="Helpers\IsCurrentActionHelper.cs" />
<Compile Include="Models\AccountModels.cs" />
<Compile Include="Models\AddSeriesModel.cs" />
<Compile Include="Models\DownloadSettingsModel.cs" />
<Compile Include="Models\EpisodeSortingModel.cs" />
<Compile Include="Models\IndexerSettingsModel.cs" />
@ -274,7 +275,9 @@
<Content Include="Views\Series\Edit.aspx" />
<Content Include="Views\Series\EpisodeDetail.ascx" />
<Content Include="Views\Series\index.aspx" />
<Content Include="Views\Series\SubMenu.ascx" />
<Content Include="Views\Series\Unmapped.aspx" />
<Content Include="Views\Series\Add.aspx" />
<Content Include="Views\Settings\Notifications.ascx" />
<Content Include="Views\Settings\Downloads.ascx" />
<Content Include="Views\Settings\EpisodeSorting.ascx" />

@ -0,0 +1,18 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NzbDrone.Web.Models.AddSeriesModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
Add Series
</asp:Content>
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server">
<%
Html.RenderPartial("SubMenu");
%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
//Add New
//Add Existing
</asp:Content>
Loading…
Cancel
Save