Sha256: 9bbf63c518e56ea79be9188a9bce111956997200bdfae3db648be65905c8d225

Contents?: true

Size: 605 Bytes

Versions: 5

Compression:

Stored size: 605 Bytes

Contents

= redde_page do |f|
  - form_column_names.each do |column|
    - if column == 'ancestry'
      = f.redde_select :parent_id, ancestry_tree(model_name.roots.order(:position), title_symbol_for(instance_variable_get("@#{record}"))), include_blank: 'Корневая'
    - else
      = f.redde_field column.to_sym

  -# %div= render 'redditor/admin/page', { f: f } if @article.methods.include?(:page)

  -# проверить и написать правильное условие
  -# f.object.class.reflect_on_association(:seo)
  -# = render 'admin/seos/block', { f: f } if f.object.methods.include?(:seo)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
redde-0.4.4 app/views/admin/base/edit.html.haml
redde-0.4.3 app/views/admin/base/edit.html.haml
redde-0.4.2 app/views/admin/base/edit.html.haml
redde-0.4.1 app/views/admin/base/edit.html.haml
redde-0.4.0 app/views/admin/base/edit.html.haml