Shortened menu text and filtering text on Manage Content page.

--HG--
branch : dev
This commit is contained in:
Jonathan Wall
2010-07-27 14:12:39 -07:00
parent 32d1c40b58
commit 74378d0a43
2 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ namespace Orchard.Core.Contents {
var cim = _contentManager.GetItemMetadata(ci); var cim = _contentManager.GetItemMetadata(ci);
var createRouteValues = cim.CreateRouteValues; var createRouteValues = cim.CreateRouteValues;
if (createRouteValues.Any()) if (createRouteValues.Any())
menu.Add(T("Create New {0}", contentTypeDefinition.DisplayName), "1.3", item => item.Action(cim.CreateRouteValues["Action"] as string, cim.CreateRouteValues["Controller"] as string, cim.CreateRouteValues)); menu.Add(T("Create {0}", contentTypeDefinition.DisplayName), "1.3", item => item.Action(cim.CreateRouteValues["Action"] as string, cim.CreateRouteValues["Controller"] as string, cim.CreateRouteValues));
} }
}); });
} }

View File

@@ -16,7 +16,7 @@ using (Html.BeginFormAntiForgeryPost()) { %>
<button type="submit" name="submit.BulkEdit" value="yes"><%:T("Apply") %></button> <button type="submit" name="submit.BulkEdit" value="yes"><%:T("Apply") %></button>
</fieldset> </fieldset>
<fieldset class="bulk-actions"> <fieldset class="bulk-actions">
<label for="filterResults" class="bulk-filter"><%:T("Show only of type")%></label> <label for="filterResults" class="bulk-filter"><%:T("Show")%></label>
<select id="filterResults" name="<%:Html.NameOf(m => m.Options.SelectedFilter) %>"> <select id="filterResults" name="<%:Html.NameOf(m => m.Options.SelectedFilter) %>">
<%:Html.SelectOption(Model.Options.SelectedFilter, "", T("any (show all)").ToString()) %> <%:Html.SelectOption(Model.Options.SelectedFilter, "", T("any (show all)").ToString()) %>
<% foreach(var filterOption in Model.Options.FilterOptions) { %> <% foreach(var filterOption in Model.Options.FilterOptions) { %>
@@ -25,8 +25,8 @@ using (Html.BeginFormAntiForgeryPost()) { %>
</select> </select>
<label for="orderResults" class="bulk-order"><%:T("Ordered by")%></label> <label for="orderResults" class="bulk-order"><%:T("Ordered by")%></label>
<select id="orderResults" name="<%:Html.NameOf(m => m.Options.OrderBy) %>"> <select id="orderResults" name="<%:Html.NameOf(m => m.Options.OrderBy) %>">
<%:Html.SelectOption(Model.Options.OrderBy, ContentsOrder.Created, T("most recently created").ToString())%> <%:Html.SelectOption(Model.Options.OrderBy, ContentsOrder.Created, T("recently created").ToString())%>
<%:Html.SelectOption(Model.Options.OrderBy, ContentsOrder.Modified, T("most recently modified").ToString())%> <%:Html.SelectOption(Model.Options.OrderBy, ContentsOrder.Modified, T("recently modified").ToString())%>
<%--<%:Html.SelectOption(Model.Options.OrderBy, ContentsOrder.Published, T("Date Published").ToString())%>--%> <%--<%:Html.SelectOption(Model.Options.OrderBy, ContentsOrder.Published, T("Date Published").ToString())%>--%>
</select> </select>
<button type="submit" name="submit.Filter" value="yes please"><%:T("Apply") %></button> <button type="submit" name="submit.Filter" value="yes please"><%:T("Apply") %></button>