From dbe7daa20bbc51e8966dc20a625ab9f7024fd29f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=A4ttasch?= <benjamin.haettasch@fachschaft.informatik.tu-darmstadt.de> Date: Sun, 24 May 2020 20:10:38 +0200 Subject: [PATCH] Improve submission interface Hide protocol link for AK and wish submission form Fix js/css for wish submission --- AKSubmission/forms.py | 4 ++-- AKSubmission/templates/AKSubmission/submit_new_wish.html | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AKSubmission/forms.py b/AKSubmission/forms.py index e63c7e69..2861adc4 100644 --- a/AKSubmission/forms.py +++ b/AKSubmission/forms.py @@ -113,7 +113,7 @@ class AKForm(AvailabilitiesFormMixin, forms.ModelForm): class AKSubmissionForm(AKForm): class Meta(AKForm.Meta): - exclude = ['link'] + exclude = ['link', 'protocol_link'] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) @@ -139,7 +139,7 @@ class AKEditForm(AKForm): class AKWishForm(AKSubmissionForm): class Meta(AKForm.Meta): - exclude = ['owners', 'link'] + exclude = ['owners', 'link', 'protocol_link'] class AKOwnerForm(forms.ModelForm): diff --git a/AKSubmission/templates/AKSubmission/submit_new_wish.html b/AKSubmission/templates/AKSubmission/submit_new_wish.html index 04399607..15a917d8 100644 --- a/AKSubmission/templates/AKSubmission/submit_new_wish.html +++ b/AKSubmission/templates/AKSubmission/submit_new_wish.html @@ -7,6 +7,8 @@ {% block title %}{% trans "AKs" %}: {{ event.name }} - {% trans "New AK Wish" %}{% endblock %} {% block imports %} + <link rel="stylesheet" href="{% static 'common/vendor/chosen-js/chosen.css' %}"> + <link rel="stylesheet" href="{% static 'common/css/bootstrap-chosen.css' %}"> <link href='{% static 'AKSubmission/vendor/fullcalendar3/fullcalendar.min.css' %}' rel='stylesheet'/> <link href='{% static 'AKSubmission/css/availabilities.css' %}' rel='stylesheet'/> -- GitLab