Localize components for the modules pages

This commit is contained in:
hishamco
2020-11-20 01:43:02 +03:00
parent 301051898b
commit 867c8f84ad
3 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
@namespace Oqtane.Modules.Admin.Modules @namespace Oqtane.Modules.Admin.Modules
@inherits ModuleBase @inherits ModuleBase
@inject NavigationManager NavigationManager @inject NavigationManager NavigationManager
@inject IModuleService ModuleService @inject IModuleService ModuleService
@ -7,7 +7,7 @@
<tbody> <tbody>
<tr> <tr>
<td> <td>
<Label For="content" HelpText="Enter the module content">Content: </Label> <Label For="content" HelpText="Enter the module content" ResourceKey="Content">Content: </Label>
</td> </td>
<td> <td>
<textarea id="content" class="form-control" @bind="@_content" rows="5"></textarea> <textarea id="content" class="form-control" @bind="@_content" rows="5"></textarea>

View File

@ -1,4 +1,4 @@
@namespace Oqtane.Modules.Admin.Modules @namespace Oqtane.Modules.Admin.Modules
@inherits ModuleBase @inherits ModuleBase
@inject NavigationManager NavigationManager @inject NavigationManager NavigationManager
@inject IModuleService ModuleService @inject IModuleService ModuleService
@ -7,7 +7,7 @@
<tbody> <tbody>
<tr> <tr>
<td> <td>
<Label For="content" HelpText="Enter the module content">Content: </Label> <Label For="content" HelpText="Enter the module content" ResourceKey="Content">Content: </Label>
</td> </td>
<td> <td>
<textarea id="content" class="form-control" @bind="@_content" rows="5"></textarea> <textarea id="content" class="form-control" @bind="@_content" rows="5"></textarea>

View File

@ -1,4 +1,4 @@
@namespace Oqtane.Modules.Admin.Modules @namespace Oqtane.Modules.Admin.Modules
@inherits ModuleBase @inherits ModuleBase
@inject NavigationManager NavigationManager @inject NavigationManager NavigationManager
@inject IThemeService ThemeService @inject IThemeService ThemeService
@ -6,13 +6,13 @@
@inject IPageModuleService PageModuleService @inject IPageModuleService PageModuleService
<TabStrip> <TabStrip>
<TabPanel Name="Settings" Heading="Module Settings"> <TabPanel Name="Settings" Heading="Module Settings" ResourceKey="ModuleSettings">
@if (_containers != null) @if (_containers != null)
{ {
<table class="table table-borderless"> <table class="table table-borderless">
<tr> <tr>
<td> <td>
<Label For="title" HelpText="Enter the title of the module">Title: </Label> <Label For="title" HelpText="Enter the title of the module" ResourceKey="Title">Title: </Label>
</td> </td>
<td> <td>
<input id="title" type="text" name="Title" class="form-control" @bind="@_title" /> <input id="title" type="text" name="Title" class="form-control" @bind="@_title" />
@ -20,7 +20,7 @@
</tr> </tr>
<tr> <tr>
<td> <td>
<Label For="container" HelpText="Select the module's container">Container: </Label> <Label For="container" HelpText="Select the module's container" ResourceKey="Container">Container: </Label>
</td> </td>
<td> <td>
<select id="container" class="form-control" @bind="@_containerType"> <select id="container" class="form-control" @bind="@_containerType">
@ -34,7 +34,7 @@
</tr> </tr>
<tr> <tr>
<td> <td>
<Label For="allpages" HelpText="Indicate if this module should be displayed on all pages">Display On All Pages? </Label> <Label For="allpages" HelpText="Indicate if this module should be displayed on all pages" ResourceKey="DisplayOnAllPages">Display On All Pages? </Label>
</td> </td>
<td> <td>
<select id="allpages" class="form-control" @bind="@_allPages"> <select id="allpages" class="form-control" @bind="@_allPages">
@ -45,7 +45,7 @@
</tr> </tr>
<tr> <tr>
<td> <td>
<Label For="page" HelpText="The page that the module is on">Page: </Label> <Label For="page" HelpText="The page that the module is on" ResourceKey="Page">Page: </Label>
</td> </td>
<td> <td>
<select id="page" class="form-control" @bind="@_pageId"> <select id="page" class="form-control" @bind="@_pageId">
@ -62,7 +62,7 @@
</table> </table>
} }
</TabPanel> </TabPanel>
<TabPanel Name="Permissions"> <TabPanel Name="Permissions" ResourceKey="Permissions">
@if (_permissions != null) @if (_permissions != null)
{ {
<table class="table table-borderless"> <table class="table table-borderless">
@ -76,7 +76,7 @@
</TabPanel> </TabPanel>
@if (_settingsModuleType != null) @if (_settingsModuleType != null)
{ {
<TabPanel Name="ModuleSettings" Heading="@_settingstitle"> <TabPanel Name="ModuleSettings" Heading="@_settingstitle" ResourceKey="Module Settings">
@DynamicComponent @DynamicComponent
</TabPanel> </TabPanel>
} }