82 lines
3.5 KiB
Plaintext
82 lines
3.5 KiB
Plaintext
@using Resources
|
|
|
|
@model Weee.Models.PublicMessage
|
|
|
|
@{
|
|
ViewBag.Title = Resource.StaticLabelPublicMessage;
|
|
Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
|
|
}
|
|
|
|
|
|
<div class="col-md-12">
|
|
<h2>@(Model.ID == 0 ? Resource.Create : Resource.StaticLabelGlobal_Edit) @Resource.News</h2>
|
|
<hr />
|
|
<div class="col-md-1"></div>
|
|
<div class="docs-row col-md-10">
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
<div class="form-horizontal">
|
|
<div>
|
|
@Html.ValidationSummary(true)
|
|
@Html.HiddenFor(model => model.ID)
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.CreatedTime, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
<div class="form-control">
|
|
@Model.CreatedTime
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.UpdatedTime, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
<div class="form-control">
|
|
@Model.UpdatedTime
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Note, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.EditorFor(model => model.Note, new { htmlAttributes = new { @class = "form-control" }})
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.DisplayNameTW, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.TextAreaFor(model => model.DisplayNameTW, new { @class = "form-control", rows = "9"})
|
|
@Html.ValidationMessageFor(model => model.DisplayNameTW, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.DisplayNameCN, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.TextAreaFor(model => model.DisplayNameCN, new { @class = "form-control", rows = "9" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group ">
|
|
@Html.LabelFor(model => model.DisplayNameEN, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.TextAreaFor(model => model.DisplayNameEN, new { @class = "form-control", rows = "9" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group" style="padding-top: 10px;">
|
|
<div class="col-md-offset-3 col-md-9 text-right">
|
|
<input type="submit" value="@Resource.StaticLabelGlobal_Save" class="btn btn-default" />
|
|
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "Index", new { }, new { @class = "btn btn-default" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|