21 lines
773 B
Plaintext
21 lines
773 B
Plaintext
@model HackerNet.Application.PublishCommentCommand
|
|
@{
|
|
ViewData["Title"] = $"Ajouter un commentaire sur {ViewData["LinkUrl"]}";
|
|
}
|
|
|
|
<div class="shadow-xl p-6">
|
|
<h1 class="font-semibold text-xl text-indigo-500">@ViewData["Title"]</h1>
|
|
|
|
<form asp-action="New" method="post">
|
|
<input type="hidden" asp-for="@Model.LinkId" />
|
|
|
|
<label asp-for="@Model.Content"></label>
|
|
<textarea class="mt-4 bg-gray-100 rounded-xl px-2 py-4 block w-full" asp-for="@Model.Content">
|
|
</textarea>
|
|
<span class="text-red-700 text-sm block" asp-validation-for="@Model.Content"></span>
|
|
|
|
<div class="mt-4 flex justify-end">
|
|
<button type="submit" class="px-4 py-2 text-indigo-500 font-semibold rounded-xl bg-indigo-100">Publier un lien</button>
|
|
</div>
|
|
</form>
|
|
</div> |