From 08f1453dbde5cefb48da6250092847cabf0d3f46 Mon Sep 17 00:00:00 2001 From: xianbo Date: Thu, 31 Oct 2013 16:44:05 +0800 Subject: [PATCH] modify some show in create course and project --- app/views/layouts/base_homework.html.erb | 6 ++++-- app/views/projects/_course_form.html.erb | 22 +++++++++------------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb index 7baaafaf5..0f447d831 100644 --- a/app/views/layouts/base_homework.html.erb +++ b/app/views/layouts/base_homework.html.erb @@ -35,13 +35,15 @@ - - + diff --git a/app/views/projects/_course_form.html.erb b/app/views/projects/_course_form.html.erb index 0ed34e84c..e57371f33 100644 --- a/app/views/projects/_course_form.html.erb +++ b/app/views/projects/_course_form.html.erb @@ -10,21 +10,15 @@ <% end %>

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

-

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

- <%= f.fields_for @course do |m| %> - - -

<%= m.text_field :password, :required => true, :size => 60, :style => "width:488px;margin-left: 10px;" %>

- <%= l(:text_command) %> - - -

课程名: + <%= link_to(@bid.courses.first.name, project_path(@bid.courses.first)) %>
作业名:<%= h @bid.name %> + <%= h @bid.name %> +
+ <%= f.fields_for @course do |m| %> + +

<% unless @course.nil? %> <% if @course.time == 2008 %>

@@ -227,10 +221,12 @@ <% end %> <% end %>
<%= l(:label_term) %> *  

- - - -<% end %> + + +

<%= m.text_field :password, :required => true, :size => 60, :style => "width:488px;margin-left: 10px;" %>

+ <%= l(:text_command) %> + <% end %> +

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

<%= f.check_box :is_public, :style => "margin-left:10px;" %>

<%= f.text_field :project_type, :value => 1 %>