Sha256: 2fdf3b9e3443ec20d5e2cef065f0f2c21291f32e9080e9501855c8e8eb7007d6

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

<%= form.error_notification %>
<div class='inputs'>
  <fieldset>

  <%= form.input :name %>

  <%= form.simple_fields_for :settings do | setting | %>
    <% case setting.object.key %>
    <% when 'sort' %>
      <%= setting.input :value, :label => setting.object.key, :as => :select, :collection => [['Published Date', 'published_at desc'], ['Title', 'title asc']] %>
    <% when 'per_page' %>
      <%= setting.input :value, :label => 'Per page' unless setting.object.value == Node::PerPageOff %>
    <% when 'can_delete' %>
      <!-- <%= setting.input :value %> -->
    <% else %>
      <%= setting.input :value, :label => setting.object.key.titleize %>
    <% end %>
  <% end %>

  <%= form.input :parent_id, :as => :select, :collection => nested_set_options(Node, @node) { |i, level | "#{'--' * level} #{i.name}" }, :include_blank => true, :hint => 'Only change this if you wish to move a category' %>
</fieldset>
</div>

<div class='actions'>
  <%= form.button :submit, :class => 'primary', :disable_with => 'Please wait...' %>
  <%= link_to 'Back', [:qwerty_admin, :nodes], :class => 'btn' %>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
qwerty-0.0.7.pre app/views/qwerty_admin/nodes/_form.html.erb
qwerty-0.0.5.pre app/views/qwerty_admin/nodes/_form.html.erb
qwerty-0.0.4.pre app/views/qwerty_admin/nodes/_form.html.erb
qwerty-0.0.3.pre app/views/qwerty_admin/nodes/_form.html.erb
qwerty-0.0.1.pre app/views/qwerty_admin/nodes/_form.html.erb