This commit is contained in:
@@ -491,17 +491,17 @@ Wichtig: das System verschickt keine Bestätigung an dich oder den neuen Teilneh
|
||||
<button disabled="disabled"
|
||||
class="btn btn-link no-padding" title="Bei dieser Anmeldung hast du bereits
|
||||
am {{ registration.status.updated_at|date:'d. F Y, G:i' }}
|
||||
auf {% if registration.status.accepted %}Plus{% else %}Minus{% endif %} geklickt.
|
||||
auf {% if registration.status.accepted == True %}Plus{% elif registration.status.accepted == False %}Minus{% else %}Plus oder Minus{% endif %} geklickt.
|
||||
">
|
||||
<span class="{% if registration.status.accepted %}text-success{% else %}text-muted{% endif %}">{% bootstrap_icon 'plus-sign' %}</span>
|
||||
<span class="{% if registration.status.accepted == True %}text-success{% else %}text-muted{% endif %}">{% bootstrap_icon 'plus-sign' %}</span>
|
||||
</button>
|
||||
|
||||
<button disabled="disabled"
|
||||
class="btn btn-link no-padding" title="Bei dieser Anmeldung hast du bereits
|
||||
am {{ registration.status.updated_at|date:'d. F Y, G:i' }}
|
||||
auf {% if registration.status.accepted %}Plus{% else %}Minus{% endif %} geklickt.
|
||||
auf {% if registration.status.accepted == True %}Plus{% elif registration.status.accepted == False %}Minus{% else %}Plus oder Minus{% endif %} geklickt.
|
||||
">
|
||||
<span class="{% if not registration.status.accepted %}text-danger{% else %}text-muted{% endif %}">{% bootstrap_icon 'minus-sign' %}</span>
|
||||
<span class="{% if registration.status.accepted == False %}text-danger{% else %}text-muted{% endif %}">{% bootstrap_icon 'minus-sign' %}</span>
|
||||
</button>
|
||||
|
||||
<span class="text-muted">
|
||||
|
||||
@@ -293,16 +293,14 @@ class EventRegistrationsView(EventPermissionMixin, generic.DetailView):
|
||||
'purge_at': registration.purge_at,
|
||||
}
|
||||
participant = models.Participant.objects.create(**data)
|
||||
registration.accepted()
|
||||
registration.status.set_accepted()
|
||||
messages.success(request, _(u'Teilnehmer hinzugefügt: {}'.format(participant.get_full_name())))
|
||||
|
||||
def _reject_registration(self, registration):
|
||||
registration.rejected()
|
||||
registration.status.set_rejected()
|
||||
|
||||
def _reset_registration(self, registration):
|
||||
registration.status.accepted = None
|
||||
registration.status.answered = False
|
||||
registration.status.save()
|
||||
registration.status.reset()
|
||||
|
||||
def _swap_participants_position(self, participant1, participant2):
|
||||
event = participant1.event
|
||||
|
||||
Reference in New Issue
Block a user