@using EnVisage.Code
@using EnVisage.Code.HtmlHelpers
@using EnVisage.Code.BLL
@using EnVisage.Models
@model EnVisage.Models.FiscalCalendarModel
@{
ViewBag.Title = "Change Calendar Settings";
}
@using (Ajax.BeginForm("EditCalendar", "Calendar", new AjaxOptions
{
HttpMethod = "Post",
OnSuccess = "onEditCalendarSuccess",
OnFailure = "onEditCalendarFailure(xhr)",
UpdateTargetId = "editReload"
},
new {
@id = "calendarSettingEditForm"
}))
{
@Html.HiddenFor(t => t.Id)
@Html.AntiForgeryToken()
@Html.LabelFor(model => model.EffectiveChangeDate, new { @class = "control-label" })
@Html.EditorFor(model => model.EffectiveChangeDate, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.EffectiveChangeDate)
@Html.LabelFor(model => model.CalendarType, new { @class = "control-label" })
@Html.DropDownListFor(t => t.CalendarType, FiscalCalendarManager.GetCalendarTypes(), new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.CalendarType)
@Html.LabelFor(model => model.StartingPoint, new { @class = "control-label" })
@Html.EditorFor(model => model.StartingPoint, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.StartingPoint)
@Html.LabelFor(model => model.WeekendingDay, new { @class = "control-label" })
@Html.DropDownListFor(t => t.WeekendingDay, FiscalCalendarManager.GetWeekendings(), new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.WeekendingDay)
@Html.LabelFor(model => model.YearType, new { @class = "control-label" })
@Html.DropDownListFor(t => t.YearType, FiscalCalendarManager.GetYearTypes(), new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.YearType)
@Html.EditorFor(model => model.UseAdjustingPeriod, new { @class = "form-control" })
@Html.LabelFor(model => model.UseAdjustingPeriod, new { @class = "control-label" })
@Html.ValidationMessageFor(model => model.UseAdjustingPeriod)
@Html.ValidationSummary(false, "The record could not be saved due to the following errors:")
}