Localize non components for the jobs pages
This commit is contained in:
		| @ -2,6 +2,7 @@ | ||||
| @inherits ModuleBase | ||||
| @inject NavigationManager NavigationManager | ||||
| @inject IJobService JobService | ||||
| @inject IStringLocalizer<Add> Localizer | ||||
|  | ||||
| <table class="table table-borderless"> | ||||
|     <tr> | ||||
| @ -26,8 +27,8 @@ | ||||
|         </td> | ||||
|         <td> | ||||
|             <select id="enabled" class="form-control" @bind="@_isEnabled"> | ||||
|                 <option value="True">Yes</option> | ||||
|                 <option value="False">No</option> | ||||
|                 <option value="True">@Localizer["Yes"]</option> | ||||
|                 <option value="False">@Localizer["No"]</option> | ||||
|             </select> | ||||
|         </td> | ||||
|     </tr> | ||||
| @ -38,10 +39,10 @@ | ||||
|         <td> | ||||
|             <input id="runs-every" class="form-control" @bind="@_interval" /> | ||||
|             <select id="runs-every" class="form-control" @bind="@_frequency"> | ||||
|                 <option value="m">Minute(s)</option> | ||||
|                 <option value="H">Hour(s)</option> | ||||
|                 <option value="d">Day(s)</option> | ||||
|                 <option value="M">Month(s)</option> | ||||
|                 <option value="m">@Localizer["Minute(s)"]</option> | ||||
|                 <option value="H">@Localizer["Hour(s)"]</option> | ||||
|                 <option value="d">@Localizer["Day(s)"]</option> | ||||
|                 <option value="M">@Localizer["Month(s)"]</option> | ||||
|             </select> | ||||
|         </td> | ||||
|     </tr> | ||||
| @ -70,8 +71,8 @@ | ||||
|         </td> | ||||
|     </tr> | ||||
| </table> | ||||
| <button type="button" class="btn btn-success" @onclick="SaveJob">Save</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink> | ||||
| <button type="button" class="btn btn-success" @onclick="SaveJob">@Localizer["Save"]</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">@Localizer["Cancel"]</NavLink> | ||||
|  | ||||
| @code { | ||||
|     private string _name = string.Empty; | ||||
|  | ||||
| @ -2,6 +2,7 @@ | ||||
| @inherits ModuleBase | ||||
| @inject NavigationManager NavigationManager | ||||
| @inject IJobService JobService | ||||
| @inject IStringLocalizer<Edit> Localizer | ||||
|  | ||||
| <table class="table table-borderless"> | ||||
|     <tr> | ||||
| @ -26,8 +27,8 @@ | ||||
|         </td> | ||||
|         <td> | ||||
|             <select id="enabled" class="form-control" @bind="@_isEnabled"> | ||||
|                 <option value="True">Yes</option> | ||||
|                 <option value="False">No</option> | ||||
|                 <option value="True">@Localizer["Yes"]</option> | ||||
|                 <option value="False">@Localizer["No"]</option> | ||||
|             </select> | ||||
|         </td> | ||||
|     </tr> | ||||
| @ -38,10 +39,10 @@ | ||||
|         <td> | ||||
|             <input id="runs-every" class="form-control" @bind="@_interval" /> | ||||
|             <select id="runs-every" class="form-control" @bind="@_frequency"> | ||||
|                 <option value="m">Minute(s)</option> | ||||
|                 <option value="H">Hour(s)</option> | ||||
|                 <option value="d">Day(s)</option> | ||||
|                 <option value="M">Month(s)</option> | ||||
|                 <option value="m">@Localizer["Minute(s)"]</option> | ||||
|                 <option value="H">@Localizer["Hour(s)"]</option> | ||||
|                 <option value="d">@Localizer["Day(s)"]</option> | ||||
|                 <option value="M">@Localizer["Month(s)"]</option> | ||||
|             </select> | ||||
|         </td> | ||||
|     </tr> | ||||
| @ -78,8 +79,8 @@ | ||||
|         </td> | ||||
|     </tr> | ||||
| </table> | ||||
| <button type="button" class="btn btn-success" @onclick="SaveJob">Save</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink> | ||||
| <button type="button" class="btn btn-success" @onclick="SaveJob">@Localizer["Save"]</button> | ||||
| <NavLink class="btn btn-secondary" href="@NavigateUrl()">@Localizer["Cancel"]</NavLink> | ||||
|  | ||||
| @code { | ||||
|     private int _jobId; | ||||
| @ -158,7 +159,7 @@ | ||||
|             { | ||||
|                 job.NextExecution = DateTime.Parse(_nextExecution); | ||||
|             } | ||||
|              | ||||
|  | ||||
|             job.RetentionHistory = int.Parse(_retentionHistory); | ||||
|  | ||||
|             try | ||||
|  | ||||
| @ -4,7 +4,7 @@ | ||||
|  | ||||
| @if (_jobs == null) | ||||
| { | ||||
|     <p><em>Loading...</em></p> | ||||
|     <p><em>@Localizer["Loading..."]</em></p> | ||||
| } | ||||
| else | ||||
| { | ||||
| @ -18,10 +18,10 @@ else | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th>Name</th> | ||||
|             <th>Status</th> | ||||
|             <th>Frequency</th> | ||||
|             <th>Next Execution</th> | ||||
|             <th>@Localizer["Name"]</th> | ||||
|             <th>@Localizer["Status"]</th> | ||||
|             <th>@Localizer["Frequency"]</th> | ||||
|             <th>@Localizer["Next Execution"]</th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|         </Header> | ||||
|         <Row> | ||||
| @ -35,11 +35,11 @@ else | ||||
|             <td> | ||||
|                 @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 | ||||
|                 { | ||||
|                     <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> | ||||
|         </Row> | ||||
|  | ||||
| @ -1,19 +1,20 @@ | ||||
| @namespace Oqtane.Modules.Admin.Jobs | ||||
| @namespace Oqtane.Modules.Admin.Jobs | ||||
| @inherits ModuleBase | ||||
| @inject IJobLogService JobLogService | ||||
| @inject IStringLocalizer<Log> Localizer | ||||
|  | ||||
| @if (_jobLogs == null) | ||||
| { | ||||
|     <p><em>Loading...</em></p> | ||||
|     <p><em>@Localizer["Loading..."]</em></p> | ||||
| } | ||||
| else | ||||
| { | ||||
| <Pager Items="@_jobLogs"> | ||||
|     <Header> | ||||
|         <th>Name</th> | ||||
|         <th>Status</th> | ||||
|         <th>Started</th> | ||||
|         <th>Finished</th> | ||||
|         <th>@Localizer["Name"]</th> | ||||
|         <th>@Localizer["Status"]</th> | ||||
|         <th>@Localizer["Started"]</th> | ||||
|         <th>@Localizer["Finished"]</th> | ||||
|     </Header> | ||||
|     <Row> | ||||
|         <td>@context.Job.Name</td> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 hishamco
					hishamco