#17813: Replacing theme name by theme id (missing file).

--HG--
branch : 1.x
This commit is contained in:
Andre Rodrigues
2011-05-09 22:06:55 -07:00
parent ff3aa4b535
commit 4e742d28b3

View File

@@ -9,12 +9,12 @@
@Html.Image(Href(Html.ThemePath((ExtensionDescriptor) Model.ContentPart.Descriptor, "/Theme.png")), Html.Encode((string)Model.ContentPart.Name), null)
@using (Html.BeginFormAntiForgeryPost(Url.Action("Activate"), FormMethod.Post, new { @class = "inline" })) {
@Html.Hidden("themeName", (string)Model.ContentPart.Descriptor.Id)
@Html.Hidden("themeId", (string)Model.ContentPart.Descriptor.Id)
<button type="submit" title="@T("Activate")">@T("Set Current")</button>
}
@using (Html.BeginFormAntiForgeryPost(Url.Action("Preview"), FormMethod.Post, new { @class = "inline" })) {
@Html.Hidden("themeName", (string)Model.ContentPart.Descriptor.Id)
@Html.Hidden("themeId", (string)Model.ContentPart.Descriptor.Id)
<button type="submit" title="@T("Preview")">@T("Preview")</button>
}
@@ -37,13 +37,13 @@
@if (Model.ContentPart.Enabled) {
using (Html.BeginFormAntiForgeryPost(Url.Action("Disable"), FormMethod.Post, new { @class = "inline link" })) {
@Html.Hidden("themeName", (string)Model.ContentPart.Descriptor.Id)
@Html.Hidden("themeId", (string)Model.ContentPart.Descriptor.Id)
<button type="submit" class="disable" 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)
@Html.Hidden("themeId", (string)Model.ContentPart.Descriptor.Id)
<button type="submit" class="enable" title="Enable">@T("Enable")</button>
}
}
@@ -51,7 +51,7 @@
@if (Model.ContentPart.NeedsUpdate) {
<span> | </span>
using (Html.BeginFormAntiForgeryPost(Url.Action("Update"), FormMethod.Post, new { @class = "inline link" })) {
@Html.Hidden("themeName", (string)Model.ContentPart.Descriptor.Id)
@Html.Hidden("themeId", (string)Model.ContentPart.Descriptor.Id)
<button type="submit" class="update">@T("Update")</button> <br/>
}
}