Commit 1c4c61cb authored by Robert's avatar Robert

Remove obsolete create and update templates

parent 00133021
Pipeline #1953 passed with stage
in 2 minutes and 29 seconds
......@@ -2,6 +2,8 @@
{% block title %}Beitrag erstellen - {{ block.super }}{% endblock %}
{% block menu %}{% menu view.entity %}{% endblock %}
{% block breadcrumb %}
{% if view.entity.is_group %}
{% breadcrumb view.entity 'Beitrag erstellen' %}
......
......@@ -2,6 +2,8 @@
{% block title %}Beitrag bearbeiten - {{ block.super }}{% endblock %}
{% block menu %}{% menu view.entity %}{% endblock %}
{% block breadcrumb %}
{% breadcrumb association.entity association 'Beitrag bearbeiten' %}
{% endblock %}
......
......@@ -166,8 +166,6 @@ class Update(PermissionMixin, generic.UpdateView):
name = 'galleries/update.html'
elif self.object.container.is_file:
name = 'files/update.html'
elif self.object.container.is_event:
name = 'events/update.html'
else:
name = 'articles/update.html'
name = 'content/update.html'
return [name]
{% extends 'content/create.html' %}
{% block menu %}{% menu view.entity %}{% endblock %}
{% extends 'content/update.html' %}
{% block menu %}{% menu view.entity %}{% endblock %}
......@@ -41,7 +41,7 @@ class List(grouprise.core.views.PermissionMixin, django.views.generic.ListView):
class Create(grouprise.features.content.views.Create):
form_class = forms.EventCreateForm
template_name = 'events/create.html'
template_name = 'content/create.html'
def get_form_kwargs(self):
kwargs = super().get_form_kwargs()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment