Sha256: b34ae093a0f71f9de30e31bbec85b2b041200244c0513eb38d5fd774cbfb5ef1

Contents?: true

Size: 904 Bytes

Versions: 5

Compression:

Stored size: 904 Bytes

Contents

<ul class="lang-tabs">
  <% Freeberry::SystemSettings.keys.each_with_index do |section, i|  %>
    <%= content_tag(:li, :class => (i == 0 ? "active" : "not-active")) do %>
      <span><%= link_to_function t("manage.settings.#{section}"), 'TabPanel.click(event)', :class=>"tab", :id=>"s#{section}" %></span>
    <% end %>
  <% end %>
</ul>

<% Freeberry::SystemSettings.keys.each_with_index do |section, i|  %>
  <%= content_tag(:div, :class => "add-white-bl", :id => "s#{section}_block", :style => (i == 0 ? nil: "display:none;")) do %>
	  <div class="bot-bg">
    	<div class="inputs-bl">
    	  <%= form.fields_for section do |s| %>
    	    <% Freeberry::SystemSettings[section].each do |attribute, value| %>
      	    <%= s.label attribute %>
      	    <%= s.text_field attribute, :class=>"text", :value => value %>
    	    <% end %>
    	  <% end %>
      </div>
    </div>
  <% end %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
freeberry-0.3.0 lib/generators/freeberry/base/templates/views/manage/settings/_form.html.erb
freeberry-0.2.9 lib/generators/freeberry/base/templates/views/manage/settings/_form.html.erb
freeberry-0.2.7 lib/generators/freeberry/base/templates/views/manage/settings/_form.html.erb
freeberry-0.2.6 lib/generators/freeberry/base/templates/views/manage/settings/_form.html.erb
freeberry-0.2.5 lib/generators/freeberry/base/templates/views/manage/settings/_form.html.erb