@model ThemeListModel @using SmartStore.Web.Framework.UI; @using SmartStore.Admin.Models.Themes; @using SmartStore.Core.Themes; @{ ViewBag.Title = T("Admin.Configuration.Themes").Text; } @using (Html.BeginForm()) {
@T("Admin.Configuration.Themes")
@Html.Widget("admin_button_toolbar_before") @T("Admin.Configuration.Themes.Reload") @T("Admin.Packaging.UploadTheme") @Html.Widget("admin_button_toolbar_after")
@Html.SmartLabelFor(model => model.StoreId) @Html.DropDownList("StoreId", Model.AvailableStores, new { onchange = "location.href = '" + @Url.Action("List") + "?storeId=' + this.value;" })
@Html.SmartStore().TabStrip().Name("themes-tab").Items(x => { x.Add().Text(T("Admin.Configuration.Themes")).Content(ThemesTab()).Selected(true); x.Add().Text(T("Admin.Common.Settings")).Content(ThemeSettingsTab()); }) } @helper ThemesTab() { if (Model.DesktopThemes.Count > 0) { @ThemeList(Model.DesktopThemes, T("Admin.Configuration.Themes.AvailableDesktopThemes"), false) } if (Model.MobileThemes.Count > 0) { @ThemeList(Model.MobileThemes, T("Admin.Configuration.Themes.AvailableMobileThemes"), true) } } @helper ThemeList(IList themes, string caption, bool mobile) {
@caption
} @helper ThemeSettingsTab() { @Html.HiddenFor(x => x.DefaultDesktopTheme) @Html.HiddenFor(x => x.DefaultMobileTheme) @Html.ValidationSummary(false)
@Html.SmartLabelFor(model => model.AllowCustomerToSelectTheme) @Html.EditorFor(model => model.AllowCustomerToSelectTheme) @Html.ValidationMessageFor(model => model.AllowCustomerToSelectTheme)
@Html.SmartLabelFor(model => model.SaveThemeChoiceInCookie) @Html.EditorFor(model => model.SaveThemeChoiceInCookie) @Html.ValidationMessageFor(model => model.SaveThemeChoiceInCookie)
@Html.SmartLabelFor(model => model.MobileDevicesSupported) @Html.EditorFor(model => model.MobileDevicesSupported) @Html.ValidationMessageFor(model => model.MobileDevicesSupported)

@T("Admin.Configuration.Themes.Options.Title")

@T("Admin.Configuration.Themes.Options.Info")

@Html.SmartLabelFor(model => model.BundleOptimizationEnabled) @Html.DropDownListFor(model => model.BundleOptimizationEnabled, Model.AvailableBundleOptimizationValues) @Html.ValidationMessageFor(model => model.BundleOptimizationEnabled)
} @Html.Action("UploadPackage", "Packaging", new { isTheme = true })