<% 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_version) %> |
<%= l(:field_effective_date) %> |
<%= l(:field_description) %> |
<%= l(:label_wiki_page) unless @project.wiki.nil? %> |
|
|
<% for version in @project.versions.sort %>
<%=h version.name %> |
<%= format_date(version.effective_date) %> |
<%=h version.description %> |
<%= link_to(version.wiki_page_title, :controller => 'wiki', :page => Wiki.titleize(version.wiki_page_title)) unless version.wiki_page_title.blank? || @project.wiki.nil? %> |
<%= 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), :method => :post, :class => 'icon icon-del' %> |
<% end; reset_cycle %>
<%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %>
<%= l(:label_issue_category) %> |
<%= l(:field_assigned_to) %> |
|
|
<% for category in @project.issue_categories %>
<% unless category.new_record? %>
<%=h(category.name) %> |
<%=h(category.assigned_to.name) if category.assigned_to %> |
<%= link_to_if_authorized l(:button_edit), { :controller => 'issue_categories', :action => 'edit', :id => category }, :class => 'icon icon-edit' %> |
<%= 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' %> |
<% end %>
<% end %>
<%= link_to_if_authorized l(:label_issue_category_new), :controller => 'projects', :action => 'add_issue_category', :id => @project %>