       
     )
     
-
+    # allows for styled section-rows
     ClickableRow = Backgrid.Row.extend(
       
-      events: { "click" : "onClick" }
+      events:
+        "click" : "onClick"
+        "style" : "onStyle"
       
       onClick: ->
-        console.log("this", @)
-        window.test = @
-        @$el.addClass("project-row")
-        Backbone.trigger("rowclicked", @model)
-
-    )
-
-    Backbone.on("rowclicked", (model) ->
-      console.log("model", model)
-    )
+
+        console.log("this was clicked", @)
+        # Backbone.trigger("rowclicked", @model)
+
+
+      onStyle: ->
+
+        if @model.attributes.sectionRow
+          @$el.addClass("project-row")
+
+
+    )
+
+    ClickableCell = Backgrid.Row.extend(
+      
+      events:
+
+        "click" : "onClick"
+      
+
+      onClick: ->
+
+        console.log("clickableCell this was clicked", @)
+
+    )
+
+   
+
+    # Backbone.on("rowclicked", (model) ->
+    #   console.log("model", model)
+    # )
 
 
     columns = [
       name: "issue"
-      label: "Issue"
-      editable: false
-      cell: "string"
-      sortable: false
-      headerCell: MinimalHeaderCell
+      label: "Issue"      
     ,
       name: "sum"
       label: "&sum;"
-      editable: false
-      sortable: false
-      cell: "string"
-      headerCell: MinimalHeaderCell
     ]
 
     data = @prepareModel()

      columns.push(
        name: d
        label: Utils.zeroPad(d)
        editable: false
        sortable: false
        cell: "string"
        headerCell: MinimalHeaderCell
      )
    )


    console.log("data", data)

    dataCollection = new Backbone.Collection(data)
    
    grid = new Backgrid.Grid(
      columns: columns
      collection: dataCollection
      row: ClickableRow
      className: "table table-hover table-bordered table-striped"
    )

    $("div.report-table").append(grid.render().$el)


  instantiateView : ->

      sectionHeaderRow = 
        "issue" : element
        "sum" : Utils.minutesToHours(Utils.sum(daySums))
        "sectionRow" : true

      _.map(daySums, (sum, index) ->
        sectionHeaderRow[index + 1] = Utils.minutesToHours(sum) || ""
      )

      table.push(sectionHeaderRow)


      _.forOwn(_.groupBy(elementEntries, @groupByIterator),
