         @h1 "Register", outlet: 'title'
         @h2 outlet: "date"
         @p outlet: 'message'
+        @input type: 'hidden', outlet: 'className', id: 'class-name'
         @form =>
           @table class: 'pupils', =>
             @tr =>

    initialize: ->
      @button.on 'click', ->
        $('.pupils input').prop 'disabled', true
        Register.record("Year 1", $('.pupils input'))
        alert("Register Saved")

    applyData: (klass) ->

      @date.html(date.toDateString())

      @title.append(" " + klass)

      @className.attr("value", klass)

      @date.append(" " + Register.currentSession())

