From: yomguy Date: Wed, 28 Mar 2012 11:10:01 +0000 (+0200) Subject: add course templates and styles X-Git-Tag: 0.2~85 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=2f420822fbd907c98968afa73e3c7dd67e8cb6e3;p=teleforma.git add course templates and styles --- diff --git a/teleforma/htdocs/css/teleforma_black.css b/teleforma/htdocs/css/teleforma_black.css index 827c9e69..3e1c3848 100644 --- a/teleforma/htdocs/css/teleforma_black.css +++ b/teleforma/htdocs/css/teleforma_black.css @@ -168,7 +168,7 @@ a img { border: none; } #collection_player { background: transparent; - /* background-image: url(../images/grid_bg.png); */ + /* background-image: url(../images/grid_bg_2.png); */ } #collection_player .title { @@ -436,7 +436,7 @@ form.login .submit { background-color: #000000 ; font: normal verdana,'Bitstream Vera Sans',helvetica,arial,sans-serif; border-top: .25em solid #000000; - padding-left:26px; + padding-left:200px; } #menu a, #menu a:visited{ @@ -908,7 +908,7 @@ img.align-left { #module-set .module { border: 1px solid #000; - background-image: url(../images/grid_bg.png); + background-image: url(../images/grid_bg_2.png); padding: 0.3em 0.8em 0.8em 0.8em; margin: 3.5em 0em 1.5em 1.5em; -moz-border-radius: 8px 8px 8px 8px; @@ -1269,7 +1269,10 @@ input,textarea{ .course_title { border-bottom:1px solid #6A0307; color:#FFFFFF; - background-image: url(../images/grid_bg.png); + background-image: url(../images/grid_bg_2.png); + -moz-border-radius: 8px 8px 8px 8px; + -webkit-border-radius: 8px 8px 8px 8px; + border-radius: 8px 8px 8px 8px; } #module-set-left { @@ -1280,7 +1283,7 @@ input,textarea{ #module-set-left .module { border: 1px solid #000; - background-image: url(../images/grid_bg.png); + background-image: url(../images/grid_bg_2.png); padding: 0em 0.8em 0em 0.8em; margin: 0em 0em 1.5em 0em; -moz-border-radius: 8px 8px 8px 8px; diff --git a/teleforma/templates/teleforma/course_detail.html b/teleforma/templates/teleforma/course_detail.html index f70797f9..0113db0c 100644 --- a/teleforma/templates/teleforma/course_detail.html +++ b/teleforma/templates/teleforma/course_detail.html @@ -9,62 +9,30 @@ {% block course %} - - - - - -
{{ course.title }}{% if course.description %} - {{ course.description }}{% endif %}
- -

{% trans "Documents"%}

- - - - - - - {% for document in course.document.all %} - - - - - - {% endfor %} -
{% trans "Title" %}{% trans "Description" %}{% trans "Date added" %}
{{ document.title }}{{ document.description }}{{ document.date_added }}
- -

{% trans "Medias"%}

- - - - - - - {% for media in course.media.all %} - - - - - - {% endfor %} -
{% trans "Title" %}{% trans "Description" %}{% trans "Date added" %}
{{ media.item.title }}{{ media.item.description }}{{ media.date_added }}
- - -

{% trans "Conferences"%}

- - - - - - - {% for conference in course.conference.all %} - - - - - - {% endfor %} -
{% trans "Session" %}{% trans "Professor" %}{% trans "Date added" %}
{{ conference.session }}{{ conference.professor.user.first_name }} {{ conference.professor.user.last_name }}{{ conference.date_begin }}
- + + + + +
{{ course.title }}{% if course.description %} - {{ course.description }}{% endif %}
+ + +{% block document %} +{% with course as course and %} +{% include "teleforma/inc/document_list.html" %} +{% endwith %} +{% endblock %} + +{% block media %} +{% with course as course and %} +{% include "teleforma/inc/media_list.html" %} +{% endwith %} +{% endblock %} + +{% block conference %} +{% with course as course and %} +{% include "teleforma/inc/conference_list.html" %} +{% endwith %} +{% endblock %} {% endblock course %} diff --git a/teleforma/templates/teleforma/courses.html b/teleforma/templates/teleforma/courses.html index 470b50dc..12903412 100644 --- a/teleforma/templates/teleforma/courses.html +++ b/teleforma/templates/teleforma/courses.html @@ -28,7 +28,7 @@

playlists{% trans "My courses" %}

- +
    {% block courses %} @@ -40,65 +40,36 @@
- +
{% block course %} + {% for course in object_list %} - +
{{ course.title }}{% if course.description %} - {{ course.description }}{% endif %}
-

{% trans "Documents"%}

- - - - - - - {% for document in course.document.all %} - - - - - - {% endfor %} -
{% trans "Title" %}{% trans "Description" %}{% trans "Date added" %}
{{ document.title }}{{ document.description }}{{ document.date_added }}
+ {% block document %} + {% with course as course and %} + {% include "teleforma/inc/document_list.html" %} + {% endwith %} + {% endblock %} + + {% block media %} + {% with course as course and %} + {% include "teleforma/inc/media_list.html" %} + {% endwith %} + {% endblock %} + + {% block conference %} + {% with course as course and %} + {% include "teleforma/inc/conference_list.html" %} + {% endwith %} + {% endblock %} -

{% trans "Medias"%}

- - - - - - - {% for media in course.media.all %} - - - - - - {% endfor %} -
{% trans "Title" %}{% trans "Description" %}{% trans "Date added" %}
{{ media.item.title }}{{ media.item.description }}{{ media.date_added }}
- - -

{% trans "Conferences"%}

- - - - - - - {% for conference in course.conference.all %} - - - - - - {% endfor %} -
{% trans "Session" %}{% trans "Professor" %}{% trans "Date added" %}
{{ conference.session }}{{ conference.professor.user.first_name }} {{ conference.professor.user.last_name }}{{ conference.date_begin }}
{% endfor %} {% endblock course %} diff --git a/teleforma/templates/teleforma/inc/conference_list.html b/teleforma/templates/teleforma/inc/conference_list.html new file mode 100644 index 00000000..74963237 --- /dev/null +++ b/teleforma/templates/teleforma/inc/conference_list.html @@ -0,0 +1,21 @@ +{% load i18n %} + +

{% trans "Conferences"%}

+ + + + + + + + + + {% for conference in course.conference.all %} + + + + + + {% endfor %} + +
{% trans "Session" %}{% trans "Professor" %}{% trans "Date added" %}
{{ conference.session }}{{ conference.professor.user.first_name }} {{ conference.professor.user.last_name }}{{ conference.date_begin }}
diff --git a/teleforma/templates/teleforma/inc/document_list.html b/teleforma/templates/teleforma/inc/document_list.html new file mode 100644 index 00000000..5c72ccd1 --- /dev/null +++ b/teleforma/templates/teleforma/inc/document_list.html @@ -0,0 +1,21 @@ +{% load i18n %} + +

{% trans "Documents"%}

+ + + + + + + + + + {% for document in course.document.all %} + + + + + + {% endfor %} + +
{% trans "Title" %}{% trans "Description" %}{% trans "Date added" %}
{{ document.title }}{{ document.description }}{{ document.date_added }}
diff --git a/teleforma/templates/teleforma/inc/media_list.html b/teleforma/templates/teleforma/inc/media_list.html new file mode 100644 index 00000000..94d2d666 --- /dev/null +++ b/teleforma/templates/teleforma/inc/media_list.html @@ -0,0 +1,22 @@ +{% load i18n %} + + +

{% trans "Medias"%}

+ + + + + + + + + + {% for media in course.media.all %} + + + + + + {% endfor %} + +
{% trans "Title" %}{% trans "Description" %}{% trans "Date added" %}
{{ media.item.title }}{{ media.item.description }}{{ media.date_added }}
diff --git a/teleforma/templates/telemeta/base.html b/teleforma/templates/telemeta/base.html index a7429c94..d58ce6bd 100644 --- a/teleforma/templates/telemeta/base.html +++ b/teleforma/templates/telemeta/base.html @@ -54,8 +54,8 @@