Snootalogue/Pages/Documents/Edit.cshtml

43 lines
1.1 KiB
Text
Raw Normal View History

@page "{id:int}"
@model Snootalogue.Pages.Documents.EditModel
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
ViewData["Title"] = "Edit";
}
<form method="POST">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<input type="hidden" asp-for="ed.ID" />
<div class="form-group">
<label asp-for="ed.Title" class="control-label"></label>
<input asp-for="ed.Title" class="form-control"/>
</div>
<div class="form-group">
<label asp-for="ed.Category" class="control-label"></label>
<input asp-for="ed.Category" class="form-control"/>
</div>
<div class="form-group">
<label asp-for="ed.Notes" class="control-label"></label>
@* <input asp-for="EditDocument.Notes" class="form-control"/> *@
@Html.TextAreaFor(model => model.ed.Notes)
</div>
<div class="form-group">
<label asp-for="ed.Read" class="control-label"></label>
<input asp-for="ed.Read" class="form-control"/>
</div>
<div class="centred">
<input type="submit" class="button block" value="Edit"/>
<br>
<a href="/" class="button block">Cancel</a>
</div>
</form>
@* value="@Model.EditDocument.Title" *@