Restyling of the config todo list
authorMinh Tran <mit@openerp.com>
Wed, 11 Jan 2012 11:07:43 +0000 (12:07 +0100)
committerMinh Tran <mit@openerp.com>
Wed, 11 Jan 2012 11:07:43 +0000 (12:07 +0100)
bzr revid: mit@openerp.com-20120111110743-ir7lg59is1y9fegp

addons/web_dashboard/static/src/css/dashboard.css
addons/web_dashboard/static/src/xml/web_dashboard.xml

index fe31f0a..955f864 100644 (file)
 .openerp .oe-dashboard-config-overview li {
     cursor: pointer;
     position: relative;
-    text-indent: 20px;
 }
 .openerp .oe-dashboard-config-overview li:hover {
     cursor: pointer;
     color: #999999;
 }
 
+.openerp span.oe-label {
+    display: inline-block;
+    padding: 1px 3px 2px;
+    min-width: 38px;
+    font-size: 10px;
+    font-weight: bold;
+    color: white;
+    text-transform: uppercase;
+    text-align: center;
+    white-space: nowrap;
+    background-color: #BFBFBF;
+    -webkit-border-radius: 3px;
+    -moz-border-radius: 3px;
+    border-radius: 3px;
+}
+
+.openerp span.oe-todo {
+    background: #7F82AC;
+}
+
 .openerp .oe-dashboard-layout_2-1 .index_0 .oe-dashboard-config-overview ul,
 .openerp .oe-dashboard-layout_1-2 .index_1 .oe-dashboard-config-overview ul {
     -moz-column-count: 2;
index 5d503d9..a342f43 100644 (file)
@@ -73,9 +73,7 @@
                     t-att-class="todo.done ? 'oe-done' : undefined"
                     t-att-data-id="todo.id"
                     t-att-title="!todo.done ? 'Execute task \'' + todo.name + '\'' : undefined">
-                    <input type="checkbox" t-att-value="todo.id"
-                       t-att-title="!todo.done ? 'Mark this task as done' : undefined"
-                       t-att-checked="todo.done ? 'checked' : undefined"/>
+                    <span t-att-class="todo.done ? 'oe-label' : 'oe-label oe-todo'"><t t-esc="todo.done ? 'Done' : 'To do'"/></span>
                     <t t-esc="todo.name"/>
                 </li>
             </ul></dd>