56 lines
1.5 KiB
Text
56 lines
1.5 KiB
Text
|
@page
|
||
|
@model Snootalogue.Pages.UploadModel
|
||
|
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||
|
|
||
|
@{
|
||
|
ViewData["Title"] = "Upload";
|
||
|
}
|
||
|
|
||
|
<form asp-action="Upload" enctype="multipart/form-data">
|
||
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label asp-for="ud.Title" class="control-label"></label>
|
||
|
<input asp-for="ud.Title" class="form-control" placeholder="Determine from file"/>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label asp-for="ud.Authors" class="control-label"></label>
|
||
|
<input asp-for="ud.Authors" class="form-control"/>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label asp-for="ud.Category" class="control-label"></label>
|
||
|
<input asp-for="ud.Category" class="form-control"/>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label asp-for="ud.Tags" class="control-label"></label>
|
||
|
<input asp-for="ud.Tags" class="form-control"/>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label asp-for="ud.Notes" class="control-label"></label>
|
||
|
@Html.TextAreaFor(model => model.ud.Notes)
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label asp-for="ud.Read" class="control-label"></label>
|
||
|
<input asp-for="ud.Read" class="form-control"/>
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group">
|
||
|
<label asp-for="ud.UploadedFile" class="control-label"></label>
|
||
|
<input asp-for="ud.UploadedFile" class="form-control" accept=".pdf,application/pdf"/>
|
||
|
</div>
|
||
|
|
||
|
<div class="centred">
|
||
|
<input type="submit" class="button block" value="Upload"/>
|
||
|
<br>
|
||
|
<a href="/" class="button block">Cancel</a>
|
||
|
</div>
|
||
|
|
||
|
</form>
|
||
|
|
||
|
@* value="@Model.EditDocument.Title" *@
|