h1=t 'models.plural.list'
App.ListDisplayDateSelector valueBinding="date"
if sorted_lists
  table.table
    thead
      tr
        th.state=t 'attributes.list.state'
        th.boolean=t 'attributes.list.needs_help'
        th.boolean=t 'attributes.list.needs_payment'
        th.timestamp=t 'attributes.list.closed_at'
        th.table_number=t 'models.table'
        th.currentcy=t 'attributes.list.price'
        th.timestamp=t 'attributes.list.created_at'
    tbody
      each list in sorted_lists
        tr
          td.state
            link-to 'list' list.id
              = state 'list' list.state
          td.boolean.needs_help=boolean list.needs_help
          td.boolean.needs_payment=boolean list.needs_payment
          td.timestamp=time list.closed_at
          td.table_number= list.table.number
          td.currency=currency list.price
          td.timestamp=time list.created_at
else
  .row
    .panel
      if loading
        span.loading
      else
        =t 'list.none_found'
