2011-04-21 04:43:09 +03:00
|
|
|
@model NzbDrone.Core.Repository.RootDir
|
|
|
|
@using NzbDrone.Web.Helpers;
|
2011-04-22 03:30:19 +03:00
|
|
|
|
|
|
|
@{
|
|
|
|
Layout = null;
|
|
|
|
}
|
2011-04-21 04:43:09 +03:00
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
.root_dir_text
|
|
|
|
{
|
|
|
|
width: 300px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
@using (Html.BeginCollectionItem("Directories"))
|
|
|
|
{
|
|
|
|
var idClean = ViewData.TemplateInfo.HtmlFieldPrefix.Replace('[', '_').Replace(']', '_');
|
|
|
|
|
2011-04-27 18:34:53 +03:00
|
|
|
|
|
|
|
<div class="rootDirSection" id="div_@(ViewData["RootDirId"])">
|
2011-04-21 04:43:09 +03:00
|
|
|
<fieldset>
|
|
|
|
<div>
|
|
|
|
@Html.TextBoxFor(m => m.Path, new { @class = "root_dir_text" })
|
2011-04-27 18:34:53 +03:00
|
|
|
<a href="#" class="deleteRow" onclick="deleteRootDir('@ViewData["RootDirId"]')">
|
2011-04-21 04:43:09 +03:00
|
|
|
<img src="../../Content/Images/X.png" alt="Delete" /></a>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
@Html.ValidationMessageFor(m => m.Path)
|
|
|
|
</div>
|
|
|
|
<div class="hiddenProfileDetails">
|
|
|
|
@Html.TextBoxFor(x => x.Id, new { @style = "display:none" })
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
}
|