mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Improve U2F view
This commit is contained in:
parent
906ecc021b
commit
4db6c16068
1 changed files with 18 additions and 19 deletions
|
@ -1,17 +1,17 @@
|
|||
@model BTCPayServer.U2F.Models.U2FAuthenticationViewModel
|
||||
@{
|
||||
ViewData.SetActivePageAndTitle(ManageNavPages.U2F, "Manage your registered U2F devices");
|
||||
ViewData.SetActivePageAndTitle(ManageNavPages.U2F, "Registered U2F devices");
|
||||
}
|
||||
|
||||
<partial name="_StatusMessage" />
|
||||
<h4>Registered U2F Devices</h4>
|
||||
|
||||
<form asp-action="AddU2FDevice" method="get">
|
||||
<table class="table table-lg">
|
||||
<table class="table table-lg mb-4">
|
||||
<thead>
|
||||
<tr>
|
||||
<th >Name</th>
|
||||
<th class="text-right">Actions</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th class="text-right">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var device in Model.Devices)
|
||||
|
@ -19,8 +19,7 @@
|
|||
<tr>
|
||||
<td>@device.Name</td>
|
||||
<td class="text-right" >
|
||||
<a asp-action="RemoveU2FDevice" asp-route-id="@device.Id">Remove</a>
|
||||
|
||||
<a asp-action="RemoveU2FDevice" asp-route-id="@device.Id">Remove</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
@ -32,16 +31,16 @@
|
|||
</td>
|
||||
</tr>
|
||||
}
|
||||
<tr class="bg-gray">
|
||||
<td>
|
||||
<input type="text" class="form-control" name="Name" placeholder="New Device Name"/>
|
||||
</td>
|
||||
<td>
|
||||
<div class="pull-right">
|
||||
<button type="submit" class="btn btn-primary">Add New Device</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="form-inline">
|
||||
<div class="form-group">
|
||||
<input type="text" class="form-control" name="Name" placeholder="New Device Name"/>
|
||||
<button type="submit" class="btn btn-primary ml-2">
|
||||
<span class="fa fa-plus"></span>
|
||||
Add New Device
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Reference in a new issue