mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-18 16:14:25 +01:00
fix subs
This commit is contained in:
@@ -4,7 +4,9 @@
|
||||
@using Microsoft.AspNetCore.Routing
|
||||
@using BTCPayServer
|
||||
@using BTCPayServer.Abstractions.Models
|
||||
@using BTCPayServer.Components.TruncateCenter
|
||||
@using BTCPayServer.Forms
|
||||
@using BTCPayServer.Plugins.Subscriptions
|
||||
@using BTCPayServer.Services.Apps
|
||||
@using BTCPayServer.TagHelpers
|
||||
@model BTCPayServer.Plugins.Subscriptions.SubscriptionAppSettings
|
||||
@@ -27,7 +29,8 @@
|
||||
<input type="submit" value="Save" name="command" class="btn btn-primary"/>
|
||||
@if (archived)
|
||||
{
|
||||
}else if (this.ViewContext.ModelState.IsValid)
|
||||
}
|
||||
else if (this.ViewContext.ModelState.IsValid)
|
||||
{
|
||||
<a class="btn btn-secondary" target="_blank" href=" @Url.Action("View", "Subscription", new {appId})">
|
||||
Subscription page
|
||||
@@ -64,9 +67,18 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="DurationDays" class="form-label" data-required></label>
|
||||
<input type="number" inputmode="decimal" step="1" min="1" asp-for="DurationDays" class="form-control" required/>
|
||||
<span asp-validation-for="DurationDays" class="text-danger"></span>
|
||||
|
||||
<label asp-for="Duration" class="form-label" data-required>
|
||||
Duration
|
||||
</label>
|
||||
<div class="d-flex align-items-center">
|
||||
|
||||
<input type="number" inputmode="decimal" step="1" min="1" asp-for="Duration" placeholder="Duration" class="form-control" required/>
|
||||
<select class="form-select w-auto" asp-for="DurationType" asp-items="@Html.GetEnumSelectList<DurationType>()">
|
||||
</select>
|
||||
</div>
|
||||
<span asp-validation-for="DurationType" class="text-danger"></span>
|
||||
<span asp-validation-for="Duration" class="text-danger"></span>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
@@ -116,7 +128,7 @@
|
||||
asp-controller="Subscription"
|
||||
asp-route-appId="@appId"
|
||||
asp-route-id="@sub.Key">
|
||||
|
||||
|
||||
<vc:truncate-center text="@sub.Key" padding="7" classes="truncate-center-id"/>
|
||||
</a>
|
||||
|
||||
@@ -141,8 +153,8 @@
|
||||
<a asp-action="ViewPaymentRequest"
|
||||
asp-controller="UIPaymentRequest"
|
||||
asp-route-payReqId="@x.PaymentRequestId">
|
||||
|
||||
<vc:truncate-center text="@x.PaymentRequestId" padding="7" classes="truncate-center-id"/>
|
||||
|
||||
<vc:truncate-center text="@x.PaymentRequestId" padding="7" classes="truncate-center-id"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>@x.PeriodStart.ToBrowserDate()</td>
|
||||
|
||||
Reference in New Issue
Block a user