@model Orchard.MediaProcessing.ViewModels.AdminIndexViewModel @using Orchard.MediaProcessing.ViewModels @{ Layout.Title = T("Profiles").ToString(); var index = 0; var pageSizes = new List() { 10, 50, 100 }; var defaultPageSize = WorkContext.CurrentSite.PageSize; if(!pageSizes.Contains(defaultPageSize)) { pageSizes.Add(defaultPageSize); } } @using (Html.BeginFormAntiForgeryPost()) { @Html.ValidationSummary()
@Html.ActionLink(T("Add a new Media Profile").ToString(), "Create", new { Area = "Contents", id = "ImageProfile", returnurl = HttpContext.Current.Request.RawUrl }, new { @class = "button primaryAction" })
@foreach (var entry in Model.ImageProfiles) { index++; }
 ↓ @T("Name")  
@Html.ActionLink(entry.Name, "Edit", new { id = entry.ImageProfileId }) @Html.ActionLink(T("Properties").ToString(), "Edit", new { Area = "Contents", id = entry.ImageProfileId, returnurl = HttpContext.Current.Request.RawUrl }) | @Html.ActionLink(T("Edit").ToString(), "Edit", new { id = entry.ImageProfileId }) | @Html.ActionLink(T("Delete").ToString(), "Delete", new { id = entry.ImageProfileId }, new { itemprop = "RemoveUrl UnsafeUrl" }) | @*@Html.ActionLink(T("Preview").ToString(), "Preview", new { id = entry.ImageProfileId })*@
@Display(Model.Pager)
}