FIX: some small errors about registrations/participants/payments/permissions.
This commit is contained in:
@@ -386,7 +386,7 @@
|
||||
<input type="hidden" name="form_prefix" value="{{ form.prefix }}">
|
||||
<input type="hidden" name="{{ form.prefix }}-id" value="{{ participant.id }}">
|
||||
{% include './includes/participant_form.html' %}
|
||||
{% if not has_permission_update_participants %}
|
||||
{% if has_permission_update_participants %}
|
||||
<button type="submit" name="action" value="update_participant" class="btn btn-success">
|
||||
{% bootstrap_icon 'hdd' %} {% trans 'Speichern' %}
|
||||
</button>
|
||||
@@ -401,7 +401,7 @@
|
||||
{% else %}
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-body">
|
||||
<span class="text-info">{% trans 'Du hast noch keine Teilnehmer hinzugefügt.' %}</span>
|
||||
<span class="text-info">{% trans 'Es wurden noch keine Teilnehmer hinzugefügt.' %}</span>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
@@ -509,6 +509,7 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
{% bootstrap_field form.internal_note %}
|
||||
{% bootstrap_field form.registration_closed %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
@@ -476,7 +476,7 @@ class EventUpdateView(EventPermissionMixin, generic.UpdateView):
|
||||
|
||||
def get_form(self, form_class=None):
|
||||
form = super(EventUpdateView, self).get_form(form_class)
|
||||
if not self.has_permission('accept', self.object):
|
||||
if not (self.has_permission('accept', self.object) or self.has_permission('publish', self.object)):
|
||||
form.fields['registration_howto'].disabled = True
|
||||
form.fields['planned_publication_date'].disabled = True
|
||||
form.fields['planned_publication_date'].widget = forms.generic.forms.HiddenInput()
|
||||
|
||||
Reference in New Issue
Block a user