2007-01-21 14:50:22 +03:00
|
|
|
<h2><%= l(:label_settings) %></h2>
|
|
|
|
|
2008-01-06 23:24:26 +03:00
|
|
|
<div class="tabs">
|
|
|
|
<ul>
|
|
|
|
<% administration_settings_tabs.each do |tab| -%>
|
|
|
|
<li><%= link_to l(tab[:label]), {}, :id => "tab-#{tab[:name]}", :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-01-06 23:24:26 +03:00
|
|
|
<% administration_settings_tabs.each do |tab| %>
|
|
|
|
<%= content_tag('div', render(:partial => tab[:partial]), :id => "tab-content-#{tab[:name]}", :class => 'tab-content') %>
|
2007-11-04 13:43:39 +03:00
|
|
|
<% end %>
|
2007-12-07 21:42:40 +03:00
|
|
|
|
2008-01-06 23:24:26 +03:00
|
|
|
<%= tab = params[:tab] ? h(params[:tab]) : administration_settings_tabs.first[:name]
|
|
|
|
javascript_tag "showTab('#{tab}');" %>
|
|
|
|
|
|
|
|
<% html_title(l(:label_settings), l(:label_administration)) -%>
|