Use responsive classes for dashboard columns
authorThierry Florac <thierry.florac@onf.fr>
Wed, 13 Sep 2017 15:57:18 +0200
changeset 162 fc3266e6a510
parent 161 a5545e09b203
child 163 bd68fac5a89a
Use responsive classes for dashboard columns
src/pyams_content/shared/common/zmi/dashboard.py
--- a/src/pyams_content/shared/common/zmi/dashboard.py	Wed Sep 13 14:19:52 2017 +0200
+++ b/src/pyams_content/shared/common/zmi/dashboard.py	Wed Sep 13 15:57:18 2017 +0200
@@ -165,6 +165,8 @@
     """Shared tool dashboard status date column"""
 
     _header = _("Status date")
+    cssClasses = {'th': 'col-xs-hide col-sm-hide',
+                  'td': 'col-xs-hide col-sm-hide'}
     weight = 21
 
     def getValue(self, obj):
@@ -188,6 +190,8 @@
     """Shared tool dashboard status principal column"""
 
     _header = _("Status principal")
+    cssClasses = {'th': 'col-xs-hide',
+                  'td': 'col-xs-hide'}
     weight = 30
 
     def getValue(self, obj):
@@ -201,6 +205,8 @@
     """Shared tool dashboard owner column"""
 
     _header = _("Owner")
+    cssClasses = {'th': 'col-xs-hide',
+                  'td': 'col-xs-hide'}
     weight = 35
 
     def getValue(self, obj):