summaryrefslogtreecommitdiffstats
path: root/app/views/settings/edit.rhtml
blob: c7b47b6d0c5bc92e0e7798ab6617c974ff2f24df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<h2><%= l(:label_settings) %></h2>

<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>
</div>

<% administration_settings_tabs.each do |tab| %>
    <%= content_tag('div', render(:partial => tab[:partial]), :id => "tab-content-#{tab[:name]}", :class => 'tab-content') %>
<% end %>

<%= tab = params[:tab] ? h(params[:tab]) : administration_settings_tabs.first[:name]
javascript_tag "showTab('#{tab}');" %>

<% html_title(l(:label_settings), l(:label_administration)) -%>