mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-02 19:44:02 +08:00
- Based on UI review, adding a few elements to easily edit/delete single comments to the comments admin, as well as marking as spam/approving radio buttons to the comment edit view.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042237
This commit is contained in:
@@ -73,7 +73,9 @@
|
||||
<% } %>
|
||||
</td>
|
||||
<td><%= commentEntry.Comment.CommentDate %></td>
|
||||
<td><%=Html.ActionLink("Edit", "Edit", new {commentEntry.Comment.Id}, new {@class="floatRight topSpacer"}) %>
|
||||
<td>
|
||||
<%=Html.ActionLink("Edit", "Edit", new {commentEntry.Comment.Id}) %> |
|
||||
<%=Html.ActionLink("Delete", "Delete", new {id = commentEntry.Comment.Id, redirectToAction = "Details"}) %>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<CommentsEditViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Comments.Models"%>
|
||||
<%@ Import Namespace="Orchard.Comments.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
<% Html.Include("Header"); %>
|
||||
<% Html.BeginForm(); %>
|
||||
<%= Html.ValidationSummary() %>
|
||||
<div class="yui-g">
|
||||
<h2 class="separator">Add a Comment</h2>
|
||||
<h2 class="separator">Edit a Comment</h2>
|
||||
<h3>Information</h3>
|
||||
<ol>
|
||||
<li>
|
||||
@@ -27,6 +28,17 @@
|
||||
<%= Model.CommentText %>
|
||||
</textarea>
|
||||
</li>
|
||||
<h3>Status</h3>
|
||||
<li>
|
||||
<label for="Status_Approved">
|
||||
<%=Html.RadioButton("Status", "Approved", (Model.Status == CommentStatus.Approved), new { id = "Status_Approved" }) %> Approved
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label for="Status_Spam">
|
||||
<%=Html.RadioButton("Status", "Spam", (Model.Status == CommentStatus.Spam), new { id = "Status_Spam" }) %> Mark As Spam
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<input type="submit" class="button" value="Save" />
|
||||
</li>
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
<col id="Col4" />
|
||||
<col id="Col5" />
|
||||
<col id="Col6" />
|
||||
<col id="Col7" />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -50,6 +51,7 @@
|
||||
<th scope="col">Comment</th>
|
||||
<th scope="col">Date</th>
|
||||
<th scope="col">Commented On</th>
|
||||
<th scope="col"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<%
|
||||
@@ -71,7 +73,13 @@
|
||||
<% } %>
|
||||
</td>
|
||||
<td><%= commentEntry.Comment.CommentDate %></td>
|
||||
<td><%=Html.ActionLink(commentEntry.CommentedOn, "Details", new {id = commentEntry.Comment.CommentedOn}, new {@class="floatRight topSpacer"}) %></td>
|
||||
<td>
|
||||
<%=Html.ActionLink(commentEntry.CommentedOn, "Details", new {id = commentEntry.Comment.CommentedOn}) %>
|
||||
</td>
|
||||
<td>
|
||||
<%=Html.ActionLink("Edit", "Edit", new {commentEntry.Comment.Id}) %> |
|
||||
<%=Html.ActionLink("Delete", "Delete", new {id = commentEntry.Comment.Id, redirectToAction = "Index"}) %>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
commentIndex++;
|
||||
|
||||
Reference in New Issue
Block a user