mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +08:00
20 lines
1.1 KiB
Plaintext
20 lines
1.1 KiB
Plaintext
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<ContentItemViewModel<Orchard.Pages.Models.Page>>" %>
|
|
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
|
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
|
<% Html.AddTitleParts(Model.Item.Title); %>
|
|
<div class="sections">
|
|
<div class="primary"><%
|
|
Html.Zone("primary");
|
|
Html.ZonesExcept("secondary"); %>
|
|
</div>
|
|
<div class="secondary">
|
|
<% Html.Zone("secondary");%>
|
|
<fieldset>
|
|
<input class="button primaryAction" type="submit" name="submit.Save" value="<%: T("Save") %>"/><%
|
|
//TODO: (erikpo) In the future, remove the HasPublished check so the user can delete the content item from here if the choose to
|
|
if (Model.Item.HasDraft && Model.Item.HasPublished) { %>
|
|
<%: Html.AntiForgeryTokenValueOrchardLink(T("Discard Draft").ToString(), Url.Action("DiscardDraft", new {Area = "Orchard.Pages", Controller = "Admin", id = Model.Item.Id}), new {@class = "button"})%><%
|
|
} %>
|
|
</fieldset>
|
|
</div>
|
|
</div> |