@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" })
@foreach (var entry in Model.Queries) { index++; }
 ↓ @T("Name")  
@Html.ActionLink(entry.Name, "Edit", new { id = entry.QueryId })
@Display(Model.Pager)
}