Fixed the "Remove" link on the content item summary admin template when it's being used outside of the contents module

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-07-22 10:08:07 -07:00
parent 4ccb8561e5
commit 614ca64971
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ContentItemViewModel>" %>
<%@ Import Namespace="Orchard.Mvc.ViewModels" %>
<%@ Import Namespace="Orchard.Utility.Extensions" %>
<div class="summary" itemscope="itemscope" itemid="<%:Model.Item.Id %>" itemtype="http://orchardproject.net/data/ContentItem">
<div class="properties">
<input type="checkbox" value="<%:Model.Item.Id %>" name="itemIds"/>
@@ -9,7 +10,7 @@
<div class="related"><%
Html.Zone("secondary"); %>
<%:Html.ItemEditLink(T("Edit").Text, Model.Item) %><%:T(" | ") %>
<%:Html.Link(T("Remove").Text, Url.Action("Remove", new { area = "Contents", id = Model.Item.Id }), new { itemprop = "RemoveUrl UnsafeUrl" }) %>
<%:Html.Link(T("Remove").Text, Url.Action("Remove", "Admin", new { area = "Contents", id = Model.Item.Id, returnUrl = ViewContext.RequestContext.HttpContext.Request.ToUrlString() }), new { itemprop = "RemoveUrl UnsafeUrl" }) %>
<br /><% Html.Zone("meta"); %>
</div>
<div class="primary"><% Html.ZonesAny(); %></div>

View File

@@ -350,6 +350,9 @@ form.link button:hover {
margin:10px 0 4px 0;
padding:4px;
}
div.message {
clear:both;
}
span.message {
display:block;
margin:4px 0 4px 4px;