mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-04-21 00:30:23 +00:00
33 lines
No EOL
898 B
Text
33 lines
No EOL
898 B
Text
@model Project_Unite.Models.PostBlogViewModel
|
|
@{
|
|
ViewBag.Title = "Post blog";
|
|
}
|
|
|
|
<h2>Post a blog</h2>
|
|
|
|
<p>Just fill in the form and we'll get the post up onto the cloud.</p>
|
|
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken() @*SHIT BUGS!*@
|
|
<div class="panel-danger panel">
|
|
<div class="panel-body">
|
|
@Html.ValidationSummary()
|
|
</div>
|
|
</div>
|
|
|
|
<table class="table">
|
|
<tr>
|
|
<td style="width:25%">Name:</td>
|
|
<td>@Html.TextBoxFor(Model=>Model.Name, new{@class="form-control"})</td>
|
|
</tr>
|
|
<tr>
|
|
<td style="width:25%">Body:</td>
|
|
<td>@Html.TextAreaFor(Model => Model.Contents, new { @class = "form-control", rows="10" })</td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td><input type="submit" value="Post!" class="btn btn-primary" /></td>
|
|
</tr>
|
|
</table>
|
|
} |