From 82e35bce6c4fa2e6dca98309f7a9483a9a719eb9 Mon Sep 17 00:00:00 2001 From: Keyur Gajjar Date: Mon, 14 Dec 2015 19:02:31 +0530 Subject: [PATCH] [FIX] gamification: several layout issues 1/ ISSUES WITH BADGES: Go to menu Employees > Badges > Select any Badge from kanban View. Click on "GRANT THIS BADGE" button. - When you grant a badge, the description field is not at the right place. It should be below the employee field - Badges Form View: "Granted Employees" should be a stat button with a counter - Badges form view is broken, field label/values are not at right place 2/ ISSUES WITH CHALLENGES: Go to menu Employees > Challenges Challenges Kanban View - Image Avatars are too big, make it smaller. - Challenges Form View > Advanced Options : fields Report frequency, Report Template and Send a Copy to are ugly --- .../static/src/less/gamification.less | 3 ++ addons/gamification/views/badge.xml | 44 ++++++++++--------- addons/gamification/views/challenge.xml | 8 ++-- addons/gamification/wizard/grant_badge.xml | 6 +-- addons/hr_gamification/models/gamification.py | 10 +++++ addons/hr_gamification/views/gamification.xml | 4 +- 6 files changed, 48 insertions(+), 27 deletions(-) diff --git a/addons/gamification/static/src/less/gamification.less b/addons/gamification/static/src/less/gamification.less index a9440f5fd4f..f047f263764 100644 --- a/addons/gamification/static/src/less/gamification.less +++ b/addons/gamification/static/src/less/gamification.less @@ -21,6 +21,9 @@ } } } + .o_kanban_badge_description { + padding-bottom: 15px; + } .o_red { color: red; } diff --git a/addons/gamification/views/badge.xml b/addons/gamification/views/badge.xml index 1ef04703968..a2618ecfa29 100644 --- a/addons/gamification/views/badge.xml +++ b/addons/gamification/views/badge.xml @@ -51,27 +51,29 @@ - +
Security rules to define who is allowed to manually grant badges. Not enforced for administrator.
- - - - - -