@using Orchard.Lists.ViewModels; @using Orchard.ContentManagement; @{ Script.Include("orchard-lists-admin.js"); int containerId = ((int?)Model.ContainerId).GetValueOrDefault(); string createLinkText = string.IsNullOrEmpty(Model.ContainerItemContentType) ? T("Create New Content").ToString() : T("Create New {0}", Model.ContainerItemContentType).ToString(); Layout.Title = T("Manage {0}", Model.ContainerDisplayName); var lists = ((IEnumerable)Model.OtherLists).Select( contentItem => new SelectListItem { Text = contentItem.ContentType + ": " + contentItem.ContentManager.GetItemMetadata(contentItem).DisplayText, Value = contentItem.Id.ToString(System.Globalization.CultureInfo.InvariantCulture) }).ToList(); lists.Insert(0, new SelectListItem { Text = T("Move to...").ToString(), Value = "" }); }
 
@Display.Parts_Container_Manage(ContainerDisplayName: Model.ContainerDisplayName, ContainerContentType: Model.ContainerContentType, ContainerId: containerId)
@Html.ActionLink(createLinkText, "Create", new { Area = "Contents", Id = (string)Model.Options.SelectedFilter, ContainerId = containerId, ReturnUrl = Url.Action("List", "Admin", new { Area = "Orchard.Lists", ContainerId = containerId }) }, new { @class = "button primaryAction" }) @Html.ActionLink(T("Choose Items").ToString(), "Choose", new { TargetContainerId = (int)Model.ContainerId, Area = "Orchard.Lists" }, new { @class = "button primaryAction" })
@using (Html.BeginFormAntiForgeryPost()) { var options = (ContentOptions) Model.Options;
@Html.DropDownList("TargetContainerId", lists, new { id = "TargetContainerId" })
if ((int)Model.ContentItems.Items.Count == 0) {
@T("The '{0}' {1} has no content items.", Model.ContainerDisplayName, Model.ContainerContentType)
} else {
@Display(Model.ContentItems)
} @Display(Model.Pager) }