mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#17813: Replacing theme name by theme id (missing file).
--HG-- branch : 1.x
This commit is contained in:
@@ -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/>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user