summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Blog/PostBlog.cshtml
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/Views/Blog/PostBlog.cshtml')
-rw-r--r--Project-Unite/Views/Blog/PostBlog.cshtml32
1 files changed, 32 insertions, 0 deletions
diff --git a/Project-Unite/Views/Blog/PostBlog.cshtml b/Project-Unite/Views/Blog/PostBlog.cshtml
new file mode 100644
index 0000000..e3ad6f7
--- /dev/null
+++ b/Project-Unite/Views/Blog/PostBlog.cshtml
@@ -0,0 +1,32 @@
+@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())
+{
+ <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>
+} \ No newline at end of file