Localize components for the logs pages

This commit is contained in:
hishamco 2020-11-20 00:53:55 +03:00
parent 301051898b
commit e1b02ee405
2 changed files with 17 additions and 17 deletions

View File

@ -1,4 +1,4 @@
@namespace Oqtane.Modules.Admin.Logs
@namespace Oqtane.Modules.Admin.Logs
@using System.Globalization
@inherits ModuleBase
@inject NavigationManager NavigationManager
@ -10,7 +10,7 @@
<table class="table table-borderless">
<tr>
<td>
<Label For="dateTime" HelpText="The date and time of this log">Date/Time: </Label>
<Label For="dateTime" HelpText="The date and time of this log" ResourceKey="DateTime">Date/Time: </Label>
</td>
<td>
<input id="dateTime" class="form-control" @bind="@_logDate" readonly />
@ -18,7 +18,7 @@
</tr>
<tr>
<td>
<Label For="level" HelpText="The level of this log">Level: </Label>
<Label For="level" HelpText="The level of this log" ResourceKey="Level">Level: </Label>
</td>
<td>
<input id="level" class="form-control" @bind="@_level" readonly />
@ -26,7 +26,7 @@
</tr>
<tr>
<td>
<Label For="feature" HelpText="The feature that was affected">Feature: </Label>
<Label For="feature" HelpText="The feature that was affected" ResourceKey="Feature">Feature: </Label>
</td>
<td>
<input id="feature" class="form-control" @bind="@_feature" readonly />
@ -34,7 +34,7 @@
</tr>
<tr>
<td>
<Label For="function" HelpText="The function that was performed">Function: </Label>
<Label For="function" HelpText="The function that was performed" ResourceKey="Function">Function: </Label>
</td>
<td>
<input id="function" class="form-control" @bind="@_function" readonly />
@ -42,7 +42,7 @@
</tr>
<tr>
<td>
<Label For="category" HelpText="The categories that were affected">Category: </Label>
<Label For="category" HelpText="The categories that were affected" ResourceKey="Category">Category: </Label>
</td>
<td>
<input id="category" class="form-control" @bind="@_category" readonly />
@ -52,7 +52,7 @@
{
<tr>
<td>
<Label For="page" HelpText="The page that was affected">Page: </Label>
<Label For="page" HelpText="The page that was affected" ResourceKey="Page">Page: </Label>
</td>
<td>
<input id="page" class="form-control" @bind="@_pageName" readonly />
@ -63,7 +63,7 @@
{
<tr>
<td>
<Label For="module" HelpText="The module that was affected">Module: </Label>
<Label For="module" HelpText="The module that was affected" ResourceKey="Module">Module: </Label>
</td>
<td>
<input id="module" class="form-control" @bind="@_moduleTitle" readonly />
@ -74,7 +74,7 @@
{
<tr>
<td>
<Label For="user" HelpText="The user that caused this log">User: </Label>
<Label For="user" HelpText="The user that caused this log" ResourceKey="User">User: </Label>
</td>
<td>
<input id="user" class="form-control" @bind="@_username" readonly />
@ -83,7 +83,7 @@
}
<tr>
<td>
<Label For="url" HelpText="The url the log comes from">Url: </Label>
<Label For="url" HelpText="The url the log comes from" ResourceKey="Url">Url: </Label>
</td>
<td>
<input id="url" class="form-control" @bind="@_url" readonly />
@ -91,7 +91,7 @@
</tr>
<tr>
<td>
<Label For="template" HelpText="What the log is about">Template: </Label>
<Label For="template" HelpText="What the log is about" ResourceKey="Template">Template: </Label>
</td>
<td>
<input id="template" class="form-control" @bind="@_template" readonly />
@ -99,7 +99,7 @@
</tr>
<tr>
<td>
<Label For="message" HelpText="The message that the system generated"class="control-label">Message: </Label>
<Label For="message" HelpText="The message that the system generated"class="control-label" ResourceKey="Message">Message: </Label>
</td>
<td>
<textarea id="message" class="form-control" @bind="@_message" rows="5" readonly></textarea>
@ -109,7 +109,7 @@
{
<tr>
<td>
<Label For="exception" HelpText="The exceptions generated by the system">Exception: </Label>
<Label For="exception" HelpText="The exceptions generated by the system" ResourceKey="Exception">Exception: </Label>
</td>
<td>
<textarea id="exception" class="form-control" @bind="@_exception" rows="5" readonly></textarea>
@ -118,7 +118,7 @@
}
<tr>
<td>
<Label For="properties" HelpText="The properties that were affected">Properties: </Label>
<Label For="properties" HelpText="The properties that were affected" ResourceKey="Properties">Properties: </Label>
</td>
<td>
<textarea id="properties" class="form-control" @bind="@_properties" rows="5" readonly></textarea>
@ -126,7 +126,7 @@
</tr>
<tr>
<td>
<Label For="server" HelpText="The server that was affected">Server: </Label>
<Label For="server" HelpText="The server that was affected" ResourceKey="Server">Server: </Label>
</td>
<td>
<input id="server" class="form-control" @bind="@_server" readonly />

View File

@ -1,4 +1,4 @@
@namespace Oqtane.Modules.Admin.Logs
@namespace Oqtane.Modules.Admin.Logs
@inherits ModuleBase
@inject ILogService LogService
@ -56,7 +56,7 @@ else
<th>Function</th>
</Header>
<Row>
<td class="@GetClass(context.Function)"><ActionLink Action="Detail" Parameters="@($"id=" + context.LogId.ToString())" /></td>
<td class="@GetClass(context.Function)"><ActionLink Action="Detail" Parameters="@($"id=" + context.LogId.ToString())" ResourceKey="LogDetails" /></td>
<td class="@GetClass(context.Function)">@context.LogDate</td>
<td class="@GetClass(context.Function)">@context.Level</td>
<td class="@GetClass(context.Function)">@context.Feature</td>