Sha256: ff1e5c8c13e555d2dbbecf85e4fe6e1d312aab722a57e2ed6632fc49584fdc0b
Contents?: true
Size: 1.25 KB
Versions: 6
Compression:
Stored size: 1.25 KB
Contents
- if model %form{:action => packet.route_to(model_name, model[:id], 'save'), :method => 'post'} - for prop in props %p!= view_attribute(prop, model_name, :label => true, :value => model.attribute_get(prop[:name])) %p %label{:for => "#{model_name}-calendar"} Calendar %br %select{:id => "#{model_name}-calendar", :name => "#{model_name}[orange_calendar_id]"} - for calendar in calendars %option{:value => calendar.id}= calendar.name %p %label{:for => "#{model_name}-starts"} Starts %br %input{:type => 'text', :id => "#{model_name}-starts", :size => 10, :class => 'date', :name => "#{model_name}[starts_date]", :value => model.starts_date} at %input{:type => 'text', :name => "#{model_name}[starts_time]", :size => 8, :value => model.starts_time} %p %label{:for => "#{model_name}-ends"} Ends %br %input{:type => 'text', :id => "#{model_name}-ends", :size => 10, :class => 'date', :name => "#{model_name}[ends_date]", :value => model.ends_date} at %input{:type => 'text', :name => "#{model_name}[ends_time]", :size => 8, :value => model.ends_time} %input{:type => 'submit', :value => 'Save Changes'} - else %p Couldn't find the item you're looking for.
Version data entries
6 entries across 6 versions & 1 rubygems