demo20230512/Areas/Certification/Views/Comment/Index.cshtml

65 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

2023-05-12 10:20:28 +08:00
@using Weee.Models.Paramemter
@using Resources
@model Weee.Areas.Certification.ViewModels.CommentViewModel
@{
Layout = null;
}
@Styles.Render("~/bootstrap/css")
@Styles.Render("~/certification/css")
<style>
textarea {
resize: none;
}
</style>
<div class="docs-panel">
@using (Html.BeginForm("Save",
"Comment",
new { },
FormMethod.Post))
{
<div class="docs-content-gap-sm">
@Html.HiddenFor(model => model.CurrentComment.ID)
@Html.HiddenFor(model => model.CurrentComment.LCAID)
@Html.HiddenFor(model => model.CurrentComment.Category)
<h1 class="text-center">@Resource.Category</h1>
<div class="panel panel-default docs-panel-default">
<div class="panel-heading docs-panel-heading">
<div class="row">
<div class="col-xs-9">@Resource.Comment</div>
<div class="col-xs-3">@Resource.UpdateTime</div>
</div>
</div>
<div class="panel-body">
@foreach (var comment in Model.History)
{
<div class="row">
<div class="col-xs-9"><textarea class="docs-textarea-width-mx form-control" readonly="readonly" rows="5">@comment.CommentText</textarea></div>
<div class="col-xs-3">@comment.UpdateTime</div>
</div>
}
<div class="row">
<div class="col-xs-9">
@Html.TextAreaFor(model => model.CurrentComment.CommentText, new { @class = "docs-textarea-width-mx form-control docs-input-default", rows = "5", placeholder = Resource.EnterComment})
</div>
<div class="col-xs-3">@Model.CurrentComment.UpdateTime</div>@*CFT-24*@
</div>
</div>
</div>
<span>@ViewBag.Message</span>
</div>
if (Model.LcaStatus == Weee.Models.LCAStatus.Waiting)
{
<div class="docs-content-gap-sm">
<input class="pull-right header-button" type="submit" value="@Resource.StaticLabelGlobal_Save" />
</div>
}
}
</div>