Adding back the Enable link for disabled themes (small link, same place as the disable link)

--HG--
branch : dev
This commit is contained in:
Dave Reed
2011-02-28 13:08:07 -08:00
parent 510304b7dc
commit e2dbc8ec0b

View File

@@ -42,6 +42,12 @@
<button type="submit" title="Disable">@T("Disable")</button>
}
}
else {
using (Html.BeginFormAntiForgeryPost(Url.Action("Enable"), FormMethod.Post, new { @class = "inline link" })) {
@Html.Hidden("themeName", (string)Model.ContentPart.Descriptor.Id)
<button type="submit" title="Enable">@T("Enable")</button>
}
}
@if (Model.ContentPart.NeedsUpdate) {
using (Html.BeginFormAntiForgeryPost(Url.Action("Update"), FormMethod.Post, new { @class = "inline link" })) {