<%= error_messages_for 'project' %> <%= labelled_form_for @project do |f| %> 保存 <% end %> <% if User.current.member_of?(@project) && Member.where(:user_id => User.current.id, :project_id => @project.id).first.roles.to_s.include?("Manager") %>
<%= link_to(l(:button_delete_project), { :controller => 'projects', :action => 'archive', :id => @project, :status => params[:status], :type =>"project" }, :data => {:confirm => l(:text_are_you_sure)}, :method => :post) unless @project.archived? %> <%#=link_to "删除该课程", course_path(@course), :method => :delete, :confirm=>"确认要删除该课程吗?" %> (友情提示:删除该项目后如果您想恢复该项目,请联系系统管理员!)
<% end %>