From 09f6adbd8d4d6d811363e903cb69728cb8a20a96 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Tue, 21 Oct 2014 14:00:45 +0800
Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=87=BB=E4=BD=9C?=
=?UTF-8?q?=E4=B8=9A=E5=B7=A6=E8=BE=B9=E5=B7=A5=E4=BD=9C=E5=8D=95=E4=BD=8D?=
=?UTF-8?q?=E4=BC=9A=E8=B7=B3=E5=85=A5=E6=AD=A3=E5=BC=8F=E7=89=88=E8=AF=A5?=
=?UTF-8?q?=E5=AD=A6=E6=A0=A1=E8=AF=BE=E7=A8=8B=E5=88=97=E8=A1=A8=E7=9A=84?=
=?UTF-8?q?BUG=202.=E6=A0=BC=E5=BC=8F=E5=8C=96=E9=A1=B5=E9=9D=A2=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/bids/_homework_form.html.erb | 20 ++--
app/views/courses/_homework_form.html.erb | 35 ++++---
app/views/layouts/base_courses.html.erb | 119 +++++++++++++++-------
app/views/layouts/base_homework.html.erb | 17 +++-
4 files changed, 133 insertions(+), 58 deletions(-)
diff --git a/app/views/bids/_homework_form.html.erb b/app/views/bids/_homework_form.html.erb
index 2b7578a96..29033ec59 100644
--- a/app/views/bids/_homework_form.html.erb
+++ b/app/views/bids/_homework_form.html.erb
@@ -23,12 +23,16 @@
<%= error_messages_for 'bid' %>
<%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;", :maxlength => Bid::NAME_LENGTH_LIMIT, :onblur => "regexName();" %>
-
-
+
+
+
-<%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;", :maxlength => Bid::DESCRIPTION_LENGTH_LIMIT %>
-<%= f.text_field(:deadline, :required => true, :size => 60, :style => "width:150px;", :readonly => true, :onchange => "regexDeadLine();") %>
+
+ <%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;", :maxlength => Bid::DESCRIPTION_LENGTH_LIMIT %>
+
+
+ <%= f.text_field(:deadline, :required => true, :size => 60, :style => "width:150px;", :readonly => true, :onchange => "regexDeadLine();") %>
<%= calendar_for('bid_deadline')%>
@@ -43,6 +47,10 @@
<%= hidden_field_tag 'course_id', @course.id %>
\ No newline at end of file
diff --git a/app/views/courses/_homework_form.html.erb b/app/views/courses/_homework_form.html.erb
index 646deb16e..7d1171116 100644
--- a/app/views/courses/_homework_form.html.erb
+++ b/app/views/courses/_homework_form.html.erb
@@ -22,28 +22,39 @@
<%= error_messages_for 'bid' %>
- <%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;", :maxlength => Bid::NAME_LENGTH_LIMIT, :onblur => "regexName();" %>
+ <%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;",
+ :maxlength => Bid::NAME_LENGTH_LIMIT,
+ :onblur => "regexName();" %>
-
+
+
+
-<%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;", :maxlength => Bid::DESCRIPTION_LENGTH_LIMIT %>
-
+
+ <%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;",
+ :maxlength => Bid::DESCRIPTION_LENGTH_LIMIT %>
+
<% time = (Time.now + 3600 * 24).strftime('%Y-%m-%d') %>
<%= f.text_field(:deadline, :required => true, :size => 60, :style => "width:150px;",:value => "#{time}", :onchange => "regexDeadLine();", :readonly => true) %>
<%= calendar_for('bid_deadline')%>
-<%= f.select :is_evaluation, is_evaluation_option %>
+
+ <%= f.select :is_evaluation, is_evaluation_option %>
-<%= f.select :proportion, proportion_option %>
+
+ <%= f.select :proportion, proportion_option %>
-<%= hidden_field_tag 'course_id', @course.id %>
+
+ <%= hidden_field_tag 'course_id', @course.id %>
-