Sha256: 768dbfbaf2bf17b976ac6345ad8ee5dcb9915e941616e034ff003101bb5fddf3

Contents?: true

Size: 775 Bytes

Versions: 1

Compression:

Stored size: 775 Bytes

Contents

- area_class 'editable-title'
- title "Edit: %s" % [ item.to_s ]
- options = { :item => item }

!= extends :'base/edit', options

- content_for! :body do
  != partial item, :crumbs, :item => item

  != partial item, :errors, :errors => item.errors

  %form{:action => action, :method => 'post' }
    .split-250-side.meta
      .left
        != partial item, :form, options

        %p.submit
          %span.right
            - if item.try(:deletable?)
              %a{:href => item.path(:delete)} Delete this
              != "  |  "
            - if item.try(:renderable?)
              %a{:href => item.path, :target => 'preview'} View this

          %button{:type => 'submit'}
            %span Save

      .right
        != partial item, :meta_form, options

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aura-0.0.1.pre10 app/views/page/edit.haml