Waitinglist: Improve waitinglist and logging

This commit is contained in:
Raphael Michel
2017-02-10 11:19:22 +01:00
parent c03ac624fc
commit 8310597944
6 changed files with 16 additions and 12 deletions

View File

@@ -17,8 +17,8 @@
<div class="form-group">
<div class="col-md-9 col-md-offset-3">
<div class="help-block">
{% blocktrans trimmed %}
If tickets become available again, we will inform the first persons on the waiting list. If we notify you, you'll have 48 hours time to buy a ticket until we assign it to the next person on the list.
{% blocktrans trimmed with hours=event.settings.waiting_list_hours %}
If tickets become available again, we will inform the first persons on the waiting list. If we notify you, you'll have {{ hours }} hours time to buy a ticket until we assign it to the next person on the list.
{% endblocktrans %}
</div>
<button type="submit" class="btn btn-primary">

View File

@@ -63,7 +63,7 @@ class WaitingView(FormView):
else self.item_and_variation[0].check_quotas(count_waitinglist=False)
)
if availability[0] == 100:
messages.error(self.request, _("You cannot add yourself to the waiting list as this product ist currently "
messages.error(self.request, _("You cannot add yourself to the waiting list as this product is currently "
"available."))
return redirect(eventreverse(self.request.event, 'presale:event.index'))