From: yomguy Date: Wed, 2 Jan 2013 22:46:43 +0000 (+0100) Subject: reorganize lists X-Git-Tag: 0.9-probarreau~180 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=6cdd533a43499a4e672ca7660bb2de01936de6da;p=teleforma.git reorganize lists --- diff --git a/teleforma/static/teleforma/css/teleforma.css b/teleforma/static/teleforma/css/teleforma.css index c694c0d1..07b4125d 100644 --- a/teleforma/static/teleforma/css/teleforma.css +++ b/teleforma/static/teleforma/css/teleforma.css @@ -1836,11 +1836,14 @@ form .exceed{ overflow-y: auto; } - #index p, ul { margin: 0.5em; } +.course_subtitle #index h3 { + color: black; +} + #_Form p { font-weight: bold; } diff --git a/teleforma/templates/teleforma/answer_form.html b/teleforma/templates/teleforma/answer_form.html index 89f955d1..b2d1b6c2 100644 --- a/teleforma/templates/teleforma/answer_form.html +++ b/teleforma/templates/teleforma/answer_form.html @@ -92,6 +92,7 @@ $(document).ready(function(){ {% block index %}

status {% trans "Steps" %}

+
{% with seminar.docs_1 as docs %} @@ -143,7 +144,6 @@ $(document).ready(function(){ {% endwith %} {% endif %} {% endwith %} - {% if seminar_progress == 100 %} {% with seminar.docs_correct as docs %} @@ -159,7 +159,6 @@ $(document).ready(function(){ {% endwith %} {% endif %} -
{% endblock index %} diff --git a/teleforma/templates/teleforma/inc/document_simple_list.html b/teleforma/templates/teleforma/inc/document_simple_list.html index a699b05a..76ef7e93 100644 --- a/teleforma/templates/teleforma/inc/document_simple_list.html +++ b/teleforma/templates/teleforma/inc/document_simple_list.html @@ -1,12 +1,6 @@ {% load teleforma_tags %} {% load i18n %} -
- -
-

{{ title }}

-
- {% for doc in docs.all %} @@ -18,5 +12,3 @@
-
- diff --git a/teleforma/templates/teleforma/inc/evaluation_form.html b/teleforma/templates/teleforma/inc/evaluation_form.html index 76f54bcc..f147c668 100644 --- a/teleforma/templates/teleforma/inc/evaluation_form.html +++ b/teleforma/templates/teleforma/inc/evaluation_form.html @@ -3,11 +3,6 @@ {% load i18n %} -
-
-

{{ title }}

-
- @@ -15,5 +10,3 @@
- -
\ No newline at end of file diff --git a/teleforma/templates/teleforma/inc/media_package_list.html b/teleforma/templates/teleforma/inc/media_package_list.html index dfbdd2a8..cd6db170 100644 --- a/teleforma/templates/teleforma/inc/media_package_list.html +++ b/teleforma/templates/teleforma/inc/media_package_list.html @@ -2,10 +2,6 @@ {% load thumbnail %} {% load i18n %} -
-
-

{{ title }}

-
{% for media_package in media_packages.all %} @@ -65,4 +61,3 @@ {% endfor %}
-
diff --git a/teleforma/templates/teleforma/inc/question_list.html b/teleforma/templates/teleforma/inc/question_list.html index db06a8cd..1a4c1600 100644 --- a/teleforma/templates/teleforma/inc/question_list.html +++ b/teleforma/templates/teleforma/inc/question_list.html @@ -1,12 +1,6 @@ {% load teleforma_tags %} {% load i18n %} -
- -
-

{{ title }}

-
- {% for question in questions.all %} @@ -35,6 +29,3 @@ {% endfor %}
- -
- diff --git a/teleforma/templates/teleforma/inc/testimonial_list.html b/teleforma/templates/teleforma/inc/testimonial_list.html index 759da97c..5d71ab03 100644 --- a/teleforma/templates/teleforma/inc/testimonial_list.html +++ b/teleforma/templates/teleforma/inc/testimonial_list.html @@ -1,15 +1,8 @@ {% load teleforma_tags %} {% load i18n %} -
- -
-

{{ title }}

-
- - - + @@ -18,5 +11,3 @@
{% trans "Testimonial" %} : {{ seminar.title }}{% if seminar.rank %} n°{{seminar.rank}}{% endif %}
-
- diff --git a/teleforma/templates/teleforma/seminar_detail.html b/teleforma/templates/teleforma/seminar_detail.html index fc569827..7a5ba137 100644 --- a/teleforma/templates/teleforma/seminar_detail.html +++ b/teleforma/templates/teleforma/seminar_detail.html @@ -72,85 +72,74 @@ $(function () { {% endif %} + {% with seminar.docs_1 as docs %} +
+
+

{% trans "Step" %} 1 : {% if docs.all.count > 1 %}{% trans "read these documents" %}{% else %}{% trans "read this document" %}{% endif %}

+
+ {% include "teleforma/inc/document_simple_list.html" %} +
+ {% endwith %} - {% with seminar.docs_1 as docs %} - {% if docs.all.count > 1 %} - {% with _("Step 1 : read these documents") as title %} - {% include "teleforma/inc/document_simple_list.html" %} - {% endwith %} - {% else %} - {% with _("Step 1 : read this document") as title %} - {% include "teleforma/inc/document_simple_list.html" %} - {% endwith %} - {% endif %} - {% endwith %} - - {% with seminar.media as media_packages %} - {% if media_packages.all.count > 1 %} - {% with _("Step 2 : view these conferences") as title %} - {% include "teleforma/inc/media_package_list.html" %} - {% endwith %} - {% else %} - {% with _("Step 2 : view this conference") as title %} - {% include "teleforma/inc/media_package_list.html" %} - {% endwith %} - {% endif %} - {% endwith %} - - {% with seminar.docs_2 as docs %} - {% if docs.all.count > 1 %} - {% with _("Step 3 : read these documents") as title %} - {% include "teleforma/inc/document_simple_list.html" %} - {% endwith %} - {% else %} - {% with _("Step 3 : read this document") as title %} - {% include "teleforma/inc/document_simple_list.html" %} - {% endwith %} - {% endif %} - {% endwith %} - - {% with seminar.question as questions %} - {% if questions.all.count > 1 %} - {% with _("Step 4 : answer to these questions") as title %} - {% include "teleforma/inc/question_list.html" %} - {% endwith %} - {% else %} - - - {% with _("Step 4 : answer to this question") as title %} - {% include "teleforma/inc/question_list.html" %} - {% endwith %} - {% endif %} - {% endwith %} + {% with seminar.media as media_packages %} +
+
+

{% trans "Step" %} 2 : {% if media_packages.all.count > 1 %}{% trans "view these conferences" %}{% else %}{% trans "view this conference" %}{% endif %}

+
+ {% include "teleforma/inc/media_package_list.html" %} +
+ {% endwith %} + - - {% if seminar_progress == 100 %} - {% with seminar.docs_correct as docs %} - {% if docs.all.count > 1 %} - {% with _("Step 5 : read these corrected documents") as title %} - {% include "teleforma/inc/document_simple_list.html" %} - {% endwith %} - {% else %} - {% with _("Step 5 : read this corrected document") as title %} - {% include "teleforma/inc/document_simple_list.html" %} - {% endwith %} - {% endif %} - {% endwith %} - - {% with seminar.form as form %} - {% with _("Step 6 : evaluate the seminar") as title %} - {% include "teleforma/inc/evaluation_form.html" %} - {% endwith %} - {% endwith %} - {% endif %} + {% with seminar.docs_2 as docs %} +
+
+

{% trans "Step" %} 3 : {% if docs.all.count > 1 %}{% trans "read these documents" %}{% else %}{% trans "read this document" %}{% endif %}

+
+ {% include "teleforma/inc/document_simple_list.html" %} +
+ {% endwith %} - {% if validated %} - {% with _("Step 7 : download your testimonial") as title %} - {% include "teleforma/inc/testimonial_list.html" %} - {% endwith %} - {% endif %} + {% with seminar.question as questions %} +
+
+

{% trans "Step" %} 4 : {% if questions.all.count > 1 %}{% trans "answer to these questions" %}{% else %}{% trans "answer to this question" %}{% endif %}

+
+ {% include "teleforma/inc/question_list.html" %} +
+ {% endwith %} + + + {% if seminar_progress == 100 %} + {% with seminar.docs_correct as docs %} +
+
+

{% trans "Step" %} 5 : {% if docs.all.count > 1 %}{% trans "read these documents" %}{% else %}{% trans "read this document" %}{% endif %}

+
+ {% include "teleforma/inc/document_simple_list.html" %} +
+ {% endwith %} + + {% with seminar.form as form %} +
+
+

{% trans "Step" %} 6 : {% trans "evaluate the seminar" %}

+
+ {% include "teleforma/inc/evaluation_form.html" %} +
+ {% endwith %} + {% endif %} + + {% if validated %} +
+
+

{% trans "Step" %} 6 : {% trans "download your testimonial" %}

+
+ {% include "teleforma/inc/testimonial_list.html" %} +
+ {% endif %} - {% endblock course_content %} + {% endblock course_content %}