diff --git a/app/views/homework_attach/edit.html.erb b/app/views/homework_attach/edit.html.erb index 985ccfdfc..9a33ea992 100644 --- a/app/views/homework_attach/edit.html.erb +++ b/app/views/homework_attach/edit.html.erb @@ -42,11 +42,11 @@
<%= form_for(@homework) do |f|%>

- 标      题:  + 标      题 *  <%= f.text_field :name, :required => true, :name => "homework_name", :size => 60, :style => "width:490px;"%>

- 提交项目: + 提交项目  : <% if @homework.project.nil? %> <%= f.select :project_id, options_for_select(user_projects_option),:name => "project_id", :required => true%> <% else %> @@ -57,7 +57,7 @@

提交项目可以为空

- 描      述:  + 描      述  :  <%= f.text_area :description, :rows => 8, :name => "homework_description", :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %> diff --git a/app/views/homework_attach/new.html.erb b/app/views/homework_attach/new.html.erb index 9c594835a..9f0b69f58 100644 --- a/app/views/homework_attach/new.html.erb +++ b/app/views/homework_attach/new.html.erb @@ -23,17 +23,17 @@ :bid_id => @bid }) do |f|%>

- 标      题: + 标      题 * <%= f.text_field "name", :required => true, :size => 60, :style => "width:490px;" %>

- 提交项目: + 提交项目  : <%= f.select :project_id, options_for_select(user_projects_option),:name => "project_id", :required => true, :style => "width:490px;"%> <%= link_to '创建项目', new_project_path(course: 0, project_type: 0), :target => '_blank' %>

提交项目可以为空

- 描      述: + 描      述  : <%= f.text_area "description", :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %>