Localize non components for the files pages
This commit is contained in:
		| @ -4,6 +4,7 @@ | ||||
| @inject NavigationManager NavigationManager | ||||
| @inject IFileService FileService | ||||
| @inject IFolderService FolderService | ||||
| @inject IStringLocalizer<Add> Localizer | ||||
|  | ||||
| <TabStrip> | ||||
|     <TabPanel Name="Upload" Heading="Upload Files" ResourceKey="Upload Files"> | ||||
| @ -17,7 +18,7 @@ | ||||
|                 </td> | ||||
|             </tr> | ||||
|         </table> | ||||
|         <NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink> | ||||
|         <NavLink class="btn btn-secondary" href="@NavigateUrl()">@Localizer["Cancel"]</NavLink> | ||||
|     </TabPanel> | ||||
|     <TabPanel Name="Download" Heading="Download Files" ResourceKey="DownloadFiles"> | ||||
|         @if (_folders != null) | ||||
| @ -46,8 +47,8 @@ | ||||
|                     </td> | ||||
|                 </tr> | ||||
|             </table> | ||||
|             <button type="button" class="btn btn-success" @onclick="Download">Download</button> | ||||
|             <NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink> | ||||
|             <button type="button" class="btn btn-success" @onclick="Download">@Localizer["Download"]</button> | ||||
|             <NavLink class="btn btn-secondary" href="@NavigateUrl()">@Localizer["Cancel"]</NavLink> | ||||
|         } | ||||
|     </TabPanel> | ||||
| </TabStrip> | ||||
| @ -81,10 +82,10 @@ | ||||
|  | ||||
|         if (!Constants.UploadableFiles.Split(',') | ||||
|                 .Contains(Path.GetExtension(filename).ToLower().Replace(".", ""))) | ||||
|             { | ||||
|                 AddModuleMessage("File Could Not Be Downloaded From Url Due To Its File Extension", MessageType.Warning); | ||||
|                 return ; | ||||
|             } | ||||
|         { | ||||
|             AddModuleMessage("File Could Not Be Downloaded From Url Due To Its File Extension", MessageType.Warning); | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|         if (!filename.IsPathOrFileValid()) | ||||
|         { | ||||
|  | ||||
| @ -3,6 +3,7 @@ | ||||
| @inject IFileService FileService | ||||
| @inject IFolderService FolderService | ||||
| @inject NavigationManager NavigationManager | ||||
| @inject IStringLocalizer<Details> Localizer | ||||
|  | ||||
| @if (_folders != null) | ||||
| { | ||||
| @ -37,8 +38,8 @@ | ||||
|             </td> | ||||
|         </tr> | ||||
|     </table> | ||||
|     <button type="button" class="btn btn-success" @onclick="SaveFile">Save</button> | ||||
|     <NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink> | ||||
|     <button type="button" class="btn btn-success" @onclick="SaveFile">@Localizer["Save"]</button> | ||||
|     <NavLink class="btn btn-secondary" href="@NavigateUrl()">@Localizer["Cancel"]</NavLink> | ||||
|     <br /> | ||||
|     <br /> | ||||
|     <AuditInfo CreatedBy="@_createdBy" CreatedOn="@_createdOn" ModifiedBy="@_modifiedBy" ModifiedOn="@_modifiedOn"></AuditInfo> | ||||
|  | ||||
| @ -3,6 +3,7 @@ | ||||
| @inject IFolderService FolderService | ||||
| @inject IFileService FileService | ||||
| @inject NavigationManager NavigationManager | ||||
| @inject IStringLocalizer<Edit> Localizer | ||||
|  | ||||
| @if (_folders != null) | ||||
| { | ||||
| @ -41,7 +42,7 @@ | ||||
|     </table> | ||||
|     @if (!_isSystem) | ||||
|     { | ||||
|         <button type="button" class="btn btn-success" @onclick="SaveFolder">Save</button> | ||||
|         <button type="button" class="btn btn-success" @onclick="SaveFolder">@Localizer["Save"]</button> | ||||
|     } | ||||
|     <NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink> | ||||
|     @if (!_isSystem && PageState.QueryString.ContainsKey("id")) | ||||
|  | ||||
| @ -3,13 +3,14 @@ | ||||
| @inject NavigationManager NavigationManager | ||||
| @inject IFolderService FolderService | ||||
| @inject IFileService FileService | ||||
| @inject IStringLocalizer<Index> Localizer | ||||
|  | ||||
| @if (_files != null) | ||||
| { | ||||
|     <table class="table table-borderless"> | ||||
|         <tr> | ||||
|             <td> | ||||
|                 <label  class="control-label">Folder: </label> | ||||
|                 <label  class="control-label">@Localizer["Folder:"] </label> | ||||
|             </td> | ||||
|             <td> | ||||
|                 <select class="form-control" @onchange="(e => FolderChanged(e))"> | ||||
| @ -30,23 +31,23 @@ | ||||
|         <Header> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th style="width: 1px;"> </th> | ||||
|             <th>Name</th> | ||||
|             <th>Modified</th> | ||||
|             <th>Type</th> | ||||
|             <th>Size</th> | ||||
|             <th>@Localizer["Name"]</th> | ||||
|             <th>@Localizer["Modified"]</th> | ||||
|             <th>@Localizer["Type"]</th> | ||||
|             <th>@Localizer["Size"]</th> | ||||
|         </Header> | ||||
|         <Row> | ||||
|             <td><ActionLink Action="Details" Text="Edit" Parameters="@($"id=" + context.FileId.ToString())" ResourceKey="Details" /></td> | ||||
|             <td><ActionDialog Header="Delete File" Message="@("Are You Sure You Wish To Delete " + context.Name + "?")" Action="Delete" Security="SecurityAccessLevel.Admin" Class="btn btn-danger" OnClick="@(async () => await DeleteFile(context))" ResourceKey="DeleteFile" /></td> | ||||
|             <td><a href="@(ContentUrl(context.FileId))" target="_new">@context.Name</a></td> | ||||
|             <td>@context.ModifiedOn</td> | ||||
|             <td>@context.Extension.ToUpper() File</td> | ||||
|             <td>@context.Extension.ToUpper() @Localizer["File"]</td> | ||||
|             <td>@(context.Size / 1000) KB</td> | ||||
|         </Row> | ||||
|     </Pager> | ||||
|     @if (_files.Count == 0) | ||||
|     { | ||||
|         <div class="text-center">No Files Exist In Selected Folder</div> | ||||
| <div class="text-center">@Localizer["No Files Exist In Selected Folder"]</div> | ||||
|     } | ||||
| } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 hishamco
					hishamco