Sha256: 0364aa15d5e0bb83c79e6a75713c57c7e355afb257b3327a7ef06911d52483b1
Contents?: true
Size: 1.03 KB
Versions: 8
Compression:
Stored size: 1.03 KB
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 %>] do |f| = render 'validate', {f: f} %table <%- columns.each do |column| -%> <%- if column.field_type.to_s == "text_area" -%> %tr %td{colspan: 2} = f.label :<%= column.name %> %br = f.<%= column.field_type -%> :<%= column.name %> <%- elsif column.field_type.to_s == "check_box" -%> %tr %th{colspan: 2} = f.<%= column.field_type -%> :<%= column.name %> = f.label :<%= column.name %> <%- elsif column.name != "position" -%> %tr %th= f.label :<%= column.name %> %td= f.<%= column.field_type -%> :<%= column.name %> <%- end -%> <%- end -%> .actions = f.submit "Сохранить" = f.submit "Применить"
Version data entries
8 entries across 8 versions & 1 rubygems