blob: 8e35c82d645890dfc657e1970ba9314381f9f0af (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
@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>
}
|