Fixing Manage Comments view

- http://orchardqa.codeplex.com/workitem/128

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-10-14 15:32:40 -07:00
parent 477405bd3c
commit f04d97a8de

View File

@@ -5,13 +5,13 @@
<h1>@Html.TitleForPage(T("Comments for {0}", Model.DisplayNameForCommentedItem).ToString())</h1>
<div class="manage">
@if (Model.CommentsClosedOnItem) {
@using (Html.BeginFormAntiForgeryPost(Url.Action("Enable", new { commentedItemId = Model.CommentedItemId }), FormMethod.Post, new { @class = "inline" })) {
using (Html.BeginFormAntiForgeryPost(Url.Action("Enable", new { commentedItemId = Model.CommentedItemId }), FormMethod.Post, new { @class = "inline" })) {
<fieldset>
<button type="submit" title="@T("Enable Comments")">@T("Enable Comments")</button>
</fieldset>
}
} else {
@using (Html.BeginFormAntiForgeryPost(Url.Action("Close", new { commentedItemId = Model.CommentedItemId }), FormMethod.Post, new { @class = "inline" })) {
using (Html.BeginFormAntiForgeryPost(Url.Action("Close", new { commentedItemId = Model.CommentedItemId }), FormMethod.Post, new { @class = "inline" })) {
<fieldset>
<button type="submit" class="button primaryAction" title="@T("Close Comments")">@T("Close Comments")</button>
</fieldset>