Sha256: 3c3f899d90533298ab788b1fcf4ac8d8308b726289b14c036e21ac66e6016103

Contents?: true

Size: 452 Bytes

Versions: 23

Compression:

Stored size: 452 Bytes

Contents

- url = @item.persisted? ? updatefolder_page_path : createfolder_pages_path

=horizontal_simple_form_for @item, url: url do |f|
  = render 'optimacms/admin/shared/form_errors', :object=>@item

  = f.input :parent_id, as: :hidden
  = f.input :is_folder, as: :hidden

  = f.input :title, label: "Title"

  - if @item.parent_id>0
    = f.input :parent_title, disabled: true, label: 'Parent folder'

  = f.button :submit_cancel, 'Save', :cancel=>@url_back

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
optimacms-0.1.55 app/views/optimacms/admin/pages/_form_folder.html.haml
optimacms-0.1.53 app/views/optimacms/admin/pages/_form_folder.html.haml
optimacms-0.1.52 app/views/optimacms/admin/pages/_form_folder.html.haml