@using FHT.Management.Interfaces.ViewModels @using FHT.Management.Interfaces.InputModels @using FHT.Utilities @model FeedbackDealInputModel @{ ViewBag.Title = "反馈详情"; Layout = "~/Views/Shared/_Layout.cshtml"; var feedBack = (FeedbackViewModel)ViewBag.FeedBack; } @using (Ajax.BeginForm("Deal", "FeedBack", new AjaxOptions { HttpMethod = "Post", OnSuccess = "agencyGlobal.OnDetailSumbitSuccess" }, new { @class = "form-horizontal", role = "form" })) { @Html.AntiForgeryToken() @Html.HiddenFor(m => m.FeedBackId)
@feedBack.Content
if (!string.IsNullOrEmpty(feedBack.Name)) {
@Html.Raw(feedBack.Name)
} if (!string.IsNullOrEmpty(feedBack.Mobile)) {
@Html.Raw(feedBack.Mobile)
} if (feedBack.IsDeal) {
已处理
} if (feedBack.IsDeal) {
@Html.Raw(feedBack.Reply)
} else if(feedBack.UserId.HasValue) {
@Html.RequiredLabelFor(m => m.Reply)
@Html.TextAreaFor(m => m.Reply, new { @class = "form-control"}) @Html.ValidationMessageFor(m => m.Reply)
} } @section scripts { @Scripts.Render("~/bundles/dealDetailCallBack") }