From 4c0f45ef73b12d7457dabbc0b77c4e28b33d6f03 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 21 Mar 2017 15:50:50 +0530 Subject: Fix issue and allow tags to be saved while saving questions --- yaksh/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yaksh/views.py b/yaksh/views.py index 83749c1..de2aac6 100644 --- a/yaksh/views.py +++ b/yaksh/views.py @@ -181,6 +181,8 @@ def add_question(request, question_id=None): question = qform.save(commit=False) question.user = user question.save() + # many-to-many field save function used to save the tags + qform.save_m2m() for formset in formsets: if formset.is_valid(): formset.save() -- cgit From 4fc13eea1b9400f5c66d8c26cdcc58bcfe057dfb Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Tue, 21 Mar 2017 17:17:42 +0530 Subject: Minor UI modifications: - Remove text located near 'Add Course' and 'Add Demo' buttons, buttons are - Change text of prompt that triggers help text --- yaksh/templates/yaksh/moderator_dashboard.html | 32 ++++++++++++++------------ 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/yaksh/templates/yaksh/moderator_dashboard.html b/yaksh/templates/yaksh/moderator_dashboard.html index 64167f8..0468ed9 100644 --- a/yaksh/templates/yaksh/moderator_dashboard.html +++ b/yaksh/templates/yaksh/moderator_dashboard.html @@ -32,24 +32,26 @@
-
Click on the button given below to add a new course.
- -
Click on the button to Create a Demo course.
- - - Help + + Add New Course + + + Create Demo Course + + + What's This +
- -

+
{% if msg %} -

{{ msg }}

+

{{ msg }}

{% endif %}
{% if trial_paper %} -- cgit