2011-02-17 17:45:02 +00:00
|
|
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<NzbDrone.Core.Repository.Series>" %>
|
|
|
|
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
|
|
Edit
|
2011-02-18 02:50:40 +00:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function () {
|
|
|
|
var options = {
|
|
|
|
target: '#result',
|
|
|
|
beforeSubmit: showRequest,
|
|
|
|
success: showResponse,
|
|
|
|
type: 'post',
|
|
|
|
resetForm: false
|
|
|
|
};
|
|
|
|
$('#form').ajaxForm(options);
|
|
|
|
$('#save_button').attr('disabled', '');
|
|
|
|
});
|
|
|
|
|
|
|
|
function showRequest(formData, jqForm, options) {
|
|
|
|
$("#result").empty().html('Saving Series...');
|
|
|
|
$("#form :input").attr("disabled", true);
|
|
|
|
}
|
|
|
|
|
|
|
|
function showResponse(responseText, statusText, xhr, $form) {
|
|
|
|
$("#result").empty().html(responseText);
|
|
|
|
$("#form :input").attr("disabled", false);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-02-17 17:45:02 +00:00
|
|
|
</asp:Content>
|
|
|
|
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
|
|
|
2011-04-10 02:44:01 +00:00
|
|
|
<h2><%:Html.DisplayTextFor(model => model.Title)%></h2>
|
2011-02-17 17:45:02 +00:00
|
|
|
|
2011-04-10 02:44:01 +00:00
|
|
|
<%
|
|
|
|
Html.EnableClientValidation();%>
|
|
|
|
<%
|
|
|
|
using (Html.BeginForm("Edit", "Series", FormMethod.Post, new {id = "form", name = "form"}))
|
|
|
|
{%>
|
2011-02-17 17:45:02 +00:00
|
|
|
|
|
|
|
<fieldset>
|
2011-02-18 02:50:40 +00:00
|
|
|
<legend>Edit</legend>
|
|
|
|
|
2011-02-17 17:45:02 +00:00
|
|
|
<div class="editor-label">
|
2011-04-10 02:44:01 +00:00
|
|
|
<%:Html.LabelFor(model => model.Path)%>
|
2011-02-17 17:45:02 +00:00
|
|
|
</div>
|
|
|
|
<div class="editor-field">
|
2011-04-10 02:44:01 +00:00
|
|
|
<%:Html.TextBoxFor(model => model.Path)%>
|
|
|
|
<%:Html.ValidationMessageFor(model => model.Path)%>
|
2011-02-17 17:45:02 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="editor-label">
|
2011-04-10 02:44:01 +00:00
|
|
|
<%:Html.LabelFor(model => model.Monitored)%>
|
2011-02-17 17:45:02 +00:00
|
|
|
</div>
|
|
|
|
<div class="editor-field">
|
2011-04-10 02:44:01 +00:00
|
|
|
<%:Html.CheckBoxFor(model => model.Monitored)%>
|
|
|
|
<%:Html.ValidationMessageFor(model => model.Monitored)%>
|
2011-02-17 17:45:02 +00:00
|
|
|
</div>
|
2011-02-26 04:07:22 +00:00
|
|
|
|
|
|
|
<div class="editor-label">
|
2011-04-10 02:44:01 +00:00
|
|
|
<%:Html.LabelFor(model => model.SeasonFolder)%>
|
2011-02-26 04:07:22 +00:00
|
|
|
</div>
|
|
|
|
<div class="editor-field">
|
2011-04-10 02:44:01 +00:00
|
|
|
<%:Html.CheckBoxFor(model => model.SeasonFolder)%>
|
|
|
|
<%:Html.ValidationMessageFor(model => model.SeasonFolder)%>
|
2011-02-26 04:07:22 +00:00
|
|
|
</div>
|
2011-02-17 17:45:02 +00:00
|
|
|
|
|
|
|
<div class="editor-label">
|
2011-04-10 02:44:01 +00:00
|
|
|
<%:Html.LabelFor(model => model.QualityProfileId)%>
|
2011-02-17 17:45:02 +00:00
|
|
|
</div>
|
|
|
|
<div class="editor-field">
|
2011-04-10 02:44:01 +00:00
|
|
|
<%:Html.DropDownListFor(model => model.QualityProfileId, (SelectList) ViewData["SelectList"])%>
|
|
|
|
<%:Html.ValidationMessageFor(model => model.QualityProfileId)%>
|
2011-02-17 17:45:02 +00:00
|
|
|
</div>
|
2011-02-18 02:50:40 +00:00
|
|
|
|
|
|
|
<div class="hidden" style="display:none;">
|
2011-04-10 02:44:01 +00:00
|
|
|
<%:Html.TextBoxFor(model => model.SeriesId)%>
|
|
|
|
<%:Html.TextBoxFor(model => model.Title)%>
|
|
|
|
<%:Html.TextBoxFor(model => model.CleanTitle)%>
|
|
|
|
<%:Html.TextBoxFor(model => model.Status)%>
|
|
|
|
<%:Html.TextBoxFor(model => model.Overview)%>
|
|
|
|
<%:Html.TextBoxFor(model => model.AirsDayOfWeek)%>
|
|
|
|
<%:Html.TextBoxFor(model => model.AirTimes)%>
|
|
|
|
<%:Html.TextBoxFor(model => model.Language)%>
|
2011-02-17 17:45:02 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<p>
|
2011-02-18 02:50:40 +00:00
|
|
|
<input type="submit" id="save_button" value="Save" disabled="disabled" />
|
2011-02-17 17:45:02 +00:00
|
|
|
</p>
|
|
|
|
</fieldset>
|
2011-04-10 02:44:01 +00:00
|
|
|
<%
|
|
|
|
}%>
|
2011-02-17 17:45:02 +00:00
|
|
|
|
|
|
|
<div>
|
2011-04-10 02:44:01 +00:00
|
|
|
<%:Html.ActionLink("Back to Show", "Details", new {seriesId = Model.SeriesId})%> |
|
|
|
|
<%:Html.ActionLink("Back to List", "Index")%>
|
|
|
|
<%:Html.ActionLink("Delete Series", "Delete", new {seriesId = Model.SeriesId})%>
|
2011-02-17 17:45:02 +00:00
|
|
|
</div>
|
|
|
|
|
2011-02-18 02:50:40 +00:00
|
|
|
<div id="result"></div>
|
|
|
|
|
2011-02-17 17:45:02 +00:00
|
|
|
</asp:Content>
|
|
|
|
|
|
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="headerContent" runat="server">
|
|
|
|
</asp:Content>
|
|
|
|
|
|
|
|
<asp:Content ID="Content4" ContentPlaceHolderID="ActionMenu" runat="server">
|
|
|
|
</asp:Content>
|
|
|
|
|
|
|
|
<asp:Content ID="Content5" ContentPlaceHolderID="Scripts" runat="server">
|
|
|
|
</asp:Content>
|
|
|
|
|