Sha256: 06f5cbcadf2633c5d9217f2a5bb64cf05ad40bd4bb8512b056b370434fbf609c
Contents?: true
Size: 971 Bytes
Versions: 4
Compression:
Stored size: 971 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| = render 'validate', { f: f } %table <%- columns.each do |column| -%> <%- if column.field_type.to_s == 'text_area' -%> = f.inline_text_area :<%= column.name %> <%- elsif column.field_type.to_s == "check_box" -%> = f.inline_check_box :<%= column.name %> <%- elsif column.name != 'position' -%> = f.inline_text_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.inline_submit
Version data entries
4 entries across 4 versions & 1 rubygems