2014-06-12 15:05:39 +08:00
|
|
|
|
<div class="top-content">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="info_font" style="width: 240px; color: #15bccf">高校课程实践社区</td>
|
|
|
|
|
<td style="width: auto; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2014-06-17 15:06:31 +08:00
|
|
|
|
<td style="padding-left: 8px"><a><%= link_to request.host()+"/courses", :controller => 'courses', :action => 'index'%></a></td>
|
|
|
|
|
<td><p class="top-content-list-homework"><%=link_to "主页", home_path %> > <%=link_to l(:label_course_practice), :controller => 'courses', :action => 'index' %> >
|
|
|
|
|
<span><%= link_to(@bid.courses.first.name.to_s, homework_course_path(@bid.courses.first)) if @bid.courses.first%></span> >
|
2014-06-12 15:05:39 +08:00
|
|
|
|
<%=link_to(@bid.name, respond_path(@bid)) %> > <span><%= link_to "创建作业", new_homework_attach_path(@bid)%></span></p></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
2014-06-04 09:11:06 +08:00
|
|
|
|
<p style="font-weight: bold; color: rgb(237,137,36)" xmlns="http://www.w3.org/1999/html"> <%=h l(:label_new_homework)%> </p>
|
2014-05-29 20:02:02 +08:00
|
|
|
|
<div class="box">
|
2014-06-04 09:11:06 +08:00
|
|
|
|
<%= form_for('new_form', :method => :post,
|
2014-05-21 14:10:11 +08:00
|
|
|
|
:url => {:controller => 'homework_attach',
|
|
|
|
|
:action => 'create',
|
|
|
|
|
:user_id => User.current.id,
|
|
|
|
|
:bid_id => @bid
|
|
|
|
|
}) do |f|%>
|
2014-06-11 15:28:13 +08:00
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
|
2014-07-04 14:04:31 +08:00
|
|
|
|
<strong>标 题 <span style="color: red">*</span>:</strong>
|
2014-06-11 15:28:13 +08:00
|
|
|
|
<%= f.text_field "name", :required => true, :size => 60, :style => "width:490px;" %>
|
|
|
|
|
</p>
|
2014-06-18 10:07:19 +08:00
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
|
2014-07-04 14:04:31 +08:00
|
|
|
|
<strong>提交项目 :</strong>
|
2014-06-20 13:52:17 +08:00
|
|
|
|
<%= f.select :project_id, options_for_select(user_projects_option),:name => "project_id", :required => true, :style => "width:490px;"%>
|
2014-06-18 10:07:19 +08:00
|
|
|
|
<%= link_to '创建项目', new_project_path(course: 0, project_type: 0), :target => '_blank' %>
|
|
|
|
|
<p class="font_lighter" style="padding-left:120px;clear:left;">提交项目可以为空</p>
|
|
|
|
|
</p>
|
2014-06-11 15:28:13 +08:00
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
|
2014-07-04 14:04:31 +08:00
|
|
|
|
<strong style="vertical-align: top">描 述 :</strong>
|
2014-06-11 15:28:13 +08:00
|
|
|
|
<span style="margin-left:-10px;padding-right: 20px;">
|
|
|
|
|
<%= f.text_area "description", :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;" %>
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
<p style="padding-left: 60px">
|
|
|
|
|
<fieldset style="text-align: left;">
|
|
|
|
|
<legend>
|
|
|
|
|
<%= l(:label_attachment_plural) %>
|
|
|
|
|
</legend>
|
|
|
|
|
<p style=" padding: 3px 0 3px 0;padding-left: 50px; clear:left;">
|
|
|
|
|
<%= render :partial => 'attachments/form' %>
|
|
|
|
|
</p>
|
|
|
|
|
</fieldset>
|
|
|
|
|
</p>
|
2014-06-10 14:27:55 +08:00
|
|
|
|
|
2014-06-11 15:28:13 +08:00
|
|
|
|
<p style="padding-left: 60px;padding-top: 5px;">
|
2014-05-29 20:02:02 +08:00
|
|
|
|
<span >
|
|
|
|
|
<%= submit_tag t(:label_button_ok), :sta => 0, :class => "enterprise"%>
|
2014-05-21 14:10:11 +08:00
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
<% end %>
|
2014-06-11 15:28:13 +08:00
|
|
|
|
</div>
|