|
|
|
@ -2,109 +2,94 @@
|
|
|
|
|
|
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
|
|
|
Edit
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</asp:Content>
|
|
|
|
|
|
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
|
|
|
|
|
|
|
|
<h2>Edit</h2>
|
|
|
|
|
<h2><%: Html.DisplayTextFor(model => model.Title) %></h2>
|
|
|
|
|
|
|
|
|
|
<% using (Html.BeginForm()) {%>
|
|
|
|
|
<%: Html.ValidationSummary(true) %>
|
|
|
|
|
<% Html.EnableClientValidation(); %>
|
|
|
|
|
<% using (Html.BeginForm("Edit", "Series", FormMethod.Post, new { id = "form", name = "form" }))
|
|
|
|
|
{ %>
|
|
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>Fields</legend>
|
|
|
|
|
|
|
|
|
|
<legend>Edit</legend>
|
|
|
|
|
|
|
|
|
|
<div class="editor-label">
|
|
|
|
|
<%: Html.LabelFor(model => model.SeriesId) %>
|
|
|
|
|
<%: Html.LabelFor(model => model.Path) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editor-field">
|
|
|
|
|
<%: Html.TextBoxFor(model => model.SeriesId) %>
|
|
|
|
|
<%: Html.ValidationMessageFor(model => model.SeriesId) %>
|
|
|
|
|
<%: Html.TextBoxFor(model => model.Path) %>
|
|
|
|
|
<%: Html.ValidationMessageFor(model => model.Path) %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="editor-label">
|
|
|
|
|
<%: Html.LabelFor(model => model.Title) %>
|
|
|
|
|
<%: Html.LabelFor(model => model.Monitored) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editor-field">
|
|
|
|
|
<%: Html.TextBoxFor(model => model.Title) %>
|
|
|
|
|
<%: Html.ValidationMessageFor(model => model.Title) %>
|
|
|
|
|
<%: Html.CheckBoxFor(model => model.Monitored) %>
|
|
|
|
|
<%: Html.ValidationMessageFor(model => model.Monitored) %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="editor-label">
|
|
|
|
|
<%: Html.LabelFor(model => model.CleanTitle) %>
|
|
|
|
|
<%: Html.LabelFor(model => model.QualityProfileId) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editor-field">
|
|
|
|
|
<%: Html.TextBoxFor(model => model.CleanTitle) %>
|
|
|
|
|
<%: Html.ValidationMessageFor(model => model.CleanTitle) %>
|
|
|
|
|
<%: Html.DropDownListFor(model => model.QualityProfileId, (SelectList)ViewData["SelectList"])%>
|
|
|
|
|
<%: Html.ValidationMessageFor(model => model.QualityProfileId) %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="editor-label">
|
|
|
|
|
<%: Html.LabelFor(model => model.Status) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editor-field">
|
|
|
|
|
|
|
|
|
|
<div class="hidden" style="display:none;">
|
|
|
|
|
<%: Html.TextBoxFor(model => model.SeriesId) %>
|
|
|
|
|
<%: Html.TextBoxFor(model => model.Title) %>
|
|
|
|
|
<%: Html.TextBoxFor(model => model.CleanTitle) %>
|
|
|
|
|
<%: Html.TextBoxFor(model => model.Status) %>
|
|
|
|
|
<%: Html.ValidationMessageFor(model => model.Status) %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="editor-label">
|
|
|
|
|
<%: Html.LabelFor(model => model.Overview) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editor-field">
|
|
|
|
|
<%: Html.TextBoxFor(model => model.Overview) %>
|
|
|
|
|
<%: Html.ValidationMessageFor(model => model.Overview) %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="editor-label">
|
|
|
|
|
<%: Html.LabelFor(model => model.AirTimes) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editor-field">
|
|
|
|
|
<%: Html.TextBoxFor(model => model.AirsDayOfWeek) %>
|
|
|
|
|
<%: Html.TextBoxFor(model => model.AirTimes) %>
|
|
|
|
|
<%: Html.ValidationMessageFor(model => model.AirTimes) %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="editor-label">
|
|
|
|
|
<%: Html.LabelFor(model => model.Language) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editor-field">
|
|
|
|
|
<%: Html.TextBoxFor(model => model.Language) %>
|
|
|
|
|
<%: Html.ValidationMessageFor(model => model.Language) %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="editor-label">
|
|
|
|
|
<%: Html.LabelFor(model => model.Path) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editor-field">
|
|
|
|
|
<%: Html.TextBoxFor(model => model.Path) %>
|
|
|
|
|
<%: Html.ValidationMessageFor(model => model.Path) %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="editor-label">
|
|
|
|
|
<%: Html.LabelFor(model => model.Monitored) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editor-field">
|
|
|
|
|
<%: Html.TextBoxFor(model => model.Monitored) %>
|
|
|
|
|
<%: Html.ValidationMessageFor(model => model.Monitored) %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<%--<div class="editor-label">
|
|
|
|
|
<%: Html.LabelFor(model => model.ProfileId) %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="editor-field">
|
|
|
|
|
<%: Html.TextBoxFor(model => model.ProfileId) %>
|
|
|
|
|
<%: Html.ValidationMessageFor(model => model.ProfileId) %>
|
|
|
|
|
</div>--%>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
<input type="submit" value="Save" />
|
|
|
|
|
<input type="submit" id="save_button" value="Save" disabled="disabled" />
|
|
|
|
|
</p>
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<%: Html.ActionLink("Back to Show", "Details", new { seriesId = Model.SeriesId }) %> |
|
|
|
|
|
<%: Html.ActionLink("Back to List", "Index") %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="result"></div>
|
|
|
|
|
|
|
|
|
|
</asp:Content>
|
|
|
|
|
|
|
|
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="headerContent" runat="server">
|
|
|
|
|