2017-09-13 08:47:34 +02:00
|
|
|
@model BTCPayServer.Models.InvoicingModels.CreateInvoiceModel
|
|
|
|
@{
|
2021-04-08 15:32:42 +02:00
|
|
|
ViewData.SetActivePageAndTitle(InvoiceNavPages.Create, "Create an invoice");
|
2017-09-13 08:47:34 +02:00
|
|
|
}
|
2018-11-19 05:20:48 +01:00
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
$("#create-invoice-form").on("submit",
|
|
|
|
function() {
|
|
|
|
$(this).find("input[type='submit']").prop('disabled', true);
|
|
|
|
});
|
|
|
|
})
|
|
|
|
</script>
|
2017-09-13 08:47:34 +02:00
|
|
|
<section>
|
2017-10-27 10:53:04 +02:00
|
|
|
<div class="container">
|
2021-04-08 15:32:42 +02:00
|
|
|
<partial name="_StatusMessage" />
|
|
|
|
|
|
|
|
<h2 class="mb-4">@ViewData["Title"]</h2>
|
|
|
|
|
2017-10-27 10:53:04 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
2018-11-19 05:20:48 +01:00
|
|
|
<form asp-action="CreateInvoice" method="post" id="create-invoice-form">
|
2017-10-27 10:53:04 +02:00
|
|
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
|
|
|
<div class="form-group">
|
2021-03-30 07:27:42 +02:00
|
|
|
<label asp-for="Amount" class="control-label" data-required></label>
|
|
|
|
<input asp-for="Amount" class="form-control" required />
|
2017-10-27 10:53:04 +02:00
|
|
|
<span asp-validation-for="Amount" class="text-danger"></span>
|
|
|
|
</div>
|
2017-12-03 14:36:04 +01:00
|
|
|
<div class="form-group">
|
2021-03-30 07:27:42 +02:00
|
|
|
<label asp-for="Currency" class="control-label" data-required></label>
|
|
|
|
<input asp-for="Currency" class="form-control" required />
|
2017-12-03 14:36:04 +01:00
|
|
|
<span asp-validation-for="Currency" class="text-danger"></span>
|
|
|
|
</div>
|
2017-10-27 10:53:04 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="OrderId" class="control-label"></label>
|
|
|
|
<input asp-for="OrderId" class="form-control" />
|
|
|
|
<span asp-validation-for="OrderId" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="ItemDesc" class="control-label"></label>
|
|
|
|
<input asp-for="ItemDesc" class="form-control" />
|
|
|
|
<span asp-validation-for="ItemDesc" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="PosData" class="control-label"></label>
|
|
|
|
<input asp-for="PosData" class="form-control" />
|
|
|
|
<span asp-validation-for="PosData" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="BuyerEmail" class="control-label"></label>
|
|
|
|
<input asp-for="BuyerEmail" class="form-control" />
|
|
|
|
<span asp-validation-for="BuyerEmail" class="text-danger"></span>
|
2018-10-12 03:09:13 +02:00
|
|
|
</div>
|
2017-10-27 10:53:04 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="NotificationUrl" class="control-label"></label>
|
|
|
|
<input asp-for="NotificationUrl" class="form-control" />
|
|
|
|
<span asp-validation-for="NotificationUrl" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="StoreId" class="control-label"></label>
|
|
|
|
<select asp-for="StoreId" asp-items="Model.Stores" class="form-control"></select>
|
|
|
|
<span asp-validation-for="StoreId" class="text-danger"></span>
|
|
|
|
</div>
|
2019-05-02 14:29:51 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="SupportedTransactionCurrencies" class="control-label"></label>
|
|
|
|
<select asp-for="SupportedTransactionCurrencies" asp-items="Model.AvailablePaymentMethods" class="form-control" multiple="multiple"></select>
|
|
|
|
<span asp-validation-for="SupportedTransactionCurrencies" class="text-danger"></span>
|
|
|
|
</div>
|
2017-10-27 10:53:04 +02:00
|
|
|
<div class="form-group">
|
2019-05-12 10:13:26 +02:00
|
|
|
<input type="submit" value="Create" class="btn btn-primary" id="Create" />
|
2021-04-08 15:32:42 +02:00
|
|
|
<a asp-action="ListInvoices" class="text-muted ml-3">Back to list</a>
|
2017-10-27 10:53:04 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|