@using BTCPayServer.Services.PaymentRequests @using System.Globalization @using BTCPayServer.Client @using BTCPayServer.Forms @using BTCPayServer.TagHelpers @using Microsoft.AspNetCore.Mvc.TagHelpers @inject FormDataService FormDataService @model BTCPayServer.Models.PaymentRequestViewModels.UpdatePaymentRequestViewModel @{ var checkoutFormOptions = await FormDataService.GetSelect(Model.StoreId, Model.FormId); ViewData.SetActivePage(PaymentRequestsNavPages.Create, string.IsNullOrEmpty(Model.Id) ? StringLocalizer["Create Payment Request"] : StringLocalizer["Edit Payment Request"], Model.Id); } @section PageHeadContent { } @section PageFootContent { }
@if (!ViewContext.ModelState.IsValid) {
}
@if (!Model.AmountAndCurrencyEditable) {

Amount and currency are not editable once payment request has invoices

}
"]" class="form-control" />
@ViewLocalizer["This will send notification mails to the recipient, as configured by the {0}.", Html.ActionLink(StringLocalizer["email rules"], "StoreEmails", "UIStores", new { storeId = Model.StoreId })] @if (Model.HasEmailRules is not true) { }
@if (Model.FormResponse is not null) {
}
@if (!string.IsNullOrEmpty(Model.Id)) {
Invoices Clone @if (!Model.Archived) { Archive } else { Unarchive }
}