mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
* UI: Move section navigation to sidebar * Scroll active nav link into view * Move CTAs to top right * Server Settings: Make Policies first page * Responsive table fixes * Spacing fixes * Add breadcrumb samples * store settings fixes * payment request fixes * updates pull payment title * adds invoice detail fix * updates server settings breadcrumbs + copy fix * Don't open Server Settings on Plugins page * Add breadcrumbs to pull payment views * adds breadcrumbs to account * server and store breadcrumb fixes * fixes access tokens * Fix payment processor breadcrumbs * fixes webhook 404 * Final touches * Fix test * Add breadcrumb for email rules page * Design system updates --------- Co-authored-by: dstrukt <gfxdsign@gmail.com>
54 lines
2 KiB
Text
54 lines
2 KiB
Text
@using BTCPayServer.Abstractions.Models
|
|
@model WalletLabelsModel
|
|
@{
|
|
var walletId = Context.GetRouteValue("walletId").ToString();
|
|
ViewData.SetActivePage(WalletsNavPages.Settings, $"{Model.WalletId.CryptoCode} Wallet Labels", walletId);
|
|
}
|
|
|
|
@section PageFootContent {
|
|
<script>
|
|
delegate('click', '.btn-delete', event => { event.preventDefault() })
|
|
</script>
|
|
}
|
|
|
|
<h2 class="mb-2 mb-lg-3">@ViewData["Title"]</h2>
|
|
<partial name="_StatusMessage" />
|
|
|
|
@if (Model.Labels.Any())
|
|
{
|
|
<div class="table-responsive-md">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Label</th>
|
|
<th class="text-end">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var label in Model.Labels)
|
|
{
|
|
<tr>
|
|
<td>
|
|
<div class="transaction-label" style="--label-bg:@label.Color;--label-fg:@label.TextColor">
|
|
<span>@label.Label</span>
|
|
</div>
|
|
</td>
|
|
<td class="text-end">
|
|
<form method="post" asp-action="RemoveWalletLabel" asp-route-walletId="@Model.WalletId" asp-route-id="@label.Label">
|
|
<button class="btn btn-link btn-delete p-0" type="submit" data-bs-toggle="modal" data-bs-target="#ConfirmModal" data-description="The label <strong>@Html.Encode(label.Label)</strong> will be removed from this wallet and its associated transactions." data-confirm-input="DELETE">Remove</button>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<partial name="_Confirm" model="@(new ConfirmModel("Remove label", "This label will be removed from this wallet and its associated transactions.", "Remove"))" />
|
|
}
|
|
else
|
|
{
|
|
<p class="text-secondary mt-3">
|
|
There are no custom labels yet. You can create custom labels by assigning them to your <a asp-action="WalletTransactions" asp-route-walletId="@walletId">transactions</a>.
|
|
</p>
|
|
}
|
|
|