Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
evergreen / app / views / admin / pages / _form.html.erb
Size: Mime:
<% action = resource.new_record? ? :create : :update %>
<%= semantic_form_for [:admin, resource], url: admin_evergreen_path(action, resource), remote: true,
  html: { class: 'previewable' } do |f| %>
  <%= render 'admin/toolbar/templates', :f => f %>

  <%= f.inputs 'Details' do %>
    <%= f.input :title %>
    <%= f.input :navigation_label, hint: "If blank, we'll use the title." %>
    <%= f.input :using_custom_path, label: "Use a custom path?", input_html: { class: 'using-custom-path' } %>
    <%= f.input :path, input_html: { class: 'custom-path' } %>

    <%= f.input :parent_id,
                :collection => nested_set_options(resource_class, resource) { |i| "#{'-' * i.level} #{i.title}" },
                :as => :select %>
    <%= f.input :hidden, :label => 'Hide this page from menus' %>
  <% end %>

  <% if resource.respond_to?(:blocks) %>
    <%= render 'admin/blocks/form', f: f %>
  <% else %>
    <%= f.inputs 'Body' do %>
      <%= f.input :body %>
    <% end %>
  <% end %>

  <%= f.inputs 'Meta' do %>
    <%= f.input :meta_description, :input_html => {
          :class => 'plaintext',
          :rows => 10
        } %>
  <% end %>
  <%= tag(:input, :type => "hidden", :name => request_forgery_protection_token.to_s, :value => form_authenticity_token) %>
<% end %>