Compare commits

...

1 Commits

Author SHA1 Message Date
Richard Schreiber
f8a562ed7c [A11y] fix waitinglist-link not being recognizable as a link 2025-05-19 11:50:19 +02:00
3 changed files with 10 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
{% load i18n %} {% load i18n %}
{% load icon %}
{% load eventurl %} {% load eventurl %}
{% if item.current_unavailability_reason == 'require_voucher' %} {% if item.current_unavailability_reason == 'require_voucher' %}
@@ -20,14 +21,15 @@
{% elif avail <= 10 %} {% elif avail <= 10 %}
<div class="col-md-2 col-sm-3 col-xs-6 availability-box gone"> <div class="col-md-2 col-sm-3 col-xs-6 availability-box gone">
{% if price or original_price %} {% if price or original_price %}
<strong>{% trans "SOLD OUT" %}</strong> <strong>{% icon "ban" %} {% trans "SOLD OUT" %}</strong>
{% else %} {% else %}
<strong>{% trans "FULLY BOOKED" %}</strong> <strong>{% icon "ban" %} {% trans "FULLY BOOKED" %}</strong>
{% endif %} {% endif %}
</span>
{% if allow_waitinglist and item.allow_waitinglist %} {% if allow_waitinglist and item.allow_waitinglist %}
<br/> <br/>
<a href="{% eventurl event "presale:event.waitinglist" cart_namespace=cart_namespace|default_if_none:"" %}?item={{ item.pk }}{% if var %}&var={{ var.pk }}{% endif %}{% if subevent %}&subevent={{ subevent.pk }}{% endif %}"> <a href="{% eventurl event "presale:event.waitinglist" cart_namespace=cart_namespace|default_if_none:"" %}?item={{ item.pk }}{% if var %}&var={{ var.pk }}{% endif %}{% if subevent %}&subevent={{ subevent.pk }}{% endif %}" class="btn btn-default btn-xs">
<span class="fa fa-plus-circle" aria-hidden="true"></span> {% icon "plus-circle" %}
{% trans "Waiting list" %} {% trans "Waiting list" %}
</a> </a>
{% endif %} {% endif %}

View File

@@ -1,4 +1,5 @@
{% load i18n %} {% load i18n %}
{% load icon %}
{% load l10n %} {% load l10n %}
{% load eventurl %} {% load eventurl %}
{% load money %} {% load money %}
@@ -82,9 +83,9 @@
{% if not event.settings.show_variations_expanded %} {% if not event.settings.show_variations_expanded %}
{% if item.best_variation_availability <= 10 %} {% if item.best_variation_availability <= 10 %}
{% if not item.min_price %} {% if not item.min_price %}
<strong class="gone">{% trans "FULLY BOOKED" %}</strong> <strong class="gone">{% icon "ban" %} {% trans "FULLY BOOKED" %}</strong>
{% else %} {% else %}
<strong class="gone">{% trans "SOLD OUT" %}</strong> <strong class="gone">{% icon "ban" %} {% trans "SOLD OUT" %}</strong>
{% endif %} {% endif %}
{% if allow_waitinglist and item.allow_waitinglist %} {% if allow_waitinglist and item.allow_waitinglist %}
<br/> <br/>

View File

@@ -23,7 +23,7 @@
text-align: center; text-align: center;
&.gone, .gone { &.gone, .gone {
color: $alert-danger-text; color: $brand-danger;
} }
&.unavailable, .unavailable { &.unavailable, .unavailable {
color: $alert-warning-text; color: $alert-warning-text;