From: Julien Moutinho Date: Fri, 3 Oct 2014 13:52:19 +0000 (+0200) Subject: change cardinal-5 description X-Git-Url: http://git.cyclocoop.org/?p=cavote.git;a=commitdiff_plain;h=00934384b3d9084b9b0b9a7fb4b15be43e78b3e3 change cardinal-5 description --- diff --git a/main.py b/main.py index 9ce0797..14a839b 100755 --- a/main.py +++ b/main.py @@ -751,6 +751,7 @@ def admin_vote_edit(voteid): vote = query_db('select * from votes where id = ?', [voteid], one=True) if vote is None: abort(404) + print "\nvote: %s\n" % str(vote) if request.method == 'POST': if request.form['title']: if request.form['days'] > 0: diff --git a/static/css/cavote.css b/static/css/cavote.css index c636730..1c7a21a 100644 --- a/static/css/cavote.css +++ b/static/css/cavote.css @@ -3,6 +3,9 @@ margin-top:9px; } +.table-votes { + table-layout:fixed; + } .table-votes thead th { text-align: right; vertical-align: middle; @@ -99,10 +102,13 @@ background-color:#20B756 !important; fill:#20B756; } -.cardinal-5 .value_-2__Tr_s_Hostile_ { +.cardinal-5 .value_-2__Hostile_et_sans_moi_ { background-color:#DB4343 !important; fill:#DB4343; } +.results .value_-2__Hostile_et_sans_moi_ + text { + font: 9px sans-serif; + } .cardinal-5 .value_-1__Hostile_ { background-color:#E49F37 !important; fill:#E49F37; @@ -115,10 +121,13 @@ background-color:#B1D039 !important; fill:#B1D039; } -.cardinal-5 .value__2__Tr_s_Favorable_ { +.cardinal-5 .value__2__Favorable_et_avec_moi_ { background-color:#20B756 !important; fill:#20B756; } +.results .value__2__Favorable_et_avec_moi_ + text { + font: 8px sans-serif; + } .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container { @@ -139,6 +148,9 @@ padding:0; overflow:visible; } +.span9 { + width:800px; + } .results rect { //fill: steelblue; diff --git a/templates/vote.html b/templates/vote.html index 7e36224..d767473 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -35,19 +35,19 @@
Légende : + {% for value in values %} + + + + {{ value.name }} + + {% endfor %} - {% for value in values %} - - - - {{ value.name }} - - {% endfor %} somme↓