2011-12-09 04:57:23 +00:00
|
|
|
@using NzbDrone.Web.Helpers
|
2011-12-10 05:05:17 +00:00
|
|
|
@{ViewBag.Title = "Add Series";}
|
2012-02-25 05:28:29 +00:00
|
|
|
|
|
|
|
@section HeaderContent
|
2011-11-27 06:31:13 +00:00
|
|
|
{
|
2012-02-25 05:28:29 +00:00
|
|
|
<style>
|
|
|
|
.existingSeries
|
|
|
|
{
|
|
|
|
border-color: #f2f2f2;
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
background-color: #f2f2f2;
|
|
|
|
margin: 0px 10px 10px 0px;
|
|
|
|
padding: 5px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.masterQualitySelector
|
|
|
|
{
|
|
|
|
left: 415px;
|
|
|
|
position: relative;
|
|
|
|
}
|
2012-09-19 06:06:09 +00:00
|
|
|
|
2012-09-20 15:37:40 +00:00
|
|
|
.start-date-master {
|
2012-09-19 06:06:09 +00:00
|
|
|
left: 430px;
|
|
|
|
position: relative;
|
|
|
|
}
|
2012-02-25 05:28:29 +00:00
|
|
|
|
|
|
|
.seriesPathValue
|
|
|
|
{
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.existingSeriesContainer
|
|
|
|
{
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2012-02-25 07:42:30 +00:00
|
|
|
.ui-autocomplete.seriesLookupResults {
|
|
|
|
max-height: 180px;
|
|
|
|
overflow-y: auto;
|
|
|
|
/* prevent horizontal scrollbar */
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
|
2012-03-03 04:21:50 +00:00
|
|
|
.tvDbLink {
|
2012-03-03 18:58:32 +00:00
|
|
|
float: right;
|
2012-03-03 04:21:50 +00:00
|
|
|
}
|
2012-02-27 03:25:57 +00:00
|
|
|
|
2012-03-03 04:21:50 +00:00
|
|
|
.tvDbLink:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2012-09-19 06:06:09 +00:00
|
|
|
|
2012-09-20 15:37:40 +00:00
|
|
|
input[type=date].start-date {
|
2012-09-19 06:06:09 +00:00
|
|
|
margin-left: 10px;
|
|
|
|
}
|
2012-02-25 05:28:29 +00:00
|
|
|
</style>
|
2011-11-27 06:31:13 +00:00
|
|
|
}
|
2012-02-25 05:28:29 +00:00
|
|
|
|
2011-12-01 05:06:02 +00:00
|
|
|
@{Html.RenderAction("RootDir");}
|
2012-10-07 19:50:16 +00:00
|
|
|
<div class="jquery-accordion jquery-accordion-collapse-all" id="addSeriesAccordion">
|
2011-12-08 05:30:47 +00:00
|
|
|
<h3>
|
|
|
|
<a href="#">Add New Series</a></h3>
|
2011-12-09 07:07:37 +00:00
|
|
|
<div id="addNewSeries">
|
2011-12-08 05:30:47 +00:00
|
|
|
@{ Html.RenderAction("AddNew", "AddSeries"); }
|
|
|
|
</div>
|
|
|
|
<h3>
|
|
|
|
<a href="#">Add Series Already on Disk</a></h3>
|
2011-12-09 07:07:37 +00:00
|
|
|
<div id="existingSeries">
|
2012-10-28 19:08:37 +00:00
|
|
|
<img src="../../Content/Images/ajax-loader.gif" />
|
|
|
|
|
|
|
|
@Ajax.RenderAction(
|
|
|
|
"ExistingSeries",
|
|
|
|
"AddSeries",
|
|
|
|
null,
|
|
|
|
new AjaxOptions { UpdateTargetId = "existingSeries", InsertionMode = InsertionMode.Replace }
|
|
|
|
)
|
2011-12-08 05:30:47 +00:00
|
|
|
</div>
|
2012-02-25 05:28:29 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@section Scripts
|
|
|
|
{
|
|
|
|
@Html.IncludeScript("NzbDrone/addSeries.js")
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2012-03-03 04:28:40 +00:00
|
|
|
$(document).on('click', '.tvDbLink', function (event) {
|
2012-03-03 18:58:32 +00:00
|
|
|
var url = $(this).attr('rel');
|
2012-03-03 04:21:50 +00:00
|
|
|
window.open(url, 'thetvdb');
|
2012-03-03 04:28:40 +00:00
|
|
|
event.preventDefault();
|
2012-03-03 04:21:50 +00:00
|
|
|
});
|
2012-02-25 05:28:29 +00:00
|
|
|
</script>
|
|
|
|
}
|