From: yomguy Date: Mon, 17 Dec 2012 09:35:54 +0000 (+0100) Subject: fix progressbar ui X-Git-Tag: 0.9-probarreau~247 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=3b9b4f972379ddd4dff4320e7038e6a1edb5233d;p=teleforma.git fix progressbar ui --- diff --git a/teleforma/static/teleforma/css/teleforma.css b/teleforma/static/teleforma/css/teleforma.css index 581e2663..39bcbce9 100644 --- a/teleforma/static/teleforma/css/teleforma.css +++ b/teleforma/static/teleforma/css/teleforma.css @@ -1361,9 +1361,9 @@ input,textarea{ } #module-set .module div { - -moz-border-radius: 8px 8px 8px 8px; + -moz-border-radius: 8px 0px 8px 8px; -webkit-border-radius: 8px 0px 8px 8px; - border-radius: 8px 8px 8px 8px; + border-radius: 8px 0px 8px 8px; } #module-set .module a:hover { @@ -1406,9 +1406,6 @@ input,textarea{ -moz-border-radius: 8px 0px 8px 8px; -webkit-border-radius: 8px 0px 8px 8px; border-radius: 8px 0px 8px 8px; - } - -#module-set-left .module ul { margin: 0em 0em 0em 0.3em; font-size: 0.9125em; background-color: #FFF; @@ -1687,7 +1684,7 @@ input,textarea{ .info { color: white; padding: 0.3em; - background-color: #3c9200; + background-color: green; -moz-border-radius: 8px 0px 8px 8px; -webkit-border-radius: 8px 0px 8px 8px; border-radius: 8px 0px 8px 8px; @@ -1742,6 +1739,13 @@ form .exceed{ -moz-border-radius: 8px 0px 8px 8px; -webkit-border-radius: 8px 0px 8px 8px; border-radius: 8px 0px 8px 8px; + margin: 0em 0em 0em 0.3em; + font-size: 0.9125em; + background-color: #FFF; + color: #000 ; + font-weight: normal; + max-height: 450px; + overflow-y: auto; } @@ -1774,3 +1778,7 @@ form .exceed{ background-color: #bb0000; } +.ui-progressbar.beginning .ui-progressbar-value { background: red; } +.ui-progressbar.middle .ui-progressbar-value { background: yellow; } +.ui-progressbar.end .ui-progressbar-value { background: green; } + diff --git a/teleforma/templates/teleforma/answer_form.html b/teleforma/templates/teleforma/answer_form.html index f6b8f714..07b2cf4e 100644 --- a/teleforma/templates/teleforma/answer_form.html +++ b/teleforma/templates/teleforma/answer_form.html @@ -66,7 +66,8 @@ $(document).ready(function(){ {% block progress %}
-

status {% trans "Progress" %}

+

status {% trans "Progression" %}

+
  • {% trans "General" %} : {{ total_progress }}% @@ -83,5 +84,6 @@ $(document).ready(function(){
+
{% endblock progress %} diff --git a/teleforma/templates/teleforma/inc/question_list.html b/teleforma/templates/teleforma/inc/question_list.html index f6118e9c..d1fea1ef 100644 --- a/teleforma/templates/teleforma/inc/question_list.html +++ b/teleforma/templates/teleforma/inc/question_list.html @@ -11,7 +11,8 @@ {% for question in questions.all %} - {{ question.title }} n°{{ question.rank }} + {{ question.title }} n°{{ question.rank }} + {% if question|submitted:user %}{% trans "submitted on" %}{% else %}{% trans "saved on" %}{% endif %} {{ question|submitted:user }} {% if question|submitted:user %}{% endif %} {% endfor %} diff --git a/teleforma/templates/teleforma/seminar_detail.html b/teleforma/templates/teleforma/seminar_detail.html index 7a561d00..ffcb2271 100644 --- a/teleforma/templates/teleforma/seminar_detail.html +++ b/teleforma/templates/teleforma/seminar_detail.html @@ -131,7 +131,7 @@ $(function() { {% block progress %}
-

status {% trans "Progress" %}

+

status {% trans "Progression" %}

  • {% trans "General" %} : {{ total_progress }}% diff --git a/teleforma/templates/teleforma/seminars.html b/teleforma/templates/teleforma/seminars.html index 511a7769..cf7ce4ec 100644 --- a/teleforma/templates/teleforma/seminars.html +++ b/teleforma/templates/teleforma/seminars.html @@ -105,7 +105,7 @@ $(function() { {% block progress %}
    -

    status {% trans "Progress" %}

    +

    status {% trans "Progression" %}

    • {% trans "General" %} : {{ total_progress }} diff --git a/teleforma/templatetags/teleforma_tags.py b/teleforma/templatetags/teleforma_tags.py index ef9f5669..a27b1296 100644 --- a/teleforma/templatetags/teleforma_tags.py +++ b/teleforma/templatetags/teleforma_tags.py @@ -224,3 +224,11 @@ def submitted(question, user): else: return False +@register.filter +def submitted(question, user): + answers = Answer.objects.filter(question=question, user=user) + if answers: + return answers[0].date_submitted + else: + return '' + diff --git a/teleforma/urls.py b/teleforma/urls.py index a8be4bf5..82894f1e 100644 --- a/teleforma/urls.py +++ b/teleforma/urls.py @@ -138,4 +138,5 @@ urlpatterns = patterns('', url(r'^', include('jqchat.urls')), url(r'^tinymce/', include('tinymce.urls')), + )