From 09fffd35ab43658bafbad9253ff535416dad22be Mon Sep 17 00:00:00 2001
From: juliotoscano
Date: Mon, 31 Oct 2016 23:45:52 -0300
Subject: [PATCH] modifiyng js editation #234
---
core/static/css/base/amadeus.css | 1 -
courses/static/js/topic_editation_presentation.js | 18 +++++++++++-------
courses/templates/subject/form_view_student.html | 24 +++---------------------
courses/templates/subject/form_view_teacher.html | 127 +++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------
4 files changed, 61 insertions(+), 109 deletions(-)
diff --git a/core/static/css/base/amadeus.css b/core/static/css/base/amadeus.css
index a0107d1..7d0ab7c 100644
--- a/core/static/css/base/amadeus.css
+++ b/core/static/css/base/amadeus.css
@@ -408,7 +408,6 @@ ul, li {
.dropdown-menu .pull-right {
right: 0;
}
- .editation{display: none}
.moreAccordion{ padding-left: 0px; padding-right: 0px;}
.moreAccordion div button{ padding-left: 0px; padding-right: 0px;}
.cards-content{ padding-left: 0px; padding-right: 0px; }
diff --git a/courses/static/js/topic_editation_presentation.js b/courses/static/js/topic_editation_presentation.js
index 7a6cdd4..171aa34 100644
--- a/courses/static/js/topic_editation_presentation.js
+++ b/courses/static/js/topic_editation_presentation.js
@@ -1,9 +1,13 @@
+$(document).ready(function(){
+ $(".editation").css('display','none');
+});
function show_editation(id_topic){
- $("#presentation_"+ id_topic).css('display','none');
- $("#editation_"+ id_topic).css('display','block');
-}
+ $(".presentation_"+ id_topic).css('display','none');
+ $(".editation_"+ id_topic).css('display','block');
+};
+ function show_presentation(id_topic){
+ $(".editation_"+ id_topic).css('display','none');
+ $(".presentation_"+ id_topic).css('display','block');
+};
+
-function show_presentation(id_topic){
- $("#editation_"+ id_topic).css('display','none');
- $("#presentation_"+ id_topic).css('display','block');
-}
\ No newline at end of file
diff --git a/courses/templates/subject/form_view_student.html b/courses/templates/subject/form_view_student.html
index ea945c1..0451308 100644
--- a/courses/templates/subject/form_view_student.html
+++ b/courses/templates/subject/form_view_student.html
@@ -32,32 +32,14 @@
-
-
-
-
{% trans 'Material' %}
-
-
- {% list_topic_file request topic %}
- {% list_topic_link request topic%}
-
-
-
-
-
{% trans 'Activities' %}
-
-
- {% list_topic_poll request topic %}
- {% list_topic_foruns request topic %}
-
-
-
+
+
{% professor_subject topic.subject user as professor_links %}
- {% if professor_links %}
+ {% if professor_links%}
{% include "links/create_link.html" %}
{% include "links/delete_link.html" %}
{% endif %}
diff --git a/courses/templates/subject/form_view_teacher.html b/courses/templates/subject/form_view_teacher.html
index 89b9d86..f6c831e 100644
--- a/courses/templates/subject/form_view_teacher.html
+++ b/courses/templates/subject/form_view_teacher.html
@@ -41,106 +41,73 @@
-
+
{{topic.description|linebreaks}}
-
-
-
-
{% trans 'Material' %}
-
-
+
+
+
+
+
+
+
+
+
+
+
+
{% trans 'Material' %}
+
+
+
{% list_topic_file request topic %}
{% list_topic_link request topic%}
-
-
-
{% trans 'Activities' %}
-
-
-
- {% list_topic_poll request topic %}
- {% list_topic_foruns request topic %}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{% trans 'Material' %}
-
-
+
{% list_topic_file_edit request topic %}
{% list_topic_link_edit request topic%}
-
-
-
{% trans 'Activities' %}
-
-
+
+
+
{% trans 'Activities' %}
+
+
+
-
- {% list_topic_poll request topic %}
- {% list_topic_foruns request topic %}
-
+
+ {% list_topic_poll request topic %}
+ {% list_topic_foruns request topic %}
+
-
+
-
+
--
libgit2 0.21.2