diff options
| author | Michael <[email protected]> | 2017-04-07 21:13:44 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-07 21:13:44 -0400 |
| commit | b1e6d3dee9fa6519c65dd7564eac02b9e68bc3ce (patch) | |
| tree | dbff9719e4e9985951127c65db2be28fc6a46605 /Project-Unite/Views/Blog/PostBlog.cshtml | |
| parent | 1de8bc4bd0af72646ed58ecd7619a8731c48b09d (diff) | |
| download | project-unite-b1e6d3dee9fa6519c65dd7564eac02b9e68bc3ce.tar.gz project-unite-b1e6d3dee9fa6519c65dd7564eac02b9e68bc3ce.tar.bz2 project-unite-b1e6d3dee9fa6519c65dd7564eac02b9e68bc3ce.zip | |
Developer blog
Diffstat (limited to 'Project-Unite/Views/Blog/PostBlog.cshtml')
| -rw-r--r-- | Project-Unite/Views/Blog/PostBlog.cshtml | 32 |
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 |
