19 lines
434 B
Plaintext
19 lines
434 B
Plaintext
@model HN.Application.AddLinkCommand
|
|
@{
|
|
ViewData["Title"] = "Post a new link";
|
|
}
|
|
|
|
<form class="form" method="post">
|
|
@* @Html.LabelFor(m => m.Url)
|
|
@Html.EditorFor(m => m.Url)
|
|
@Html.ValidationMessageFor(m => m.Url) *@
|
|
|
|
<div class="field">
|
|
<label asp-for="@Model.Url"></label>
|
|
<input asp-for="@Model.Url" />
|
|
<span asp-validation-for="@Model.Url"></span>
|
|
</div>
|
|
|
|
<button type="submit">Post!</button>
|
|
</form>
|