Improve handling of protected subevents during deletion

This commit is contained in:
Raphael Michel
2022-06-03 14:04:15 +02:00
parent 772a4ce494
commit d98cb6402c
2 changed files with 13 additions and 4 deletions

View File

@@ -16,6 +16,12 @@
</li>
{% endfor %}
</ul>
<div class="alert-info alert">
{% blocktrans trimmed %}
It is possible that some of the above dates can't be deleted if a plugin has data attached to them.
In that case, they will be disabled instead.
{% endblocktrans %}
</div>
{% endif %}
{% if forbidden %}
<p>{% blocktrans trimmed %}The following dates can't be deleted as they already have orders, but
@@ -30,7 +36,8 @@
</ul>
{% endif %}
<div class="form-group submit-group">
<a href="{% url "control:event.subevents" organizer=request.event.organizer.slug event=request.event.slug %}" class="btn btn-default btn-cancel">
<a href="{% url "control:event.subevents" organizer=request.event.organizer.slug event=request.event.slug %}"
class="btn btn-default btn-cancel">
{% trans "Cancel" %}
</a>
<button type="submit" class="btn btn-danger btn-save" value="delete_confirm" name="action">