Sha256: c39c64d828369f54c03f5e513bd62fc1117425e8de60765b6507db064d1e8460

Contents?: true

Size: 1.33 KB

Versions: 4

Compression:

Stored size: 1.33 KB

Contents

<% focus :schedule_item_title %>

<%= form_for(@schedule_item) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title, :class => "form-control" %>
  </p>
  <p>
    <%= f.label :excerpt %> (<%= display_textile_help_link %>)<br />
    <%= f.text_area :excerpt, :class => "form-control" %>
  </p>
  <p>
    <%= f.label :description %> (<%= display_textile_help_link %>)<br />
    <%= f.text_area :description, :class => "form-control" %>
  </p>
  <p>
    <%= f.label :start_time %><br />
    <%= f.datetime_select :start_time, :class => "form-control" %>
  </p>
  <p>
    <%= f.label :duration, "Duration (minutes)" %><br />
    <%= f.text_field :duration, :class => "form-control" %>
  </p>
  <p>
    <%= f.label :room_id, "Room" %><br />
    <%= f.collection_select :room_id, @event.rooms, :id, :name, {:include_blank => true}, :class => "form-control" %>
  </p>
  <p>
    <%= f.submit @schedule_item.new_record? ? "Create" : "Update", :class => "btn btn-primary" %>
    <%= link_to 'Cancel', @schedule_item, :class => "showable", :class => "btn btn-default" %>
    <%= link_to 'Destroy', schedule_item_path(@schedule_item), :method => :delete, :data => { :confirm => %{Destroy schedule item "#{@schedule_item.title}"?} }, :class => "btn btn-danger pull-right" unless @schedule_item.new_record? %>
  </p>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

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