From 2cb06d79a63a7abdd288d0087c3b0febb5df60b1 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 12 Apr 2013 11:43:13 +0200 Subject: [PATCH] [IMP] better badge views bzr revid: mat@openerp.com-20130412094313-x530vhkzrwvt0tei --- addons/gamification/badge.py | 2 +- addons/gamification/badge_view.xml | 36 +++++++++------------ addons/gamification/static/src/css/goal.css | 2 +- 3 files changed, 17 insertions(+), 23 deletions(-) diff --git a/addons/gamification/badge.py b/addons/gamification/badge.py index 3872c4362a2..7f7ddea7ce6 100644 --- a/addons/gamification/badge.py +++ b/addons/gamification/badge.py @@ -163,7 +163,7 @@ class gamification_badge(osv.Model): ('having', 'People having some badges'), ('nobody', 'No one'), ], - string="User Authorization Rule", + string="Allowed to Grant", help="Who can grant this badge", required=True), 'rule_auth_user_ids': fields.many2many('res.users', 'rel_badge_auth_users', diff --git a/addons/gamification/badge_view.xml b/addons/gamification/badge_view.xml index 55c8ffb6dfa..3d89bc752c2 100644 --- a/addons/gamification/badge_view.xml +++ b/addons/gamification/badge_view.xml @@ -67,13 +67,7 @@
-
@@ -87,8 +81,8 @@ - - + + @@ -104,7 +98,7 @@ - + @@ -151,12 +145,7 @@
- -
- - - -
+

@@ -168,19 +157,24 @@

-

+ - / remaining + / ∞ -

+
-
You can not send this badge
+
Can not send
-
+ +
+ + + +
diff --git a/addons/gamification/static/src/css/goal.css b/addons/gamification/static/src/css/goal.css index cb8054f33b4..d5792d7864b 100644 --- a/addons/gamification/static/src/css/goal.css +++ b/addons/gamification/static/src/css/goal.css @@ -1,6 +1,6 @@ /* Kanban views */ .openerp .oe_kanban_view .oe_kanban_card.oe_kanban_goal { - width: 220px; + width: 230px; min-height: 200px; } .openerp .oe_kanban_view .oe_kanban_card.oe_kanban_badge {