Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanp/7e418ff6dbb5cef3b43195bbade078dd to your computer and use it in GitHub Desktop.
Save nathanp/7e418ff6dbb5cef3b43195bbade078dd to your computer and use it in GitHub Desktop.
Show a user their registrations with pending payments
<div class="panel panel-default">
<div class="panel-heading">Registrations</div>
<ul class="list-group list-group-panel">
{% registration where:'PersonAliasId == {{ CurrentPerson.PrimaryAliasId }}' %}
{% for reg in registrationItems %}
{% if reg.BalanceDue > 0 %}
<li class="list-group-item">
{{ reg.RegistrationInstance.Name }} <br />
Balance due - {{ reg.BalanceDue | FormatAsCurrency }} <br />
<a href="{{ 'Global' | Attribute:'PublicApplicationRoot' }}Registration?RegistrationId={{ reg.Id }}">Complete Payment</a>
</li>
{% endif %}
{% endfor %}
{% endregistration %}
</ul>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment