<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Views/Shared/SleisLayout.Master" %> <%-- Manage Report Attachment --%> <%--, uiValidate: false, saveButtonSelector: ""--%>

Manage Report Attachment

<% Html.ValidationSummary("Please correct the errors and try again"); %> <% using (Html.BeginForm()){ %> <%:Html.HiddenFor(x=>x.Item.Id) %> <%:Html.HiddenFor(x => x.Item.Attachment.Name)%> <%:Html.HiddenFor(x => x.Item.Attachment.ReportId)%> <%:Html.HiddenFor(x=>x.FacilityId) %> <%:Html.HiddenFor(x => x.Item.Attachment.ReportId)%> <%:Html.HiddenFor(x => x.Item.Attachment.MimeType)%>

<%:Html.LabelFor(x => x.Item.Attachment.Name, "File:")%> <%:Html.DisplayFor(x => x.Item.Attachment.Name)%> <%:Html.LabelFor(x => x.Item.Attachment.Description, "Descripton:")%> <%:Html.TextBoxFor(x => x.Item.Attachment.Description, new { @class = "text-input wide-input" })%> <%:Html.ValidationMessageFor(x => x.Item.Attachment.Description)%>

<%: Html.ActionLink("Cancel", "List", "ReportAttachment", new { id = Model.ReportId, facilityId = Model.FacilityId }, new { @class = "cancelButton" })%> <%: Html.ActionLink("Delete", "Delete", "ReportAttachment", new { id = Model.Item.Id, reportId = Model.ReportId, facilityId=Model.FacilityId }, new { @class = "deleteButton" })%>

<%} %>