Sha256: 955f70b1d9e050fc9d06e1e701896d264a5f8b0480686b7cc8a5e712402a5c00

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 KB

Contents

<% content_for :scripts do %>
  <script type="text/javascript">
    $(document).ready(function() {
      $('#colorpicker').farbtastic('#track_color');
    });
  </script>
<% end %>

<% focus :track_title %>

<%= form_for([@event, @track]) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title, :class => "form-control" %>
  </p>
  <p>
    <%= f.label :excerpt %> (one line description, used in track selector)
    <%= f.text_area :excerpt, :rows => 8, :class => "form-control" %>
  </p>
  <p>
    <%= f.label :description %> (<%= display_textile_help_link %>)
    <%= f.text_area :description, :class => "form-control" %>
  </p>
  <p>
    <%= f.label :color %>
    <%= f.text_field :color, :class => "form-control" %>
    <div id="colorpicker"></div>
  </p>
  <p>
    <%= 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? %>
  </p>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
open_conference_ware-1.0.0.pre3 app/views/open_conference_ware/tracks/_form.html.erb
open_conference_ware-1.0.0.pre2 app/views/open_conference_ware/tracks/_form.html.erb
open_conference_ware-1.0.0.pre1 app/views/open_conference_ware/tracks/_form.html.erb