btcpayserver/BTCPayServer/Views/MoneroLikeStore/GetStoreMoneroLikePaymentMethods.cshtml

57 lines
2 KiB
Text
Raw Normal View History

2019-09-30 10:32:43 +02:00
@using BTCPayServer.Views.Stores
@model BTCPayServer.Services.Altcoins.Monero.UI.MoneroLikeStoreController.MoneroLikePaymentMethodListViewModel
2019-09-30 10:32:43 +02:00
@{
Layout = "../Shared/_NavLayout.cshtml";
ViewData.SetActivePageAndTitle(StoreNavPages.ActivePage, "Monero Settings");
ViewData["NavPartialName"] = "../Stores/_Nav";
}
<div class="row">
<div class="col-md-8">
<div asp-validation-summary="All" class="text-danger"></div>
2020-01-14 12:46:07 +01:00
<div class="form-group">
<table class="table table-sm table-responsive-md">
<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)
{
<span class="text-success fa fa-check"></span>
2020-01-14 12:46:07 +01:00
}
else
{
<span class="text-danger fa fa-times"></span>
2020-01-14 12:46:07 +01:00
}
</td>
<td class="text-right">
<a id="Modify" asp-action="GetStoreMoneroLikePaymentMethod"
asp-route-storeId="@Context.GetRouteValue("storeId")"
2020-01-14 12:46:07 +01:00
asp-route-cryptoCode="@item.CryptoCode">
Modify
</a>
</td>
</tr>
}
</tbody>
</table>
</div>
2019-09-30 10:32:43 +02:00
</div>
</div>
@section Scripts {
@await Html.PartialAsync("_ValidationScriptsPartial")
}