--- a/src/main/scala/fis/pm/ui/TaskTable.scala Tue Jun 05 15:40:45 2012 +0200
+++ b/src/main/scala/fis/pm/ui/TaskTable.scala Tue Jun 05 15:40:45 2012 +0200
@@ -18,6 +18,7 @@
import fis.base.model._
import fis.base.ui._
import fis.pm.model._
+import net.datatables.DataTables._
import net.liftweb.common._
import net.liftweb.util._
import net.liftweb.util.Helpers._
@@ -32,7 +33,15 @@
(Seq(identField(t)) ++ EntityLink(t) ++ Seq(t.stateFld, t.deadline,
t.responsible, t.note)) map Delayed(t)
- def apply(l: Iterable[Task]) = build(Task, l)
+ def apply(l: Iterable[Task]) = {
+ val uid = nextFuncName
+ ("table [id]" #> uid)(build(Task, l)) ++ onLoad(uid, dataTableOpts)
+ }
+
+ override protected def decorate = "table [class+]" #> "project-table"
+
+ protected def dataTableOpts =
+ Options col(ColumnDef dtype(TYPE_EU_DATE) target(3))
}
object TaskTable extends TaskTable