From 13feda6f81b6090b697f99eb386009f69da38339 Mon Sep 17 00:00:00 2001 From: Matheus Lins Date: Mon, 14 Nov 2016 09:45:03 -0300 Subject: [PATCH] view exercise professor --- courses/templates/subject/form_view_teacher.html | 22 +++++++++++++++++++--- exercise/templates/exercise/create_exercise.html | 1 + 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/courses/templates/subject/form_view_teacher.html b/courses/templates/subject/form_view_teacher.html index 2adb39f..2cb437c 100644 --- a/courses/templates/subject/form_view_teacher.html +++ b/courses/templates/subject/form_view_teacher.html @@ -1,4 +1,4 @@ -{% load static i18n list_topic_foruns permission_tags widget_tweaks professor_access%} +{% load static i18n list_topic_foruns permission_tags widget_tweaks professor_access list_topic_exercises%}
@@ -56,7 +56,7 @@ {# materiais do topico#}
-
+

{% trans 'Material' %}

@@ -122,7 +122,23 @@ {% list_topic_foruns request topic %}
- +
+
+
+

{% trans 'Exercises' %}

+
+
+ {# exercício do tópico no modo de visualização #} +
    + {% list_topic_exercise request %} +
+
+
+ {# exercício do tópico no modo de edição #} +
    + {% list_topic_exercise_edit request exercise %} +
+
diff --git a/exercise/templates/exercise/create_exercise.html b/exercise/templates/exercise/create_exercise.html index 1721df7..733181d 100644 --- a/exercise/templates/exercise/create_exercise.html +++ b/exercise/templates/exercise/create_exercise.html @@ -75,6 +75,7 @@ $('#createExercisesModal').modal('show'); alertify.alert('Invalid exercise, insert a valid one!'); $('div.modal-backdrop.fade.in').remove(); + setTimeout(function () { location.reload(1); }, 1000); } }); event.preventDefault(); -- libgit2 0.21.2