Sha256: 87fc34035b3a150080bee4815626eb06fc0d4a05d63ef24db5d2536e4140bef7
Contents?: true
Size: 855 Bytes
Versions: 34
Compression:
Stored size: 855 Bytes
Contents
<%= alchemy_form_for([:admin, @page]) do |f| %> <% if @page.parent_id || @page.layoutpage %> <%= f.hidden_field(:parent_id) %> <% else %> <% @page.parent = @current_language.root_page %> <%= f.input :parent_id, collection: @current_language.pages.contentpages, label_method: :name, value_method: :id, input_html: { class: "alchemy_selectbox" } %> <% end %> <%= f.hidden_field(:language_id) %> <%= f.hidden_field(:layoutpage) %> <%= f.input :page_layout, collection: @page_layouts, label: Alchemy.t(:page_type), include_blank: @page_layouts.length == 1 ? nil : Alchemy.t('Please choose'), required: true, selected: @page_layouts.length == 1 ? @page_layouts.first : nil, input_html: {class: 'alchemy_selectbox'} %> <%= f.input :name %> <%= f.submit Alchemy.t(:create) %> <% end %>
Version data entries
34 entries across 34 versions & 1 rubygems