Updated web ui to razor
This commit is contained in:
34
WebUI_Old/Views/Plugins/InstalledPlugins.cshtml
Normal file
34
WebUI_Old/Views/Plugins/InstalledPlugins.cshtml
Normal file
@@ -0,0 +1,34 @@
|
||||
@model List<InstalledPluginViewModel>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Installed Plugins";
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Version</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var plugin in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>@plugin.Name</td>
|
||||
<td>@plugin.Version</td>
|
||||
<td>
|
||||
<form method="post" asp-action="DeletePlugin" asp-route-pluginName="@plugin.Name">
|
||||
<button type="submit" class="btn btn-danger btn-sm">Delete</button>
|
||||
</form>
|
||||
<form method="post" asp-action="GetPluginDetails" asp-route-pluginName="@plugin.Name">
|
||||
<button type="submit" class="btn btn-info btn-sm" data-toggle="modal">Details</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user