<% content_for :scripts do %> <% end %> <% focus :track_title %> <%= form_for([@event, @track]) do |f| %> <%= f.error_messages %>

<%= f.label :title %>
<%= f.text_field :title, :class => "form-control" %>

<%= f.label :excerpt %> (one line description, used in track selector) <%= f.text_area :excerpt, :class => "form-control" %>

<%= f.label :description %> (<%= display_textile_help_link %>) <%= f.text_area :description, :rows => 8, :class => "form-control" %>

<%= f.label :color %> <%= f.text_field :color, :class => "form-control" %>

<%= f.submit @track.new_record? ? "Create" : "Update", :class => "btn btn-primary" %> <%= link_to 'Cancel', @track, :class => "btn btn-default" %> <%= link_to 'Destroy', track_path(@track), :method => :delete, :data => { :confirm => %{Destroy track "#{@track.title}"?} }, :class => "btn btn-danger pull-right" unless @track.new_record? %>

<% end %>