Sha256: 435cd3aea0dcde485525d9f5ca71dd04403d807f4ec1135f7980c4aa9ef7f330

Contents?: true

Size: 524 Bytes

Versions: 8

Compression:

Stored size: 524 Bytes

Contents

<% if Setting.any? %>

<% 

  @groups = {}
  
  @settings.each {|s|
    @groups[s.group] ||= []
    @groups[s.group] << s
  }

  nil
 %>

<%= tabs do |t| %>

    <% @groups.each do |g,settings| %>
      <%= t.pane t(g, :scope => "fullstack.admin.groups", :default => g.to_s.humanize) do %>
      <% settings.each do |stg| %>
            <p><%= link_to t(stg.key, :scope => "helpers.label", :default => stg.key.to_s.humanize), [:edit, :admin, stg] %></p>
        <% end %>
      <% end %>
    <% end %>

<% end %>

<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fullstack-cms-0.1.14 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.1.13 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.1.12 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.1.11 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.1.9 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.1.8 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.1.7 app/views/admin/settings/_collection.html.erb
fullstack-cms-0.1.6 app/views/admin/settings/_collection.html.erb