<%=l(:label_settings)%>

<% if authorize_for('projects', 'edit') %> <% 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 %>

<%=l(:label_member_plural)%>

<%= error_messages_for 'member' %> <% for member in @project.members.find(:all, :include => :user) %> <% unless member.new_record? %> <% end %> <% end %>
<%= member.user.display_name %> <% if authorize_for('members', 'edit') %> <%= start_form_tag :controller => 'members', :action => 'edit', :id => member %> <%= submit_tag l(:button_change), :class => "button-small" %> <%= end_form_tag %> <% end %> <%= link_to_if_authorized l(:button_delete), {:controller => 'members', :action => 'destroy', :id => member}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
<% if authorize_for('projects', 'add_member') %>

<%= start_form_tag :controller => 'projects', :action => 'add_member', :id => @project %> <%= submit_tag l(:button_add) %> <%= end_form_tag %> <% end %>

<%=l(:label_version_plural)%>

<% for version in @project.versions %> <% end %>
<%=h version.name %> <%= format_date(version.effective_date) %> <%=h version.description %> <%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %> <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
<% if authorize_for('projects', 'add_version') %>
<%= link_to l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %> <% end %>

<%=l(:label_issue_category_plural)%>

<% for @category in @project.issue_categories %> <% unless @category.new_record? %> <% end %> <% end %>
<%= start_form_tag :controller => 'issue_categories', :action => 'edit', :id => @category %> <%= text_field 'category', 'name', :size => 25 %> <% if authorize_for('issue_categories', 'edit') %> <%= submit_tag l(:button_save), :class => "button-small" %> <%= end_form_tag %> <% end %> <%= link_to_if_authorized l(:button_delete), {:controller => 'issue_categories', :action => 'destroy', :id => @category}, :confirm => l(:text_are_you_sure), :post => true, :class => 'icon icon-del' %>
<% if authorize_for('projects', 'add_issue_category') %>
<%= start_form_tag :action => 'add_issue_category', :id => @project %>
<%= error_messages_for 'issue_category' %> <%= text_field 'issue_category', 'name', :size => 25 %> <%= submit_tag l(:button_create) %> <%= end_form_tag %> <% end %>