         submit_handler: @props.submit_handler, cancel_handler: @props.cancel_handler
       })
     else
+      if @state.show_all_detail
+        expand_class = "mdi-navigation-expand-less"
+      else
+        expand_class = "mdi-navigation-expand-more"
+
       return React.createElement("div", {className: "well", id: @props.id},
         React.createElement("div", {key: "arrow", className: "event-arrow"})
         React.createElement("div", {key: "buttons", className: "event-header"},

    # Trigger the render
    @setState {to_display, show_all_detail}

  handleClick: (e) ->
    @switchDetail()
    e.stopPropagation()


    if $("form#event_form").length
      # Scroll to the edit pane
      $('html, body').animate({
        scrollTop: Math.max(0, $("form#event_form").offset().top - 120)
      }, 1000);

  getNewObjects: (events) ->
