Localize non components for themes pages
This commit is contained in:
		| @ -1,9 +1,10 @@ | ||||
| @namespace Oqtane.Modules.Admin.Themes | ||||
| @namespace Oqtane.Modules.Admin.Themes | ||||
| @inherits ModuleBase | ||||
| @inject NavigationManager NavigationManager | ||||
| @inject IFileService FileService | ||||
| @inject IThemeService ThemeService | ||||
| @inject IPackageService PackageService | ||||
| @inject IStringLocalizer<Add> Localizer | ||||
|  | ||||
| @if (_packages != null) | ||||
| { | ||||
| @ -14,15 +15,15 @@ | ||||
|                 <ModuleMessage Type="MessageType.Info" Message="Download one or more themes from the list below. Once you are ready click Install to complete the installation."></ModuleMessage> | ||||
|                 <Pager Items="@_packages"> | ||||
|                     <Header> | ||||
|                         <th>Name</th> | ||||
|                         <th>Version</th> | ||||
|                         <th>@Localizer["Name"]</th> | ||||
|                         <th>@Localizer["Version"]</th> | ||||
|                         <th style="width: 1px;"></th> | ||||
|                     </Header> | ||||
|                     <Row> | ||||
|                         <td>@context.Name</td> | ||||
|                         <td>@context.Version</td> | ||||
|                         <td> | ||||
|                             <button type="button" class="btn btn-primary" @onclick=@(async () => await DownloadTheme(context.PackageId, context.Version))>Download</button> | ||||
|                             <button type="button" class="btn btn-primary" @onclick=@(async () => await DownloadTheme(context.PackageId, context.Version))>@Localizer["Download"]</button> | ||||
|                         </td> | ||||
|                     </Row> | ||||
|                 </Pager> | ||||
| @ -42,8 +43,8 @@ | ||||
|         </TabPanel> | ||||
|     </TabStrip> | ||||
|  | ||||
|     <button type="button" class="btn btn-success" @onclick="InstallThemes">Install</button> | ||||
|     <NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink> | ||||
|     <button type="button" class="btn btn-success" @onclick="InstallThemes">@Localizer["Install"]</button> | ||||
|     <NavLink class="btn btn-secondary" href="@NavigateUrl()">@Localizer["Cancel"]</NavLink> | ||||
| } | ||||
|  | ||||
| @code { | ||||
|  | ||||
| @ -1,9 +1,10 @@ | ||||
| @namespace Oqtane.Modules.Admin.Themes | ||||
| @namespace Oqtane.Modules.Admin.Themes | ||||
| @using System.Net | ||||
| @inherits ModuleBase | ||||
| @inject NavigationManager NavigationManager | ||||
| @inject IThemeService ThemeService | ||||
| @inject IPackageService PackageService | ||||
| @inject IStringLocalizer<Index> Localizer | ||||
|  | ||||
| @if (_themes == null) | ||||
| { | ||||
| @ -17,8 +18,8 @@ else | ||||
|         <Header> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th scope="col">Name</th> | ||||
|             <th scope="col">Version</th> | ||||
|             <th scope="col">@Localizer["Name"]</th> | ||||
|             <th scope="col">@Localizer["Version"]</th> | ||||
|             <th> </th> | ||||
|         </Header> | ||||
|         <Row> | ||||
| @ -34,7 +35,7 @@ else | ||||
|             <td> | ||||
|                 @if (UpgradeAvailable(context.ThemeName, context.Version)) | ||||
|                     { | ||||
|                     <button type="button" class="btn btn-success" @onclick=@(async () => await DownloadTheme(context.ThemeName, context.Version))>Upgrade</button> | ||||
|                 <button type="button" class="btn btn-success" @onclick=@(async () => await DownloadTheme(context.ThemeName, context.Version))>@Localizer["Upgrade"]</button> | ||||
|                     } | ||||
|             </td> | ||||
|             <td></td> | ||||
|  | ||||
| @ -1,8 +1,9 @@ | ||||
| @namespace Oqtane.Modules.Admin.Themes | ||||
| @namespace Oqtane.Modules.Admin.Themes | ||||
| @using System.Net | ||||
| @inherits ModuleBase | ||||
| @inject IThemeService ThemeService | ||||
| @inject NavigationManager NavigationManager | ||||
| @inject IStringLocalizer<View> Localizer | ||||
|  | ||||
| <table class="table table-borderless"> | ||||
|     <tr> | ||||
| @ -62,7 +63,7 @@ | ||||
|         </td> | ||||
|     </tr> | ||||
| </table> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">@Localizer["Cancel"]</NavLink> | ||||
|  | ||||
| @code { | ||||
|     private string _themeName = ""; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 hishamco
					hishamco