Sha256: 5d454c739e181ab9129f14ae0ac4da3baab5826f8323269c23e59318c2b1a64c
Contents?: true
Size: 1.55 KB
Versions: 4
Compression:
Stored size: 1.55 KB
Contents
<% submission_path = @event.new_record? ? events_path : event_path(@event) %> <div style="width: 550px;"> <%= semantic_form_for(@event, :url => submission_path) do |form| %> <%= form.inputs do %> <%= form.input :name, :hint => "the name of the event" %> <%= form.input :event_type, :hint => "conference, meeting, training, etc" %> <%= form.input :start_time, :as => :time, :minute_step => 15 %> <%= form.input :start_date, :required => false, :as => :string, :input_html => { :value => @event.start_date.to_s } %> <%= form.input :end_time, :as => :time, :minute_step => 15 %> <%= form.input :end_date, :required => false, :as => :string, :input_html => { :value => @event.end_date.to_s } %> <%= form.input :timezone, :as => :time_zone, :priority_zones => /^(Eastern|Central|Mountain|Pacific) Time/ %> <%= form.input :location, :required => false, :label => 'Location' %> <%= form.input :description, :required => false, :label => 'Description' %> <% unless @event.new_record? %> <%= form.input :notes, :required => false, :label => 'Notes' %> <% end %> <% end %> <%= form.submit %> <% end %> </div> <% content_for :javascript do %> <script type="text/javascript"> $(document).ready(function() { $('#event_event_type').attach(SelectPopper, <%= "#{Event.existing_event_types.to_json}".html_safe %>); $('form.formtastic fieldset ol li.text textarea').attach(TextareaExpander, 40, 300); $('#event_start_date').datepicker(); $('#event_end_date').datepicker(); }); </script> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems