@model AdminIndexViewModel @using Orchard.Projections.Models; @using Orchard.Projections.ViewModels; @{ Style.Include("admin-projections.css"); Layout.Title = T("Manage Queries").ToString(); var index = 0; var pageSizes = new List() { 10, 50, 100 }; var defaultPageSize = WorkContext.CurrentSite.PageSize; if(!pageSizes.Contains(defaultPageSize)) { pageSizes.Add(defaultPageSize); } }

@Html.TitleForPage(T("Manage Queries").ToString())

@using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary()
@Html.ActionLink(T("Add a new Query").ToString(), "Create", new { Area = "Contents", id = "Query", returnurl = HttpContext.Current.Request.RawUrl }, new { @class = "button primaryAction" })
@T(" | ")
@foreach (var entry in Model.Queries) { index++; }
 ↓ @T("Name")  
@Html.ActionLink(entry.Name, "Edit", new { id = entry.QueryId }) @Html.ActionLink(T("Properties").ToString(), "Edit", new { Area = "Contents", id = entry.QueryId, returnurl = HttpContext.Current.Request.RawUrl }) | @Html.ActionLink(T("Edit").ToString(), "Edit", new { id = entry.QueryId }) | @Html.ActionLink(T("Delete").ToString(), "Delete", new { id = entry.QueryId }, new { itemprop = "RemoveUrl UnsafeUrl" }) @if (entry.Query.FilterGroups.SelectMany(x => x.Filters).Any()) { | @Html.ActionLink(T("Preview").ToString(), "Preview", new { id = entry.QueryId }) }
@Display(Model.Pager)
}