Sha256: 99b4cd348e0adac9226e80cdade4ecc3fffa108b8d29151a868964068f80a85a

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

- if model
  - if resource.options[:sitemappable, false] 
    = orange[:sitemap, true].sitemap_links(packet, {:slug_me => orange[:sitemap, true].slug_for(model, props)})
  %form{:action => packet.route_to(model_name, model[:id], 'save'), :method => 'post', :"accept-charset" => "UTF-8"}
    - for prop in props
      %p!= view_attribute(prop, model_name, :label => true, :value => model.attribute_get(prop[:name]), :model => model)
    %input{:type => 'submit', :value => 'Save Changes'}
- else
  %p Couldn't find the item you're looking for.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
orange-core-0.7.0 lib/orange-core/views/default_resource/edit.haml