diff --git a/core/static/css/base/amadeus.css b/core/static/css/base/amadeus.css index 72d0bf9..b96f963 100644 --- a/core/static/css/base/amadeus.css +++ b/core/static/css/base/amadeus.css @@ -320,3 +320,5 @@ body .container .jumbotron-inverse, body .container .well-inverse, body .contain .notification-count { background-color: #FF0000; } + +.datepicker{z-index:9999 !important} \ No newline at end of file diff --git a/core/templates/base.html b/core/templates/base.html index 01ec35a..14a3211 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -21,7 +21,7 @@ - + @@ -38,7 +38,7 @@ - + {% block style %} {% endblock %} diff --git a/courses/templates/subject/form_view_student.html b/courses/templates/subject/form_view_student.html index 3de7294..d1805f1 100644 --- a/courses/templates/subject/form_view_student.html +++ b/courses/templates/subject/form_view_student.html @@ -1,5 +1,9 @@ {% load i18n %} +{% block javascript %} + +{% endblock %} +
@@ -13,4 +17,24 @@

{{topic.description|linebreaks}}

+ {% list_topic_foruns request topic %} +
+ + \ No newline at end of file diff --git a/courses/templates/subject/form_view_teacher.html b/courses/templates/subject/form_view_teacher.html index f36f650..5cb754b 100644 --- a/courses/templates/subject/form_view_teacher.html +++ b/courses/templates/subject/form_view_teacher.html @@ -19,7 +19,10 @@

{{ topic.description|linebreaks }}

- {% list_topic_foruns request topic %} + +
+ {% list_topic_foruns request topic %} +
@@ -27,7 +30,7 @@ + + + \ No newline at end of file diff --git a/forum/forms.py b/forum/forms.py index 2304cce..ec1d2ff 100644 --- a/forum/forms.py +++ b/forum/forms.py @@ -6,17 +6,22 @@ class ForumForm(forms.ModelForm): class Meta: model = Forum - fields = ('name', 'description') + fields = ('name', 'limit_date', 'description', 'topic', ) labels = { 'name': _('Title'), - 'description': _('Description') + 'description': _('Description'), + 'limit_date': _('Limit Date'), } help_texts = { 'name': _('Forum title'), - 'description': _('What is this forum about?') + 'description': _('What is this forum about?'), + 'limit_date': _('Limit date for students post on this forum'), } widgets = { - 'description': forms.Textarea(attrs={'cols': 80, 'rows': 5}), + 'name': forms.TextInput(attrs={'class': 'form-control'}), + 'description': forms.Textarea(attrs={'cols': 80, 'rows': 5, 'class': 'form-control'}), + 'topic': forms.HiddenInput(), + 'limit_date': forms.DateInput(attrs={'class': 'date-picker form-control'}), } class PostForm(forms.ModelForm): diff --git a/forum/templates/forum/forum_form.html b/forum/templates/forum/forum_form.html index 06a4b8d..c3a13f3 100644 --- a/forum/templates/forum/forum_form.html +++ b/forum/templates/forum/forum_form.html @@ -1,30 +1,32 @@ {% load static i18n %} {% load widget_tweaks %} -
+ {% csrf_token %} {% for field in form %}
- - {% render_field field class='form-control' %} - {{ field.help_text }} - {% if field.errors %} -
-
- + {% endif %} {% endif %}
{% endfor %} - - \ No newline at end of file -- libgit2 0.21.2