mirror of
https://github.com/oqtane/oqtane.framework.git
synced 2025-05-22 20:44:23 +00:00
Localize non components for the jobs pages
This commit is contained in:
parent
bc570de9e6
commit
177dcad5a1
@ -2,6 +2,7 @@
|
|||||||
@inherits ModuleBase
|
@inherits ModuleBase
|
||||||
@inject NavigationManager NavigationManager
|
@inject NavigationManager NavigationManager
|
||||||
@inject IJobService JobService
|
@inject IJobService JobService
|
||||||
|
@inject IStringLocalizer<Add> Localizer
|
||||||
|
|
||||||
<table class="table table-borderless">
|
<table class="table table-borderless">
|
||||||
<tr>
|
<tr>
|
||||||
@ -26,8 +27,8 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<select id="enabled" class="form-control" @bind="@_isEnabled">
|
<select id="enabled" class="form-control" @bind="@_isEnabled">
|
||||||
<option value="True">Yes</option>
|
<option value="True">@Localizer["Yes"]</option>
|
||||||
<option value="False">No</option>
|
<option value="False">@Localizer["No"]</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -38,10 +39,10 @@
|
|||||||
<td>
|
<td>
|
||||||
<input id="runs-every" class="form-control" @bind="@_interval" />
|
<input id="runs-every" class="form-control" @bind="@_interval" />
|
||||||
<select id="runs-every" class="form-control" @bind="@_frequency">
|
<select id="runs-every" class="form-control" @bind="@_frequency">
|
||||||
<option value="m">Minute(s)</option>
|
<option value="m">@Localizer["Minute(s)"]</option>
|
||||||
<option value="H">Hour(s)</option>
|
<option value="H">@Localizer["Hour(s)"]</option>
|
||||||
<option value="d">Day(s)</option>
|
<option value="d">@Localizer["Day(s)"]</option>
|
||||||
<option value="M">Month(s)</option>
|
<option value="M">@Localizer["Month(s)"]</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -70,8 +71,8 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<button type="button" class="btn btn-success" @onclick="SaveJob">Save</button>
|
<button type="button" class="btn btn-success" @onclick="SaveJob">@Localizer["Save"]</button>
|
||||||
<NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink>
|
<NavLink class="btn btn-secondary" href="@NavigateUrl()">@Localizer["Cancel"]</NavLink>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
private string _name = string.Empty;
|
private string _name = string.Empty;
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
@inherits ModuleBase
|
@inherits ModuleBase
|
||||||
@inject NavigationManager NavigationManager
|
@inject NavigationManager NavigationManager
|
||||||
@inject IJobService JobService
|
@inject IJobService JobService
|
||||||
|
@inject IStringLocalizer<Edit> Localizer
|
||||||
|
|
||||||
<table class="table table-borderless">
|
<table class="table table-borderless">
|
||||||
<tr>
|
<tr>
|
||||||
@ -26,8 +27,8 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<select id="enabled" class="form-control" @bind="@_isEnabled">
|
<select id="enabled" class="form-control" @bind="@_isEnabled">
|
||||||
<option value="True">Yes</option>
|
<option value="True">@Localizer["Yes"]</option>
|
||||||
<option value="False">No</option>
|
<option value="False">@Localizer["No"]</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -38,10 +39,10 @@
|
|||||||
<td>
|
<td>
|
||||||
<input id="runs-every" class="form-control" @bind="@_interval" />
|
<input id="runs-every" class="form-control" @bind="@_interval" />
|
||||||
<select id="runs-every" class="form-control" @bind="@_frequency">
|
<select id="runs-every" class="form-control" @bind="@_frequency">
|
||||||
<option value="m">Minute(s)</option>
|
<option value="m">@Localizer["Minute(s)"]</option>
|
||||||
<option value="H">Hour(s)</option>
|
<option value="H">@Localizer["Hour(s)"]</option>
|
||||||
<option value="d">Day(s)</option>
|
<option value="d">@Localizer["Day(s)"]</option>
|
||||||
<option value="M">Month(s)</option>
|
<option value="M">@Localizer["Month(s)"]</option>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -78,8 +79,8 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<button type="button" class="btn btn-success" @onclick="SaveJob">Save</button>
|
<button type="button" class="btn btn-success" @onclick="SaveJob">@Localizer["Save"]</button>
|
||||||
<NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink>
|
<NavLink class="btn btn-secondary" href="@NavigateUrl()">@Localizer["Cancel"]</NavLink>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
private int _jobId;
|
private int _jobId;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
@if (_jobs == null)
|
@if (_jobs == null)
|
||||||
{
|
{
|
||||||
<p><em>Loading...</em></p>
|
<p><em>@Localizer["Loading..."]</em></p>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -18,10 +18,10 @@ else
|
|||||||
<th style="width: 1px;"> </th>
|
<th style="width: 1px;"> </th>
|
||||||
<th style="width: 1px;"> </th>
|
<th style="width: 1px;"> </th>
|
||||||
<th style="width: 1px;"> </th>
|
<th style="width: 1px;"> </th>
|
||||||
<th>Name</th>
|
<th>@Localizer["Name"]</th>
|
||||||
<th>Status</th>
|
<th>@Localizer["Status"]</th>
|
||||||
<th>Frequency</th>
|
<th>@Localizer["Frequency"]</th>
|
||||||
<th>Next Execution</th>
|
<th>@Localizer["Next Execution"]</th>
|
||||||
<th style="width: 1px;"> </th>
|
<th style="width: 1px;"> </th>
|
||||||
</Header>
|
</Header>
|
||||||
<Row>
|
<Row>
|
||||||
@ -35,11 +35,11 @@ else
|
|||||||
<td>
|
<td>
|
||||||
@if (context.IsStarted)
|
@if (context.IsStarted)
|
||||||
{
|
{
|
||||||
<button type="button" class="btn btn-danger" @onclick="(async () => await StopJob(context.JobId))">Stop</button>
|
<button type="button" class="btn btn-danger" @onclick="(async () => await StopJob(context.JobId))">@Localizer["Stop"]</button>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<button type="button" class="btn btn-success" @onclick="(async () => await StartJob(context.JobId))">Start</button>
|
<button type="button" class="btn btn-success" @onclick="(async () => await StartJob(context.JobId))">@Localizer["Start"]</button>
|
||||||
}
|
}
|
||||||
</td>
|
</td>
|
||||||
</Row>
|
</Row>
|
||||||
|
@ -1,19 +1,20 @@
|
|||||||
@namespace Oqtane.Modules.Admin.Jobs
|
@namespace Oqtane.Modules.Admin.Jobs
|
||||||
@inherits ModuleBase
|
@inherits ModuleBase
|
||||||
@inject IJobLogService JobLogService
|
@inject IJobLogService JobLogService
|
||||||
|
@inject IStringLocalizer<Log> Localizer
|
||||||
|
|
||||||
@if (_jobLogs == null)
|
@if (_jobLogs == null)
|
||||||
{
|
{
|
||||||
<p><em>Loading...</em></p>
|
<p><em>@Localizer["Loading..."]</em></p>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<Pager Items="@_jobLogs">
|
<Pager Items="@_jobLogs">
|
||||||
<Header>
|
<Header>
|
||||||
<th>Name</th>
|
<th>@Localizer["Name"]</th>
|
||||||
<th>Status</th>
|
<th>@Localizer["Status"]</th>
|
||||||
<th>Started</th>
|
<th>@Localizer["Started"]</th>
|
||||||
<th>Finished</th>
|
<th>@Localizer["Finished"]</th>
|
||||||
</Header>
|
</Header>
|
||||||
<Row>
|
<Row>
|
||||||
<td>@context.Job.Name</td>
|
<td>@context.Job.Name</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user