diff --git a/courses/templates/subject/form_view_teacher.html b/courses/templates/subject/form_view_teacher.html index 613ee93..5f17e40 100644 --- a/courses/templates/subject/form_view_teacher.html +++ b/courses/templates/subject/form_view_teacher.html @@ -123,13 +123,6 @@ {% list_topic_foruns request topic %} -
- - {# exercícios do tópico no modo de edição #} - -
diff --git a/exercise/templates/exercise/exercise_edit.html b/exercise/templates/exercise/exercise_edit.html index 938a57d..1b6221d 100644 --- a/exercise/templates/exercise/exercise_edit.html +++ b/exercise/templates/exercise/exercise_edit.html @@ -1,7 +1,7 @@ {% load static i18n list_topic_foruns permission_tags %}
{% for exercise in exercises %} -
  • +
  • {{exercise.name_exercise}}
  • {% endfor %}
    diff --git a/exercise/templates/exercise/update_exercise.html b/exercise/templates/exercise/update_exercise.html new file mode 100644 index 0000000..ede3f67 --- /dev/null +++ b/exercise/templates/exercise/update_exercise.html @@ -0,0 +1,120 @@ +{% load static widget_tweaks i18n %} + + + + +
    + +
    + +{% block script_file %} + + {# // #} + +{% endblock script_file %} + \ No newline at end of file diff --git a/exercise/templatetags/list_topic_exercises.py b/exercise/templatetags/list_topic_exercises.py index 51d853f..19d6a46 100644 --- a/exercise/templatetags/list_topic_exercises.py +++ b/exercise/templatetags/list_topic_exercises.py @@ -19,7 +19,7 @@ def list_topic_exercise_edit(request, topic): context = { 'request': request, } - context['exercises'] = Exercise.objects.filter(topic = topic) + context['exercises'] = Exercise.objects.filter(topic=topic) context['topic'] = topic return context -- libgit2 0.21.2