[IMP] revert ir config todo styling move checkbox at the right
authorAntony Lesuisse <al@openerp.com>
Thu, 12 Jan 2012 13:14:59 +0000 (14:14 +0100)
committerAntony Lesuisse <al@openerp.com>
Thu, 12 Jan 2012 13:14:59 +0000 (14:14 +0100)
bzr revid: al@openerp.com-20120112131459-lt3rmnpannlfbr9i

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

index 96ed4be..fe31f0a 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;
     padding: 2px;
 }
 
-.openerp .oe-dashboard-action-content {
-    padding: 8px;
-}
-
 .oe-static-home {
     padding: 0.5em 0.5em;
     text-align: center;
index 76857f0..4db96d5 100644 (file)
                 <li t-foreach="category_value" t-as="todo"
                     t-att-class="todo.done ? 'oe-done' : undefined"
                     t-att-data-id="todo.id"
-                    t-att-title="!todo.done ? _t('Execute task') + ' \'' + todo.name + '\'' : undefined">
-                    <span t-att-class="todo.done ? 'oe-label' : 'oe-label oe-todo'"><t t-esc="todo.done ? _t('Done') : _t('To do')"/></span>
-                    <t t-esc="todo.name"/>
+                    t-att-title="!todo.done ? 'Execute task \'' + todo.name + '\'' : undefined">
+                    <span  style="text-decoration: underline;"><t t-esc="todo.name"/></span>
+                    <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"/>
                 </li>
             </ul></dd>
         </t>