2006-07-29 23:54:22 +04:00
|
|
|
<h2><%=l(:label_settings)%></h2>
|
2006-07-29 13:32:58 +04:00
|
|
|
|
2007-01-26 20:59:06 +03:00
|
|
|
<div class="tabs">
|
|
|
|
<ul>
|
|
|
|
<li><%= link_to l(:label_information_plural), {}, :id=> "tab-info", :onclick => "showTab('info'); this.blur(); return false;" %></li>
|
|
|
|
<li><%= link_to l(:label_member_plural), {}, :id=> "tab-members", :onclick => "showTab('members'); this.blur(); return false;" %></li>
|
|
|
|
<li><%= link_to l(:label_version_plural), {}, :id=> "tab-versions", :onclick => "showTab('versions'); this.blur(); return false;" %></li>
|
|
|
|
<li><%= link_to l(:label_issue_category_plural), {}, :id=> "tab-categories", :onclick => "showTab('categories'); this.blur(); return false;" %></li>
|
2007-05-13 21:09:56 +04:00
|
|
|
<li><%= link_to l(:label_board_plural), {}, :id=> "tab-boards", :onclick => "showTab('boards'); this.blur(); return false;" %></li>
|
2007-01-26 20:59:06 +03:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="tab-content-info" class="tab-content">
|
2007-03-12 20:59:02 +03:00
|
|
|
<% if authorize_for('projects', 'edit') %>
|
2006-11-12 21:50:30 +03:00
|
|
|
<% labelled_tabular_form_for :project, @project, :url => { :action => "edit", :id => @project } do |f| %>
|
|
|
|
<%= render :partial => 'form', :locals => { :f => f } %>
|
|
|
|
<%= submit_tag l(:button_save) %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2007-01-26 20:59:06 +03:00
|
|
|
</div>
|
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<div id="tab-content-members" class="tab-content" style="display:none;">
|
2007-05-05 19:21:18 +04:00
|
|
|
<%= render :partial => 'members' %>
|
2007-01-26 20:59:06 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="tab-content-versions" class="tab-content" style="display:none;">
|
2007-01-26 21:27:10 +03:00
|
|
|
<table class="list">
|
2007-05-05 19:35:28 +04:00
|
|
|
<thead><th><%= l(:label_version) %></th><th><%= l(:field_effective_date) %></th><th><%= l(:field_description) %></th><th style="width:15%"></th><th style="width:15%"></th></thead>
|
2007-03-12 20:59:02 +03:00
|
|
|
<tbody>
|
|
|
|
<% for version in @project.versions %>
|
|
|
|
<tr class="<%= cycle 'odd', 'even' %>">
|
|
|
|
<td><%=h version.name %></td>
|
|
|
|
<td align="center"><%= format_date(version.effective_date) %></td>
|
2007-01-26 21:27:10 +03:00
|
|
|
<td><%=h version.description %></td>
|
2007-05-05 19:21:18 +04:00
|
|
|
<td align="center"><small><%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %></small></td>
|
|
|
|
<td align="center"><small><%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %></small></td>
|
2007-03-12 20:59:02 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
2007-01-26 21:27:10 +03:00
|
|
|
<% end; reset_cycle %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2007-05-05 19:35:28 +04:00
|
|
|
|
|
|
|
<p><%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
</div>
|
2007-01-26 20:59:06 +03:00
|
|
|
|
|
|
|
<div id="tab-content-categories" class="tab-content" style="display:none;">
|
2007-01-26 21:27:10 +03:00
|
|
|
<table class="list">
|
2007-05-05 19:35:28 +04:00
|
|
|
<thead><th><%= l(:label_issue_category) %></th><th style="width:15%"></th></thead>
|
2007-03-12 20:59:02 +03:00
|
|
|
<tbody>
|
|
|
|
<% for @category in @project.issue_categories %>
|
|
|
|
<% unless @category.new_record? %>
|
|
|
|
<tr class="<%= cycle 'odd', 'even' %>">
|
|
|
|
<td>
|
|
|
|
<% form_tag({:controller => 'issue_categories', :action => 'edit', :id => @category}) do %>
|
|
|
|
<%= text_field 'category', 'name', :size => 25 %>
|
|
|
|
<% if authorize_for('issue_categories', 'edit') %>
|
|
|
|
<%= submit_tag l(:button_save), :class => "button-small" %>
|
|
|
|
<% end %>
|
2007-01-26 22:56:25 +03:00
|
|
|
<% end %>
|
2007-03-12 20:59:02 +03:00
|
|
|
</td>
|
2007-01-26 21:27:10 +03:00
|
|
|
<td align="center">
|
2007-05-05 19:21:18 +04:00
|
|
|
<small><%= link_to_if_authorized l(:button_delete), {:controller => 'issue_categories', :action => 'destroy', :id => @category}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %></small>
|
2007-03-12 20:59:02 +03:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2007-01-26 21:27:10 +03:00
|
|
|
</tbody>
|
2006-11-12 21:50:30 +03:00
|
|
|
</table>
|
2007-05-05 19:35:28 +04:00
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<% if authorize_for('projects', 'add_issue_category') %>
|
2007-01-26 22:56:25 +03:00
|
|
|
<% form_tag({:action => 'add_issue_category', :tab => 'categories', :id => @project}) do %>
|
2007-05-05 19:35:28 +04:00
|
|
|
<p><label for="issue_category_name"><%=l(:label_issue_category_new)%></label><br />
|
2007-03-12 20:59:02 +03:00
|
|
|
<%= error_messages_for 'issue_category' %>
|
2006-11-12 21:50:30 +03:00
|
|
|
<%= text_field 'issue_category', 'name', :size => 25 %>
|
2007-05-05 19:35:28 +04:00
|
|
|
<%= submit_tag l(:button_add) %></p>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2007-01-26 20:59:06 +03:00
|
|
|
|
2007-05-13 21:09:56 +04:00
|
|
|
<div id="tab-content-boards" class="tab-content" style="display:none;">
|
|
|
|
<%= render :partial => 'boards' %>
|
|
|
|
</div>
|
|
|
|
|
2007-01-26 20:59:06 +03:00
|
|
|
<%= tab = params[:tab] ? h(params[:tab]) : 'info'
|
|
|
|
javascript_tag "showTab('#{tab}');" %>
|