Sha256: 73bc9deab2abb47c579ecbc6f41bc51daf58928216fe28b63433f3b07d013d59

Contents?: true

Size: 979 Bytes

Versions: 1

Compression:

Stored size: 979 Bytes

Contents

%section.form
  %form(id='events' action= "#{url admin_request_url}/#{@event.id}" method ='put')
    .label
      %label(for="event[course_id]") Course:
    .input 
      = select_for :event, :course_id, course_options
    .label
      %label(for="event[from]") From:
    .input 
      = input_for :event, :from, :time_format => "%d-%m-%Y", :class => "date"
    .label
      %label(for="event[to]") To:
    .input
      = input_for :event, :to, :time_format => "%d-%m-%Y", :class => "date"
    #location_selector{ :style => display_if_locations  }
      .label
        %label(for="event[location_id]") Where
      .input 
        = select_for :event, :location_id, location_options
    #location_name{ :style => display_unless_locations }
      .label
        %label(for="event[location]") New location name
      .input 
        %input{:type => "text", :name => "event[location]"}

    .label
    .input
      %input{:type => "submit", :value => "plan event" }
    %span.clear

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qcourses-0.1.3 views/events/edit.haml