Commit c0033da1 authored by Milan van Stiphout's avatar Milan van Stiphout
Browse files

Fixes lingering references to event.cost

This field was renamed to event.fine in !368, but not all fields were updated.
parent 52866b0c
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<dt>{% trans "price"|capfirst %}</dt> <dt>{% trans "price"|capfirst %}</dt>
<dd>{{ event.price }}</dd> <dd>{{ event.price }}</dd>
<dt>{% trans "cost"|capfirst %}</dt> <dt>{% trans "cost"|capfirst %}</dt>
<dd>{{ event.cost }}</dd> <dd>{{ event.fine }}</dd>
<dt>{% trans "registration required"|capfirst %}</dt> <dt>{% trans "registration required"|capfirst %}</dt>
<dd>{{ event.registration_required|yesno }}</dd> <dd>{{ event.registration_required|yesno }}</dd>
{% if not event.registration_required %} {% if not event.registration_required %}
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
{% elif registration is not None and registration.date_cancelled is None %} {% 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 #} {# 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 %} {% 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 %} {% 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> <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 %} {% endif %}
...@@ -138,8 +138,8 @@ ...@@ -138,8 +138,8 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if event.status == event.REGISTRATION_OPEN_NO_CANCEL or event.status == event.REGISTRATION_CLOSED %} {% if event.status == event.REGISTRATION_OPEN_NO_CANCEL or event.status == event.REGISTRATION_CLOSED %}
{% if registration.date_cancelled is None and event.cost > 0 %} {% if registration.date_cancelled is None and event.fine > 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 %} {% 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 %}
{% endif %} {% endif %}
</em> </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