-
<%= f.text_field :lastname, :required => true %>
<%= l(:field_lastname_eg) %>
@@ -82,7 +72,8 @@
- <%= l(:label_company_name)%><%= text_field_tag :enterprise_name, @user.firstname %>
+
+ <%= l(:label_company_name)%><%= text_field_tag :enterprise_name, @user.firstname %>
@@ -95,10 +86,10 @@
<% else %>
<% if @user.user_extensions.gender == 0 %>
-
- <%= l(:label_gender) %>
- <%= select_tag 'gender', "".html_safe, :class => 'gender' %>
-
+
+ <%= l(:label_gender) %>
+ <%= select_tag 'gender', "".html_safe, :class => 'gender' %>
+
<% else %>
<%= l(:label_gender) %>
@@ -107,12 +98,11 @@
<% end %>
<% end %>
-
-
<% if User.current.user_extensions.school.nil? %>
- <%= l(:field_occupation) %> *
+ <%= l(:field_occupation) %>
+ *
@@ -126,8 +116,7 @@
-
-
学校列表
+
<%= l(:lable_school_list)%>
@@ -234,39 +223,40 @@
<% unless @user.user_extensions.identity == 2 %>
-
- <%= l(:label_identity) %>
-
-
-
-
-
-
- <% unless User.current.user_extensions.student_id.nil? %>
- <%= text_field_tag :no, User.current.user_extensions.student_id, :placeholder => "请输入学号" %>
- <% else %>
- <%= text_field_tag :no, nil, :placeholder => "请输入学号" %>
- <% end %>
-
-
- <% else %>
-
-
-
-
+
+ <%= l(:label_identity) %>
+
+
+
+
+
+
+ <% unless User.current.user_extensions.student_id.nil? %>
+ <%= text_field_tag :no, User.current.user_extensions.student_id, :placeholder => "请输入学号" %>
+ <% else %>
+ <%= text_field_tag :no, nil, :placeholder => "请输入学号" %>
+ <% end %>
+
+
+
+ <% else %>
+
+
+
+
+
<% end %>
diff --git a/app/views/welcome/course.html.erb b/app/views/welcome/course.html.erb
index 51f082ae6..d28c89aa8 100644
--- a/app/views/welcome/course.html.erb
+++ b/app/views/welcome/course.html.erb
@@ -39,19 +39,20 @@
- <% if @school_id.nil? and (User.current.user_extensions.nil? || User.current.user_extensions.school.nil?) %>
+
+ <% if @school_id.nil? and (User.current.user_extensions.nil? || User.current.user_extensions.school.nil?) %>
<% else %>
- <% if @school_id == "0" %>
- <% else %>
- <% if @school_id.nil? %>
- <%= link_to School.find(User.current.user_extensions.school.id).name, options={:action => 'course', :school_id => User.current.user_extensions.school.id}, html_options={:class => 'font_welcome_school', :method => 'get'} %>
-
- <% else %>
- <%= link_to School.find(@school_id).name, options={:action => 'course', :school_id => @school_id}, html_options={:class => 'font_welcome_school', :method => 'get'} %>
-
- <% end %>
+ <% if @school_id == "0" %>
+ <% else %>
+ <% if @school_id.nil? %>
+ <%= link_to School.find(User.current.user_extensions.school.id).name, options={:action => 'course', :school_id => User.current.user_extensions.school.id}, html_options={:class => 'font_welcome_school', :method => 'get'} %>
+
+ <% else %>
+ <%= link_to School.find(@school_id).name, options={:action => 'course', :school_id => @school_id}, html_options={:class => 'font_welcome_school', :method => 'get'} %>
+
<% end %>
<% end %>
+ <% end %>
<% unless @course_page.nil? %>
<%= @course_page.title %>
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index 7ddff7d04..c4fe1d833 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -2145,3 +2145,4 @@ zh:
lable_sure_exit_project: 是否确认退出该项目
lable_input_class: 在此输入课时
lable_input_class_vilidate: 学时只能为整数
+ lable_school_list: 学校列表