 
 class XlfRowView extends Backbone.View
   tagName: "li"
-  className: "cl-fixed-row"
+  className: "page-header xlf-row-view"
   events:
    "click .create-new-list": "createListForRow"
    "click .edit-list": "editListForRow"

        list.options = opts
        hideCl()
        row.trigger("change")
    summ.hide()
    exp.show()
    h2 = taVals.length * taLineH
    ta.animate({height: h2}, 275)

  render: ->
    elHtml = ""
    numChoices = @survey.choices.models.length
    list = @row.getList()
    listName = @row.get("type").get("listName")
    editMode = @rowView.$el.find(".edit-list-view").length isnt 0

    # aa_selectTypeBox = $("<div>", class: "select-type-box cl-span-2 cf").appendTo @$el
    # aa_select = $("<select>")
    # aa_selectTypeBox.html aa_select
    # for [tlabel, tname] in XLF.lookupRowType.typeSelectList()
    #   $("<option>", text: "#{tlabel}", value: tname).appendTo aa_select
    bc_wrap = $("<div>", class: "bc-wrap cl-span-5 cf summarized").appendTo @$el
    bc_wrap_hidden = $("<div>", class: "bc-wrap cl-span-5 cf expanded").hide().appendTo @$el
    a_selectBox = $("<div>", class: "select-list-box float-left").appendTo bc_wrap

    c_nListsAvailable = $("<div>", class: "n-lists-available").appendTo bc_wrap
    b_selectedListSummary = $("<div>", class: "selected-list-summary").appendTo bc_wrap

    c_nListsAvailable.text "#{numChoices} list#{if numChoices is 1 then '' else 's'} available "


    if list
      opts = (opt.get("name")  for opt in list.options.models)
      optsStr = "#{opts.join(',')}"
      maxChars = 30
      if optsStr.length > maxChars
        optsStr = optsStr.slice(0,maxChars) + "..."
      b_selectedListSummary.html "<a href='#' class='expand-list'>[ #{optsStr} ]</a>"
    else
      b_selectedListSummary.html "<em>No list selected</em>"

    if numChoices is 0
      sel = $("<select>", {disabled: 'disabled'}).html($("<option>", text: "No lists available"))
      a_selectBox.html sel
    else
      sel = $("<select>")
      unless list


    @survey.rows.trigger("reset")

    addOpts = @$("#additional-options")
    for detail in @survey.surveyDetails.models
      addOpts.append((new XlfSurveyDetailView(model: detail)).render().el)

    @
  reset: ->
    fe = @formEditorEl.empty()
    @survey.forEachRow (row)=>
      # row._slideDown is for add/remove animation
      $el = new XlfRowView(model: row, surveyView: @).render().$el
