From de72a88b99aceb4ba96d11a0316e6826756158cd Mon Sep 17 00:00:00 2001 From: ailsoncgt Date: Thu, 13 Oct 2016 13:38:41 -0300 Subject: [PATCH] Adding condition to show modal for add file #133 --- courses/templates/subject/form_view_teacher.html | 58 +++------------------------------------------------------- 1 file changed, 3 insertions(+), 55 deletions(-) diff --git a/courses/templates/subject/form_view_teacher.html b/courses/templates/subject/form_view_teacher.html index f161fdf..773669f 100644 --- a/courses/templates/subject/form_view_teacher.html +++ b/courses/templates/subject/form_view_teacher.html @@ -314,62 +314,10 @@ - - - - +{% if user|has_role:'system_admin' or topic.owner == user%} + {% include "files/create_file.html" %} +{% endif %}