demo20230512/Areas/admin/Views/PublicReferenceFile/Edit.cshtml

92 lines
4.2 KiB
Plaintext
Raw Normal View History

2023-05-12 10:20:28 +08:00
@using Resources
@model Weee.Models.PublicReferenceFile
@{
ViewBag.Title = Resource.StaticLabelPublicReferenceFile;
Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}
<div class="col-md-12">
<h2>@(Model.ID == 0 ? Resource.Create : Resource.StaticLabelGlobal_Edit) @Resource.PublicFile</h2>
<hr />
<div class="col-md-1"></div>
<div class="col-md-10">
@using (Html.BeginForm("Edit", "PublicReferenceFile", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<div>
@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.ID)
@Html.HiddenFor(model => model.DownloadLink)
</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.DisplayNameTW, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.DisplayNameTW, new { htmlAttributes = new { @class = "form-control" } })
@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.EditorFor(model => model.DisplayNameCN, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.DisplayNameCN, "", new { @class = "text-danger" })
</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.EditorFor(model => model.DisplayNameEN, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.DisplayNameEN, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
<label class="control-label docs-control-label col-xs-3" for="Uploadfile">@Resource.UploadNewFile</label>
<div class="col-xs-9">
<input type="file" name="uploadedFile" />
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.DownloadLink, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
<a href="@Model.DownloadLink">@Model.DownloadLink</a>
</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>