2011-06-09 01:45:06 +00:00
|
|
|
@model NzbDrone.Web.Models.RootDirModel
|
2011-05-31 06:13:46 +00:00
|
|
|
|
|
|
|
@{
|
|
|
|
Layout = null;
|
|
|
|
}
|
|
|
|
|
2011-06-16 02:32:55 +00:00
|
|
|
<div class="rootDirSection" id="rootDir_@(ViewData["guid"])" style="padding: 7px; padding-left: 3px;">
|
2011-05-31 06:13:46 +00:00
|
|
|
<fieldset style="padding: 5px; height: 40px;">
|
2011-06-09 01:45:06 +00:00
|
|
|
@{Html.Telerik().ComboBox()
|
2011-06-16 02:32:55 +00:00
|
|
|
.Name("path_" + ViewData["guid"])
|
2011-06-09 01:45:06 +00:00
|
|
|
.BindTo(Model.SelectList)
|
2011-06-25 01:20:52 +00:00
|
|
|
.DataBinding(binding => binding.Ajax().Select("_autoCompletePath", "Directory").Delay(400).Cache(true))
|
2011-06-09 01:45:06 +00:00
|
|
|
.Filterable(f => f.FilterMode(AutoCompleteFilterMode.StartsWith))
|
|
|
|
.HighlightFirstMatch(true)
|
|
|
|
.HtmlAttributes(new { style = "width: 300px;" })
|
|
|
|
.Render();}
|
|
|
|
|
|
|
|
|
2011-06-16 02:32:55 +00:00
|
|
|
<a href="#RemoveRootDir" class="deleteRow" onclick="deleteRootDir('@ViewData["guid"]'); return false;">
|
2011-05-31 06:13:46 +00:00
|
|
|
<img src="../../Content/Images/X.png" alt="Delete" width="20px" height="20px" style="vertical-align: middle; margin-top: 7px;"/></a>
|
2011-06-16 02:32:55 +00:00
|
|
|
<button style="padding: 2px 10px 2px 10px; vertical-align: middle; margin: 0px; margin-top: 7px;" onclick="saveRootDir('@ViewData["guid"]')">Save</button>
|
2011-05-31 06:13:46 +00:00
|
|
|
|
2011-06-16 02:32:55 +00:00
|
|
|
@Html.HiddenFor(x => x.Id, new { id = "id_" + ViewData["guid"] })
|
2011-05-31 06:13:46 +00:00
|
|
|
</fieldset>
|
|
|
|
</div>
|