From 3c9605c5519078d0ee18e82b76ba62a8571d7a81 Mon Sep 17 00:00:00 2001 From: baiyu Date: Wed, 6 Nov 2013 11:06:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=87=8C=E4=B8=A2=E5=A4=B1=E7=9A=84=E2=80=9C?= =?UTF-8?q?=E5=BC=80=E8=AF=BE=E6=97=B6=E9=97=B4=E2=80=9D=E2=80=9C=E7=BB=93?= =?UTF-8?q?=E8=AF=BE=E6=97=B6=E9=97=B4=E2=80=9D=E2=80=9C=E8=AF=BE=E6=97=B6?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/projects/_course_form.html.erb | 38 +++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/app/views/projects/_course_form.html.erb b/app/views/projects/_course_form.html.erb index e57371f33..46f3b487c 100644 --- a/app/views/projects/_course_form.html.erb +++ b/app/views/projects/_course_form.html.erb @@ -15,8 +15,44 @@ <%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info).html_safe %> <% end %>

--> - + + <%= f.fields_for @course do |m| %> + <% unless @course.nil?%> +

<%= l(:label_setup_time) %> *   + <%= text_field_tag :setup_time, @course.setup_time, :placeholder => "在此选择开课日期" %> + <%= calendar_for('setup_time')%> +

+ <% else %> +

<%= l(:label_setup_time) %> *   + <%= text_field_tag :setup_time, nil, :placeholder => "在此选择开课日期" %> + <%= calendar_for('setup_time')%> +

+ <% end %> + + <% unless @course.nil?%> +

<%= l(:label_endup_time) %> *   + <%= text_field_tag :endup_time, @course.endup_time, :placeholder => "在此选择结课日期" %> + <%= calendar_for('endup_time')%> +

+ <% else %> +

<%= l(:label_endup_time) %> *   + <%= text_field_tag :endup_time, nil, :placeholder => "在此选择结课日期" %> + <%= calendar_for('endup_time')%> +

+ <% end %> + + <% unless @course.nil?%> +

<%= l(:label_class_period) %> *   + <%= text_field_tag :class_period, @course.class_period, :placeholder => "在此输入课时" %>  <%= l(:label_class_hour)%> +

+ <% else %> +

<%= l(:label_class_period) %> *   + <%= text_field_tag :class_period, nil, :placeholder => "在此输入课时" %><%= l(:label_class_hour)%> +

+ <% end %> + +

<% unless @course.nil? %>