mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
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:
@@ -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>
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user