2007-01-21 14:50:22 +03:00
|
|
|
<h2><%= l(:label_settings) %></h2>
|
|
|
|
|
2008-03-26 21:49:12 +03:00
|
|
|
<% selected_tab = params[:tab] ? params[:tab].to_s : administration_settings_tabs.first[:name] %>
|
|
|
|
|
2008-01-06 23:24:26 +03:00
|
|
|
<div class="tabs">
|
2008-03-26 21:49:12 +03:00
|
|
|
<ul>
|
|
|
|
<% administration_settings_tabs.each do |tab| -%>
|
|
|
|
<li><%= link_to l(tab[:label]), { :tab => tab[:name] },
|
|
|
|
:id => "tab-#{tab[:name]}",
|
|
|
|
:class => (tab[:name] != selected_tab ? nil : 'selected'),
|
|
|
|
:onclick => "showTab('#{tab[:name]}'); this.blur(); return false;" %></li>
|
|
|
|
<% end -%>
|
|
|
|
</ul>
|
2007-01-21 14:50:22 +03:00
|
|
|
</div>
|
2007-04-24 17:57:27 +04:00
|
|
|
|
2008-03-26 21:49:12 +03:00
|
|
|
<% administration_settings_tabs.each do |tab| -%>
|
|
|
|
<%= content_tag('div', render(:partial => tab[:partial]),
|
|
|
|
:id => "tab-content-#{tab[:name]}",
|
|
|
|
:style => (tab[:name] != selected_tab ? 'display:none' : nil),
|
|
|
|
:class => 'tab-content') %>
|
|
|
|
<% end -%>
|
2008-01-06 23:24:26 +03:00
|
|
|
|
|
|
|
<% html_title(l(:label_settings), l(:label_administration)) -%>
|