show the payment status in the command view

This commit is contained in:
Paul Schneider 2017-07-07 01:22:45 +02:00
commit ca1cff1706
6 changed files with 16 additions and 7 deletions

View file

@ -13,7 +13,12 @@
</text>
}
<text> :
</text><a asp-controller="Manage" asp-action="PaymentInfo" asp-route-id="@Model.Regularisation.CreationToken">@Model.Regularisation.CreationToken</a>
</text>
<label>
<input type="checkbox" checked="@Model.Regularisation.IsOk()" disabled/>
<a asp-controller="Manage" asp-action="PaymentInfo" asp-route-id="@Model.Regularisation.CreationToken">@Model.Regularisation.CreationToken</a>
</label>
} else {
<div id="paypalzone"></div>

View file

@ -3,7 +3,7 @@
var paid = false;
if (Model.PaymentId!=null) {
if (Model.Regularisation!=null) {
if (Model.Regularisation.IsSuccess()) {
if (Model.Regularisation.IsOk()) {
paid=true;
}
}