This commit is contained in:
Paul Schneider 2018-06-08 10:55:35 +02:00
commit 0280a514d0

View file

@ -3,7 +3,9 @@
@{ @{
ViewData["Title"] = "Edit"; ViewData["Title"] = "Edit";
} }
@section scripts {
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
}
<h2>@SR["Edit"]</h2> <h2>@SR["Edit"]</h2>
<form asp-action="Edit"> <form asp-action="Edit">
@ -15,7 +17,9 @@
<div class="form-group"> <div class="form-group">
<label asp-for="Body" class="col-md-2 control-label"></label> <label asp-for="Body" class="col-md-2 control-label"></label>
<div class="col-md-10"> <div class="col-md-10">
<textarea asp-for="Body" class="form-control" /> <code><pre class="prettyprint">@Model.Body</pre>
<textarea Id="Body" Name="Body" class="form-control" >@Model.Body</textarea>
</code>
<span asp-validation-for="Body" class="text-danger" ></span> <span asp-validation-for="Body" class="text-danger" ></span>
</div> </div>
</div> </div>