@model PostgreSqlDotnetCore.Models.BlogPostConsultation @{ ViewBag.Title = "Create"; }

Create

@using (Html.BeginForm()) { @Html.AntiForgeryToken()

BlogPostConsultation


@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @*
@Html.LabelFor(model => model.date_askes, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.date_askes, "{0:d}", new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.date_askes, "", new { @class = "text-danger" })
*@ @*
@Html.LabelFor(model => model.date_askes, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.date_askes, new { htmlAttributes = new { @class = "form-control", @type = "date", value = DateTime.UtcNow.ToString("yyyy-MM-dd") } }) @Html.ValidationMessageFor(model => model.date_askes, "", new { @class = "text-danger" })
*@
@Html.LabelFor(model => model.title, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.title, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.title, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.description, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.description, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.description, "", new { @class = "text-danger" })

}
@Html.ActionLink("Back to List", "Index")