Sha256: 30c8e435e8afc9ec0f3b3cc599b8c0465830e082f47bae0d930b3d97b369d1b7

Contents?: true

Size: 751 Bytes

Versions: 45

Compression:

Stored size: 751 Bytes

Contents

- content_for :page_header do
  %h1
    - if @<%= resource_name %>.new_record?
      Добавить #{taccusative(:<%= resource_name %>)}
    - else
      Редактировать #{taccusative(:<%= resource_name %>)}
  %p= link_to 'Назад', [:admin, :<%= plural_resource_name %>]

= form_for [:admin, @<%= resource_name %>], builder: ReddeFormBuilder do |f|
  = f.error_messages
  %table
    <%- columns.each do |column| -%>
    <%- if column.name != 'position' -%>
    = f.redde_field :<%= column.name %>
    <%- end -%>
    <%- end -%>
  %div= render 'redditor/admin/page', { f: f } if @<%= resource_name %>.methods.include?(:page)
  = render 'admin/seos/block', { f: f } if @<%= resource_name %>.methods.include?(:seo)
  = f.redde_submits

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
redde-0.4.4 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.4.3 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.4.2 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.4.1 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.4.0 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.39 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.38 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.37 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.36 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.35 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.34 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.33 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.32 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.31 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.30 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.29 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.28 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.27 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.26 lib/generators/redde/scaffold/templates/edit.html.haml
redde-0.3.25 lib/generators/redde/scaffold/templates/edit.html.haml