Remove section nav for pull payments and payouts

This commit is contained in:
Dennis Reimann
2021-12-16 11:04:04 +01:00
committed by Andrew Camilleri
parent 7d2627551b
commit 42e731369e
2 changed files with 7 additions and 11 deletions

View File

@@ -7,9 +7,7 @@
@inject IEnumerable<IPayoutHandler> PayoutHandlers;
@{
Layout = "../Shared/_NavLayout.cshtml";
ViewData["NavPartialName"] = "../Stores/_Nav";
ViewData.SetActivePageAndTitle(StoreNavPages.Payouts, $"Manage payouts{(string.IsNullOrEmpty(Model.PullPaymentName) ? string.Empty : " for pull payment " + Model.PullPaymentName)}", Context.GetStoreData().StoreName);
ViewData.SetActivePageAndTitle(StoreNavPages.Payouts, $"Payouts{(string.IsNullOrEmpty(Model.PullPaymentName) ? string.Empty : " for pull payment " + Model.PullPaymentName)}", Context.GetStoreData().StoreName);
Model.PaginationQuery ??= new Dictionary<string, object>();
Model.PaginationQuery.Add("pullPaymentId", Model.PullPaymentId);
Model.PaginationQuery.Add("paymentMethodId", Model.PaymentMethodId);
@@ -50,11 +48,11 @@
</script>
}
<h2 class="mt-1 mb-4">@ViewData["Title"]</h2>
<form method="post">
<input type="hidden" asp-for="PaymentMethodId"/>
<input type="hidden" asp-for="PayoutState"/>
<h4 class="mb-4">@ViewData["Title"]</h4>
<div class="row">
<div class="col-12">
<ul class="nav nav-pills bg-tile mb-2" style="border-radius:4px; border: 1px solid var(--btcpay-body-border-medium)">

View File

@@ -3,11 +3,9 @@
@using BTCPayServer.Client
@model BTCPayServer.Models.WalletViewModels.PullPaymentsModel
@{
Layout = "../Shared/_NavLayout.cshtml";
ViewData["NavPartialName"] = "../Stores/_Nav";
ViewData.SetActivePageAndTitle(StoreNavPages.PullPayments, "Pull payments", Context.GetStoreData().StoreName);
var nextStartDateSortOrder = (string)ViewData["NextStartSortOrder"];
String startDateSortOrder = null;
string startDateSortOrder = null;
switch (nextStartDateSortOrder)
{
case "asc":
@@ -36,15 +34,15 @@
</style>
}
<div class="d-flex align-items-center justify-content-between mt-n1 mb-3">
<h4 class="mb-0">
<div class="d-flex align-items-center justify-content-between mb-2">
<h2 class="mb-0">
@ViewData["Title"]
<small>
<a href="https://docs.btcpayserver.org/PullPayments/" target="_blank" rel="noreferrer noopener">
<span class="fa fa-question-circle-o text-secondary" title="More information..."></span>
</a>
</small>
</h4>
</h2>
<a permission="@Policies.CanModifyStoreSettings" asp-action="NewPullPayment" asp-route-storeId="@Context.GetRouteValue("storeId")" class="btn btn-primary" role="button" id="NewPullPayment">
<span class="fa fa-plus"></span> Create a new pull payment
</a>