Sha256: 3db42695f2e166d39aa5845b495d0ad3bfe5d04f5deb6c9e9f664046b79a7fd7
Contents?: true
Size: 988 Bytes
Versions: 5
Compression:
Stored size: 988 Bytes
Contents
<%= bootstrap_form_for @page, url: url, layout: :horizontal, html: { multipart: true } do |f| %> <%= f.select :prototype_id, @prototype_select, {:include_blank => true}, { :onchange => "onchange_render(this.value);", } %> <%= f.select :template_id, @template_select, {:include_blank => true} %> <!-- '无' 必须存在,要个 select2 allowClear 搭配使用才能生效 --> <% if @page.parent_id %> <%= f.select :parent_id, [['无', ''], [@page.parent.title, @page.parent_id]] %> <% else %> <%= f.select :parent_id, [['无', '']] %> <% end %> <%= f.text_field :title %> <%= f.text_field :en_name %> <%= f.fields_for :properties do |property_form| %> <%= render partial: 'fields', locals: {f: property_form} %> <%= property_form.hidden_field :field_id %> <% end %> <%= f.form_group label: { text: '内容' } do %> <%= f.kindeditor :content, :owner => @page %> <% end %> <%= f.form_group do %> <%= f.primary %> <% end %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems