-
+
<% if options[:length] %>
<%= link_to_short_attachment attachment, :class => 'icon icon-attachment', :download => true,:length => options[:length] -%>
<% else %>
diff --git a/app/views/homework_attach/_homework_member.html.erb b/app/views/homework_attach/_homework_member.html.erb
index 9dfe170bd..f85333d69 100644
--- a/app/views/homework_attach/_homework_member.html.erb
+++ b/app/views/homework_attach/_homework_member.html.erb
@@ -4,8 +4,12 @@
+ <%= label_tag "principal_search", l(:label_principal_search) %>
+ <%= text_field_tag 'principal_search', nil %>
+ <%= submit_tag l(:button_add), :id => 'member-add-submit' %>
+ <%=raw l(:label_edit_homework)%>
- 标 题 *:
- <%= f.text_field :name, :required => true, :name => "homework_name", :size => 60, :style => "width:490px;", :maxlength => 254%>
-
- 提交项目 :
- <% if @homework.project.nil? %>
- <%= f.select :project_id, options_for_select(user_projects_option),:name => "project_id", :required => true%>
- <% else %>
- <%= f.select :project_id, options_for_select(user_projects_option,@homework.project.id),:name => "project_id", :required => true%>
- <% end %>
-
- <%= link_to '创建项目', new_project_path(course: 0, project_type: 0), :target => '_blank' %>
- 提交项目可以为空
- 描 述 :
-
- <%= f.text_area :description, :rows => 8, :name => "homework_description", :class => 'wiki-edit', :maxlength => 3000, :style => "font-size:small;width:490px;margin-left:10px;" %>
-
-
-
+
+ <%= f.text_field :name, :required => true, :name => "homework_name", :class => "w430 bo", :maxlength => 254, :placeholder => "作品名称"%>
+
+
+ <% if @homework.project.nil? %>
+ <%= f.select :project_id, options_for_select(user_projects_option),{}, {:name => "project_id", :required => true,:class => "w350 bo"}%>
+ <% else %>
+ <%= f.select :project_id, options_for_select(user_projects_option,@homework.project.id),{},{:name => "project_id", :required => true, :class => "w350 bo"}%>
+ <% end %>
+
+
+ <%= f.text_area :description, :rows => 8, :name => "homework_description", :class => "w620",
+ :maxlength => 3000, :placeholder => "最多3000个汉字" %>
- <%= render :partial => 'attachments/form' %>
+
+
+ <%#= render :partial => 'attachments/form' %>
+
+ <% options = {:author => true, :deletable => attach_delete(@homework)} %>
+ <%= render :partial => 'attachments/links',
+ :locals => {:attachments => @homework.attachments, :options => options} %>
+
+ <%= render :partial => 'attachments/form' %>
+
-
- <%= submit_tag t(:label_button_ok), :sta => 0, :class => "enterprise"%>
-
-
+
+
+
+
+ <%= l(:label_button_ok) %>
+
+ 取 消
+
@@ -86,25 +72,10 @@
<%= l(:label_button_ok) %>
取 消
-
-
-
-
-
@@ -19,9 +23,15 @@
<% hoemwork_users.each do |user| %>
<%= l(:label_user) %>
- <%= l(:label_role_plural) %>
+
+ <%= l(:label_user) %>
+
+
+ <%= l(:label_role_plural) %>
+
<% if homework.user != user %>
-
<% end %>
@@ -31,14 +41,18 @@
<%= link_to_user user %>
- 参与人员
- <%= link_to l(:button_delete),destory_homework_users_homework_attach_path(:user_id=>user),:remote => true, :method => :post %>
+
+ <%= link_to_user user %>
+
+
+ 参与人员
+
+
+ <%= link_to l(:button_delete),destory_homework_users_homework_attach_path(:user_id=>user),:remote => true, :method => :post, :confirm => l(:label_delete_confirm) %>
+
<% end %>
+
-