 Template.bidSummary.helpers
     
     stayAtCurrentSchool: ->
-        @BID.teamRecommendation is 'stayAtCurrentSchool'
+        @BID?.teamRecommendation is 'stayAtCurrentSchool'
         
     moveToNewSchool: ->
-        @BID.teamRecommendation is 'moveToNewSchool'
+        @BID?.teamRecommendation is 'moveToNewSchool'
 
     teamDisagrees: ->
-        @BID.teamRecommendation is 'teamDisagrees'
+        @BID?.teamRecommendation is 'teamDisagrees'
 
 Template.bidSummary.events
     "change [name=teamRecommendation]": (e) ->

            $('#transportationPaidBy').addClass("hidden")
            $('#personEnrollingChild').removeClass("hidden")
            $('#teamDisagreeNextSteps').addClass("hidden")
            $("#generate-mou").addClass("hidden")
        when 'teamDisagrees'
            $('[for="schoolToAttend"]').html('Name of School')
            $('#school-to-attend').addClass("hidden")

#Template.bid.created = ->
    

#Template.bid.rendered = ->
    #$(".make-switch").bootstrapSwitch()
    #console.log("Bid Rendered: Schema", BID.schema)


Template.bid.helpers
    bidDate: ->
        if @BID?.date?
            moment(@BID?.date).format('LL')

    stayAtCurrentSchool: ->
        @BID?.teamRecommendation is 'stayAtCurrentSchool'

    
Template.bid.events
