2018-07-26 22:32:24 +09:00
|
|
|
@model BTCPayServer.Models.WalletViewModels.ListWalletsViewModel
|
|
|
|
@{
|
2021-04-08 15:32:42 +02:00
|
|
|
ViewData.SetActivePageAndTitle(WalletsNavPages.Index, "Wallets");
|
2018-07-26 22:32:24 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<div class="container">
|
2021-04-08 15:32:42 +02:00
|
|
|
<partial name="_StatusMessage" />
|
2018-07-26 22:32:24 +09:00
|
|
|
|
|
|
|
<div class="row">
|
2019-11-01 21:55:05 +01:00
|
|
|
<div class="col-lg-12 section-heading">
|
2021-04-08 15:32:42 +02:00
|
|
|
<h2>
|
|
|
|
@ViewData["Title"]
|
|
|
|
<small>
|
|
|
|
<a href="https://docs.btcpayserver.org/Wallet/" target="_blank">
|
|
|
|
<span class="fa fa-question-circle-o text-secondary" title="More information..."></span>
|
|
|
|
</a>
|
|
|
|
</small>
|
|
|
|
</h2>
|
2018-07-26 22:32:24 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2019-11-01 22:15:02 +01:00
|
|
|
<div class="col-lg-12">
|
2020-12-21 12:26:43 +01:00
|
|
|
@if (Model.Wallets.Any())
|
|
|
|
{
|
|
|
|
<table class="table table-sm table-responsive-md">
|
|
|
|
<thead>
|
2019-06-06 18:47:31 +09:00
|
|
|
<tr>
|
2019-11-01 22:15:02 +01:00
|
|
|
<th>Store Name</th>
|
|
|
|
<th>Crypto Code</th>
|
|
|
|
<th>Balance</th>
|
2021-05-19 04:39:27 +02:00
|
|
|
<th class="text-end">Actions</th>
|
2019-06-06 18:47:31 +09:00
|
|
|
</tr>
|
2020-12-21 12:26:43 +01:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2019-11-01 22:15:02 +01:00
|
|
|
@foreach (var wallet in Model.Wallets)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
@if (wallet.IsOwner)
|
|
|
|
{
|
|
|
|
<td><a asp-action="UpdateStore" asp-controller="Stores" asp-route-storeId="@wallet.StoreId">@wallet.StoreName</a></td>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<td>@wallet.StoreName</td>
|
|
|
|
}
|
|
|
|
<td>@wallet.CryptoCode</td>
|
|
|
|
<td>@wallet.Balance</td>
|
2021-05-19 04:39:27 +02:00
|
|
|
<td class="text-end">
|
2019-11-01 22:15:02 +01:00
|
|
|
<a asp-action="WalletTransactions" asp-route-walletId="@wallet.Id">Manage</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
2020-12-21 12:26:43 +01:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<p class="text-secondary mt-3">
|
|
|
|
There are no wallets yet. You can add wallets in the store setup.
|
|
|
|
</p>
|
|
|
|
}
|
2019-11-01 22:15:02 +01:00
|
|
|
</div>
|
2018-07-26 22:32:24 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|