2010-06-04 14:45:18 -07:00
<%@ Control Language="C#" Inherits="Orchard.Mvc.ViewUserControl<Orchard.Search.ViewModels.SearchIndexViewModel>" %>
<%@ Import Namespace="Orchard.Mvc.Html" %><%
Html.RegisterStyle("admin.css"); %>
2010-06-08 13:13:24 -07:00
<h1><%=Html.TitleForPage(T("Search Index Management").ToString()) %></h1><%
2010-06-04 14:45:18 -07:00
using (Html.BeginForm("update", "admin", FormMethod.Post, new {area = "Orchard.Search"})) { %>
<fieldset>
2010-06-10 11:36:44 -07:00
<p><%=T("The search index was last updated {0}. <button type=\"submit\" title=\"Update the search index.\" class=\"primaryAction\">Update</button>", Html.DateTimeRelative(Model.IndexUpdatedUtc, T))%></p>
2010-06-04 14:45:18 -07:00
<%=Html.AntiForgeryTokenOrchard() %>
</fieldset><%
}
using (Html.BeginForm("rebuild", "admin", FormMethod.Post, new {area = "Orchard.Search"})) { %>
<fieldset>
2010-06-04 17:42:20 -07:00
<p><%=T("Rebuild the search index for a fresh start. <button type=\"submit\" title=\"Rebuild the search index.\">Rebuild</button>") %></p>
2010-06-04 14:45:18 -07:00
<%=Html.AntiForgeryTokenOrchard() %>
</fieldset><%
} %>