parent
2e9dd7f1ff
commit
2871723bfe
@ -1,8 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NzbDrone.Core.Providers
|
||||
{
|
||||
public interface ISyncProvider
|
||||
{
|
||||
void SyncUnmappedFolders();
|
||||
void BeginSyncUnmappedFolders();
|
||||
bool BeginSyncUnmappedFolders(List<string> paths);
|
||||
List<String> GetUnmappedFolders(string path);
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
|
||||
|
||||
<%@ Import Namespace="Telerik.Web.Mvc.UI" %>
|
||||
<%@ Import Namespace="NzbDrone.Web.Models" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||||
Add Existing Series
|
||||
</asp:Content>
|
||||
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server">
|
||||
<%
|
||||
Html.RenderPartial("SubMenu");
|
||||
%>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||
|
||||
//Get AJAX listing of unmapped directories
|
||||
|
||||
<%
|
||||
Html.Telerik().Grid<AddExistingSeriesModel>().Name("Unmapped Series Folders")
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.IsWanted).Width(0).Title("Is Wanted?");
|
||||
columns.Bound(c => c.Path);
|
||||
})
|
||||
//.DetailView(detailView => detailView.Template(e => Html.RenderPartial("EpisodeDetail", e)))
|
||||
//.DetailView(detailView => detailView.ClientTemplate("<div><#= Overview #></div>"))
|
||||
//.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber).Descending()).Enabled(true))
|
||||
.Footer(false)
|
||||
.DataBinding(d => d.Ajax().Select("_AjaxUnmappedFoldersGrid", "Series"))
|
||||
//.EnableCustomBinding(true)
|
||||
//.ClientEvents(e => e.OnDetailViewExpand("episodeDetailExpanded")) //Causes issues displaying the episode detail multiple times...
|
||||
.Render();
|
||||
%>`
|
||||
|
||||
</asp:Content>
|
@ -0,0 +1,36 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<NzbDrone.Core.Repository.RootDir>" %>
|
||||
<%@ Import Namespace="NzbDrone.Web.Helpers" %>
|
||||
|
||||
<% using (Html.BeginCollectionItem("Directories"))
|
||||
{ %>
|
||||
|
||||
<%
|
||||
var idClean = ViewData.TemplateInfo.HtmlFieldPrefix.Replace('[', '_').Replace(']', '_');
|
||||
//string sortable1 = String.Format("{0}_sortable1", idClean);
|
||||
%>
|
||||
|
||||
<style type="text/css">
|
||||
.root_dir_text { width:300px; }
|
||||
</style>
|
||||
|
||||
<div class="rootDirSection">
|
||||
|
||||
<fieldset style="width:350px; height:16px; margin:0px; margin-top: 0px; border-color:#CCCCCD; -khtml-border-radius:8px; border-radius:8px; -moz-border-radius:8px; -webkit-border-radius:8px;">
|
||||
|
||||
<div>
|
||||
<%: Html.CheckBoxFor(m => m.Default, new { @class = "defaultCheckbox" }) %>
|
||||
<%: Html.TextBoxFor(m => m.Path, new { @class="root_dir_text" }) %>
|
||||
<a href="#" class="deleteRow"><img src="../../Content/Images/X.png" alt="Delete"/></a>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<%: Html.ValidationMessageFor(m => m.Path) %>
|
||||
</div>
|
||||
|
||||
<div class="hiddenProfileDetails">
|
||||
<%= Html.TextBoxFor(x => x.RootDirId, new { @style = "display:none" })%>
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
</div>
|
||||
<% } %>
|
Loading…
Reference in new issue