[guadec-web-regcfp/develop] Hide the button to pay more if registration is finished



commit fcd8c0452a23c78c24e5d03b00b56f78287e8d6c
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date:   Fri Aug 7 06:55:09 2015 +0200

    Hide the button to pay more if registration is finished

 views/index/index.hbs |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/views/index/index.hbs b/views/index/index.hbs
index 9378e01..92ee11f 100644
--- a/views/index/index.hbs
+++ b/views/index/index.hbs
@@ -51,7 +51,9 @@ Welcome, {{name}}<br />
 Not enough paid for receipt (Paid {{registration.paid}}, outstanding for onsite payment: 
{{registration.outstanding_onsite}}, PayPal outstanding: {{registration.outstanding_paypal}}. Any of these 
needed: {{registration.needed_for_receipt}})<br/>
 {{/if}}
 {{#has_permission "registration/pay_extra"}}
+{{#unless registration.badge_printed}}
 <div class="button"><a href="/registration/pay">Pay more</a></div>
+{{/unless}}
 {{/has_permission}}
 {{else}}
 <div class="button"><a href="/registration/register">Register</a></div>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]