#17963: Applying theme from preview

Work Item: 17963

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros 2012-02-27 11:07:19 -08:00
parent 0b7496c4e7
commit a15b1a8022

View File

@ -62,6 +62,7 @@ html.dyn #themepreview button.preview { display:none; }
<span>@T("You are previewing: ")</span>
@Html.DropDownList("ThemeName", themes, new {onChange = "this.form.submit();"})
@Html.Hidden("ReturnUrl", Context.Request.RawUrl)
@Html.Hidden("ThemeId", themes.FirstOrDefault(x => x.Selected).Value)
<button type="submit" class="preview" title="@T("Preview")" name="submit.Preview" value="@T("Preview")">@T("Preview")</button>
<button type="submit" title="@T("Apply")" name="submit.Apply" value="@T("Apply")">@T("Apply this theme")</button>
<button type="submit" class="cancel" title="@T("Cancel")" name="submit.Cancel" value="@T("Cancel")">@T("Cancel")</button>