mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-19 10:07:55 +08:00
A little cleanup in the content management UI
- using content type display names on the creatable type list - removed the readonly Name field on the content type edit page - removed the "Edit global part config" link from content parts on the content type edit page - changed the Create (Contents) page to an ascx --HG-- branch : dev
This commit is contained in:
@@ -3,5 +3,5 @@
|
||||
<h1><%:Html.TitleForPage(T("Create New Content").ToString())%></h1>
|
||||
<%:Html.UnorderedList(
|
||||
Model.Types,
|
||||
(ctd, i) => MvcHtmlString.Create(string.Format("<p>{0}</p>", Html.ActionLink(ctd.Name, "Create", new { Area = "Contents", Id = ctd.Name }))),
|
||||
(ctd, i) => MvcHtmlString.Create(string.Format("<p>{0}</p>", Html.ActionLink(ctd.DisplayName, "Create", new { Area = "Contents", Id = ctd.Name }))),
|
||||
"contentTypes")%>
|
@@ -1,8 +1,7 @@
|
||||
<%@ Page Language="C#" Inherits="Orchard.Mvc.ViewPage<CreateItemViewModel>" %>
|
||||
|
||||
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<CreateItemViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Core.Contents.ViewModels" %>
|
||||
<% Html.AddTitleParts(T("Create Content").ToString()); %>
|
||||
<% using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%:Html.ValidationSummary() %>
|
||||
<%:Html.EditorForItem(m=>m.Content) %>
|
||||
<%} %>
|
||||
<%} %>
|
@@ -254,7 +254,7 @@
|
||||
<Content Include="Contents\Module.txt" />
|
||||
<Content Include="Contents\Views\Admin\Edit.ascx" />
|
||||
<Content Include="Contents\Views\Admin\CreatableTypeList.ascx" />
|
||||
<Content Include="Contents\Views\Admin\Create.aspx" />
|
||||
<Content Include="Contents\Views\Admin\Create.ascx" />
|
||||
<Content Include="Contents\Views\Admin\List.ascx" />
|
||||
<Content Include="Contents\Views\DisplayTemplates\Items\Contents.Item.ascx" />
|
||||
<Content Include="Contents\Views\DisplayTemplates\Items\Contents.Item.SummaryAdmin.ascx" />
|
||||
|
@@ -11,8 +11,6 @@ using (Html.BeginFormAntiForgeryPost()) { %>
|
||||
<%--// todo: if we continue to go down the midrodata route, some helpers would be nice--%>
|
||||
<meta itemprop="DisplayName" content="<%:Model.DisplayName %>" /><%--
|
||||
// has unintended consequences (renamging the type) - changing the name creates a new type of that name--%>
|
||||
<label for="Name" itemprop="name"><%:T("Name") %></label>
|
||||
<%:Html.TextBoxFor(m => m.Name, new { @class = "textMedium", disabled = "disabled" })%>
|
||||
<meta itemprop="Name" content="<%:Model.Name %>" />
|
||||
<%:Html.HiddenFor(m => m.Name) %>
|
||||
</fieldset><%
|
||||
|
@@ -9,7 +9,6 @@
|
||||
Html.RenderTemplates(Model.Templates); %>
|
||||
</div><%
|
||||
} %>
|
||||
<div class="manage minor"><%:Html.ActionLink(T("Edit global part config").Text, "EditPart", new { area = "Orchard.ContentTypes", id = Model.PartDefinition.Name })%></div>
|
||||
<%:Html.DisplayFor(m => m.PartDefinition.Settings, "Settings", "PartDefinition")
|
||||
%><%:Html.EditorFor(m => m.PartDefinition.Fields, "TypePartFields", "PartDefinition")
|
||||
%><%:Html.HiddenFor(m => m.PartDefinition.Name)
|
||||
|
Reference in New Issue
Block a user