From a54edd90476c11d8176be99551d440eb54b177a3 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Wed, 29 Oct 2014 14:42:51 +0800 Subject: [PATCH] 111 --- app/views/homework_attach/new.html.erb | 49 +++++++++++++++++++------- 1 file changed, 36 insertions(+), 13 deletions(-) diff --git a/app/views/homework_attach/new.html.erb b/app/views/homework_attach/new.html.erb index e8c820fbd..3cce7bdae 100644 --- a/app/views/homework_attach/new.html.erb +++ b/app/views/homework_attach/new.html.erb @@ -2,19 +2,40 @@ - + - - + +
高校课程实践社区<%= l(:label_user_location) %> : + + <%= l(:label_user_location) %> : + +
<%= link_to request.host()+"/courses", :controller => 'courses', :action => 'index'%>

<%=link_to "主页", home_path %> > <%=link_to l(:label_course_practice), :controller => 'courses', :action => 'index' %> > - <%= link_to(@bid.courses.first.name.to_s, homework_course_path(@bid.courses.first)) if @bid.courses.first%> > - <%=link_to(@bid.name, respond_path(@bid)) %> > <%= link_to "创建作业", new_homework_attach_path(@bid)%>

+ + <%= link_to request.host()+"/courses", :controller => 'courses', :action => 'index'%> + + +

+ <%=link_to "主页", home_path %> > + <%=link_to l(:label_course_practice), :controller => 'courses', :action => 'index' %> > + + <%= link_to(@bid.courses.first.name.to_s, homework_course_path(@bid.courses.first)) if @bid.courses.first%> + > + <%=link_to(@bid.name, respond_path(@bid)) %> > + + <%= link_to "创建作业", new_homework_attach_path(@bid)%> + +

+
-

<%=h l(:label_new_homework)%>

+

+ <%=h l(:label_new_homework)%> +

+
<%= form_for('new_form', :method => :post, :url => {:controller => 'homework_attach', @@ -27,18 +48,20 @@ <%= f.text_field "name", :required => true, :size => 60, :style => "width:490px;", :maxlength => 254 %>

- 提交项目  : + + 提交项目  : + <%= f.select :project_id,options_for_select(user_projects_option), {},{: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;", :maxlength => 65534 %>