             @tr =>
               @th "Name"
               @th "Present?"
-              @th "Dinner Choice"
+              if '' + register.sessionId == Config.setting('dinnerSession')
+                @th "Dinner Choice"
           @tbody id: 'registerBody', =>
             for pupil in Pupil.where('classId', register.classId)
               @tr =>


        input = $('#registerBody tr:nth-child(' + current + ')').children('td').children('div').children('label').children('input')
        input.prop 'checked', false

      $('#mainBody').append('<div class="metro notify-container" id="notifyContainer"></div>')
      $('#notifyContainer').append('<div class="notify shadow"><div class="content" id="choicesList"><b>Dinner Choices</b><br /><br /></div></div>')
      $('#choicesList').append('[0] None/Packed Lunch<br />')
      $(document).on 'keydown', null, '0', ->
        select = $('#registerBody tr:nth-child(' + current + ')').children('td').children('select')
        select.val(0)

      num = 0
      for choice in DinnerMenuAssignment.forRegister()

{View} = require 'space-pen'

{Class, Config, DinnerMenuAssignment, Pupil, Register, RegisterEntry, Session} = require '../../database'

module.exports =
  class RegisterView extends View
