diff --git a/Marechai/Areas/Admin/Views/InstructionSetExtensions/Index.cshtml b/Marechai/Pages/Admin/InstructionSetExtensions.razor
similarity index 56%
rename from Marechai/Areas/Admin/Views/InstructionSetExtensions/Index.cshtml
rename to Marechai/Pages/Admin/InstructionSetExtensions.razor
index 034f01b0..a6a9182f 100644
--- a/Marechai/Areas/Admin/Views/InstructionSetExtensions/Index.cshtml
+++ b/Marechai/Pages/Admin/InstructionSetExtensions.razor
@@ -1,14 +1,14 @@
-@{
- /******************************************************************************
+@{
+/******************************************************************************
// MARECHAI: Master repository of computing history artifacts information
// ----------------------------------------------------------------------------
//
-// Filename : Index.cshtml
+// Filename : InstructionSetExtensions.razor
// Author(s) : Natalia Portillo
//
// --[ Description ] ----------------------------------------------------------
//
-// Admin view index
+// List of instruction set extensions
//
// --[ License ] --------------------------------------------------------------
//
@@ -29,45 +29,62 @@
// Copyright © 2003-2020 Natalia Portillo
*******************************************************************************/
}
-@model IEnumerable
-@{
- ViewData["Title"] = "Instruction set extensions (Admin)";
+@page "/admin/instruction_set_extensions"
+@using Marechai.Database.Models
+@inherits OwningComponentBase
+@inject IStringLocalizer L
+@attribute [Authorize(Roles = "UberAdmin, Admin")]
+@L["Instruction set extensions"]
+@if (_extensions is null)
+{
+ @L["Loading..."]
+
+ return;
}
-Instruction set extensions
-
- Create New
-
+
+ @L["Create new"]
+
|
- @Html.DisplayNameFor(model => model.Extension)
+ @L["Extensions"]
|
|
- @foreach (var item in Model)
+ @foreach (var item in _extensions)
{
|
- @Html.DisplayFor(modelItem => item.Extension)
+ @item.Extension
|
-
- Details
-
-
- Edit
-
-
- Delete
-
+
+ @L["Details"]
+
+
+ @L["Edit"]
+
+
+ @L["Delete"]
+
|
}
-
\ No newline at end of file
+