Skip to content
Snippets Groups Projects
Commit 114a44dd authored by Nadja Geisler's avatar Nadja Geisler :sunny:
Browse files

add AK types to preference poll

parent 06cc5c4a
No related branches found
No related tags found
1 merge request!280improve preference polling
Pipeline #290582 passed
...@@ -74,6 +74,11 @@ ...@@ -74,6 +74,11 @@
{% if innerform.ak_obj.owners_list %} {% if innerform.ak_obj.owners_list %}
<p>{% trans "Responsible" %}: {{ innerform.ak_obj.owners_list }}</p> <p>{% trans "Responsible" %}: {{ innerform.ak_obj.owners_list }}</p>
{% endif %} {% endif %}
{% if show_types %}
{% for aktype in innerform.ak_obj.types.all %}
<p><span class="badge bg-light">{{ aktype.name }}</span></p>
{% endfor %}
{% endif %}
{% if innerform.ak_obj.reso %} {% if innerform.ak_obj.reso %}
<!-- TODO: reso as an icon --> <!-- TODO: reso as an icon -->
<p><i>{% trans "Intends to submit a resolution" %}.</i></p> <p><i>{% trans "Intends to submit a resolution" %}.</i></p>
......
...@@ -107,6 +107,7 @@ class PreferencePollCreateView(EventSlugMixin, SuccessMessageMixin, FormView): ...@@ -107,6 +107,7 @@ class PreferencePollCreateView(EventSlugMixin, SuccessMessageMixin, FormView):
"availabilities": json.dumps(availabilities_serialization.data), "availabilities": json.dumps(availabilities_serialization.data),
} }
) )
context['show_types'] = self.event.aktype_set.count() > 0
return context return context
def post(self, request, *args, **kwargs): def post(self, request, *args, **kwargs):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment