2006-07-29 23:54:22 +04:00
|
|
|
<h2><%=l(:label_settings)%></h2>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
2008-03-26 21:49:12 +03:00
|
|
|
<% tabs = project_settings_tabs %>
|
2009-04-19 12:45:00 +04:00
|
|
|
|
|
|
|
<% if tabs.any? %>
|
2008-03-26 21:49:12 +03:00
|
|
|
<% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %>
|
|
|
|
|
2007-01-26 20:59:06 +03:00
|
|
|
<div class="tabs">
|
|
|
|
<ul>
|
2008-03-26 21:49:12 +03:00
|
|
|
<% 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 -%>
|
2007-09-14 15:34:08 +04:00
|
|
|
</ul>
|
2007-01-26 20:59:06 +03:00
|
|
|
</div>
|
|
|
|
|
2008-03-26 21:49:12 +03:00
|
|
|
<% 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 -%>
|
2009-04-19 12:45:00 +04:00
|
|
|
<% else %>
|
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
|
|
<% end %>
|
2007-12-07 21:42:40 +03:00
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title(l(:label_settings)) -%>
|