Sha256: c31017a95994cca014d26927973ebdf5aff99771b6ad747e19e9a7bf7cbf3f08

Contents?: true

Size: 406 Bytes

Versions: 38

Compression:

Stored size: 406 Bytes

Contents

- if model
  %form{:action => 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]))
    %input{:type => 'submit', :value => 'Save Changes'}
  = form_link('Publish', packet.route_to(model_name, model[:id], 'publish'))
- else
  %p Couldn't find the item you're looking for.

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
orange-more-0.7.2 lib/orange-more/blog/views/blog_posts/edit.haml
orange-more-0.7.1 lib/orange-more/blog/views/blog_posts/edit.haml
orange-more-0.6.5 lib/orange-more/blog/views/blog_posts/edit.haml
orange-more-0.6.4 lib/orange-more/blog/views/blog_posts/edit.haml
orange-more-0.6.3 lib/orange-more/blog/views/blog_posts/edit.haml
orange-more-0.6.2 lib/orange-more/blog/views/blog_posts/edit.haml
orange-more-0.6.0 lib/orange-more/blog/views/blog_posts/edit.haml
orange-more-0.5.8 lib/orange-more/blog/views/blog_posts/edit.haml
orange-more-0.5.7 lib/orange-more/blog/views/blog_posts/edit.haml
orange-0.5.5 lib/orange-more/blog/views/blog_posts/edit.haml
orange-0.5.4 lib/orange-more/blog/views/blog_posts/edit.haml
orange-0.5.3 lib/orange-more/blog/views/blog_posts/edit.haml
orange-0.5.2 lib/orange-more/blog/views/blog_posts/edit.haml
orange-0.5.1 lib/orange-more/blog/views/blog_posts/edit.haml
orange-0.4.0 lib/orange-more/blog/views/blog_posts/edit.haml
orange-0.3.9 lib/orange-more/blog/views/blog_posts/edit.haml
orange-0.3.8 lib/orange-more/blog/views/blog_posts/edit.haml
orange-0.3.7 lib/orange-more/blog/views/blog_posts/edit.haml
orange-0.3.6 lib/orange-more/blog/views/blog_posts/edit.haml
orange-0.3.5 lib/orange-more/blog/views/blog_posts/edit.haml