     event.end.setHours(data.to_time.split(':')[0])
     event.end.setMinutes(data.to_time.split(':')[1])
     event.recurring = data.recurring
+    event.id = data.id if data.id
     event
 
   displayErros: (errors)->

    selectHelper: true

    select: (start, end, allDay) ->
      FormHandler.showForm( {start: start, end: end} )
      
    editable: true


    templateSlotCalendar.fullCalendar "unselect"
    $('#template_form').css('display', 'block')

  setFormFieldsValue: (event)->
    $('#template_slot_day').val(event.start.getDayName())
    $('#from_time_hour').val(event.start.getHours())
    $('#from_time_minute').val(event.start.getMinutes())
