2022-02-14 16:04:34 +08:00
|
|
|
@using BTCPayServer.Views.Stores
|
|
|
|
@model BTCPayServer.Services.Altcoins.Zcash.UI.UIZcashLikeStoreController.ZcashLikePaymentMethodListViewModel
|
|
|
|
|
|
|
|
@{
|
2024-06-19 15:23:10 +02:00
|
|
|
ViewData.SetActivePage(StoreNavPages.OnchainSettings, "Zcash Settings", $"{Context.GetStoreData().Id}-ZEC");
|
2022-02-14 16:04:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8">
|
2024-06-19 15:23:10 +02:00
|
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
|
|
{
|
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
}
|
|
|
|
<div class="table-responsive-md">
|
|
|
|
<table class="table table-hover">
|
2022-02-14 16:04:34 +08:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Crypto</th>
|
|
|
|
<th>Account Index</th>
|
|
|
|
<th class="text-center">Enabled</th>
|
|
|
|
<th class="text-right">Actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var item in Model.Items)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>@item.CryptoCode</td>
|
|
|
|
<td>@item.AccountIndex</td>
|
|
|
|
<td class="text-center">
|
|
|
|
@if (item.Enabled)
|
|
|
|
{
|
2024-05-20 01:57:46 +02:00
|
|
|
<vc:icon symbol="checkmark" css-class="text-success" />
|
2022-02-14 16:04:34 +08:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2024-05-20 01:57:46 +02:00
|
|
|
<vc:icon symbol="cross" css-class="text-danger" />
|
2022-02-14 16:04:34 +08:00
|
|
|
}
|
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
|
|
|
<a id="Modify" asp-action="GetStoreZcashLikePaymentMethod"
|
|
|
|
asp-route-storeId="@Context.GetRouteValue("storeId")"
|
|
|
|
asp-route-cryptoCode="@item.CryptoCode">
|
|
|
|
Modify
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@section PageFootContent {
|
|
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
|
|
|
}
|