|
|
@ -42,11 +42,16 @@
|
|
|
|
<div class="box" id="content1">
|
|
|
|
<div class="box" id="content1">
|
|
|
|
<%= form_for(@homework) do |f|%>
|
|
|
|
<%= form_for(@homework) do |f|%>
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
|
|
|
|
<strong>标 题:</strong>
|
|
|
|
<strong>标 题:</strong>
|
|
|
|
<%= f.text_field :name, :required => true, :name => "homework_name", :size => 60, :style => "width:490px;"%>
|
|
|
|
<%= f.text_field :name, :required => true, :name => "homework_name", :size => 60, :style => "width:490px;"%>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
|
|
|
|
<strong style="vertical-align: top">描 述:</strong>
|
|
|
|
<strong>关联项目:</strong>
|
|
|
|
|
|
|
|
<%= f.select :project_id, options_for_select(user_projects_option),:name => "project_id", :required => true%>
|
|
|
|
|
|
|
|
<%= link_to '创建项目', new_project_path(course: 0, project_type: 0), :target => '_blank' %>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
|
|
|
|
|
|
|
|
<strong style="vertical-align: top">描 述:</strong>
|
|
|
|
<span style="margin-left:-10px;padding-right: 20px;">
|
|
|
|
<span style="margin-left:-10px;padding-right: 20px;">
|
|
|
|
<%= f.text_area :description, :rows => 8, :name => "homework_description", :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %>
|
|
|
|
<%= f.text_area :description, :rows => 8, :name => "homework_description", :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|