Commit 53a681ec authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch 'fix/368-change-cost-occurrences-to-fine' into 'master'

Fixes lingering references to event.cost

See merge request !376
parents 52866b0c c0033da1
......@@ -76,7 +76,7 @@
<dt>{% trans "price"|capfirst %}</dt>
<dd>{{ event.price }}</dd>
<dt>{% trans "cost"|capfirst %}</dt>
<dd>{{ event.cost }}</dd>
<dd>{{ event.fine }}</dd>
<dt>{% trans "registration required"|capfirst %}</dt>
<dd>{{ event.registration_required|yesno }}</dd>
{% if not event.registration_required %}
......
......@@ -108,7 +108,7 @@
{% elif registration is not None and registration.date_cancelled is None %}
{# Special message to accept costs when cancelling after the deadline, unless member is on the waiting list #}
{% if registration.queue_position == 0 and event.after_cancel_deadline %}
<a class="btn btn-style1" href="{% url 'events:registration' event.id 'cancel' %}" onclick="return confirm('{% blocktrans with costs=event.cost %}The deadline has passed, are you sure you want to cancel your registration and pay the full costs of €{{ costs }}? You will not be able to undo this!{% endblocktrans %}');">{% trans "Cancel registration" %}</a>
<a class="btn btn-style1" href="{% url 'events:registration' event.id 'cancel' %}" onclick="return confirm('{% blocktrans with costs=event.fine %}The deadline has passed, are you sure you want to cancel your registration and pay the full costs of €{{ costs }}? You will not be able to undo this!{% endblocktrans %}');">{% trans "Cancel registration" %}</a>
{% else %}
<a class="btn btn-style1" href="{% url 'events:registration' event.id 'cancel' %}" onclick="return confirm('{% trans "Are you sure you want to cancel your registration?" %}');">{% trans "Cancel registration" %}</a>
{% endif %}
......@@ -138,8 +138,8 @@
{% endif %}
{% endif %}
{% if event.status == event.REGISTRATION_OPEN_NO_CANCEL or event.status == event.REGISTRATION_CLOSED %}
{% if registration.date_cancelled is None and event.cost > 0 %}
{% blocktrans with costs=event.cost %}Cancellation isn't possible anymore without having to pay the full costs of €{{ costs }}. Also note that you will be unable to re-register.{% endblocktrans %}
{% if registration.date_cancelled is None and event.fine > 0 %}
{% blocktrans with costs=event.fine %}Cancellation isn't possible anymore without having to pay the full costs of €{{ costs }}. Also note that you will be unable to re-register.{% endblocktrans %}
{% endif %}
{% endif %}
</em>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment