From 466922d13b8611e154142a5009729e38a3f9b7ce Mon Sep 17 00:00:00 2001
From: huangjingquan
- #
<%=l(:label_register)%> <%=link_to l(:label_loginkk), signin_url if Setting.openid? %>
+
+
+
+
+
+<%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %>
<%= labelled_form_for @user, :url => register_path do |f| %>
<%= error_messages_for 'user' %>
@@ -20,9 +211,49 @@
<%="#{l(:label_mail_attention)} "%>
<%= f.select :language, lang_options_for_select %>
- +<%= l(:label_identity) %><%= select_tag 'identity', "".html_safe %>
+<%= l(:label_gender) %><%= select_tag 'gender', "".html_safe %>
+<%= l(:label_location) %> +
<% if Setting.openid? %> diff --git a/app/views/bids/_bid_homework_show.html.erb b/app/views/bids/_bid_homework_show.html.erb new file mode 100644 index 000000000..72a88cb32 --- /dev/null +++ b/app/views/bids/_bid_homework_show.html.erb @@ -0,0 +1,54 @@ + + <% bids.each do |bid|%> + +<%= link_to(image_tag(url_to_avatar(bid.author), :class => 'avatar'), user_path(bid.author), :class => "avatar") %> | +
+
|
+
<%=l(:label_user_response)%> | +
+ + <% if @bid.reward_type ==3 %> + | <%=l(:label_student_response)%> | + <% else %> +<%=l(:label_user_response)%> | + <% end %> + +
<%=link_to journal.user, user_path(journal.user)%> <%= l(:label_respond_requirement) %> | + <% if @bid.reward_type == 3 %> +<%=link_to journal.user, user_path(journal.user)%> <%= l(:label_question_requirement) %> | + <% else %> +<%=link_to journal.user, user_path(journal.user)%> <%= l(:label_respond_requirement) %> | + <% end %>||||||||
<%= textilizable journal.notes%> |
<%= f.text_area 'message', :rows => 3, :cols => 65, :value => "#{l(:label_my_respond)}", :onfocus => "clearInfo('bid_message_message', '#{l(:label_my_respond)}')", :onblur => "showInfo('bid_message_message', '#{l(:label_my_respond)}')", :style => "resize: none;", :class => 'noline'%> | + <% if @bid.reward_type ==3 %> +<%= f.text_area 'message', :rows => 3, :cols => 65, :placeholder => l(:label_my_question), :style => "resize: none;", :class => 'noline'%> | + <% else %> +<%= f.text_area 'message', :rows => 3, :cols => 65, :placeholder => l(:label_my_respond), :style => "resize: none;", :class => 'noline'%> | + <% end %>
<%= submit_tag l(:button_leave_meassge), :name => nil , :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'"%> - <%= submit_tag l(:button_clear), :name => nil, :onclick => "clearMessage('bid_message_message');", :type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'" %> | + <%= submit_tag l(:button_clear_requirement), :name => nil, :onclick => "clearMessage('bid_message_message');", :type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -31px'" %>
<%= l(:label_bidding_project) %>(<%= @bidding_project.count%>) | + <% if User.current.logged? %> +
+
+ <%= toggle_link l(:button_bidding), 'put-bid-form' %>
+ |
+ <% end %>
+
+
|
+
<%= l(:label_homework_project) %>(<%= @bidding_project.count%>) | + <% if User.current.logged? %> +
+
+ <%= toggle_link l(:button_bidding_homework), 'put-bid-form' %>
+ |
+ <% end %>
+
+
|
+
<%= l(:label_bidding_project) %>(<%= @bidding_project.count%>) | <% if User.current.logged? %> @@ -49,3 +103,4 @@
<%= link_to(@bid.author.name, user_path(@bid.author))%>锛<%= @bid.name %> |
+ <%= link_to(@bid.author.firstname+@bid.author.lastname, user_path(@bid.author))%>锛<%= @bid.name %> |
@@ -49,7 +49,7 @@
<%= select_tag 'bid', options_for_select(@option), :name => 'bid', :class => 'grayline' %> |
<%= f.text_area :bid_message, :id => "bid_message", :required => true, :rows => 4, :cols => 40,
- :onfocus => "clearInfo('bid_message','#{l(:label_bid_reason)}')", :onblur => "showInfo('bid_message','#{l(:label_bid_reason)}')",
- :value => "#{l(:label_bid_reason)}", :style => "resize: none;", :class => 'noline'%> |
+ <%= f.text_area :bid_message, :id => "bid_message", :required => true, :rows => 4, :cols => 40, :placeholder => l(:label_bid_reason_homework), :style => "resize: none;", :class => 'noline'%> |
<%= f.text_area :bid_message, :id => "bid_message", :required => true, :rows => 4, :cols => 40, :placeholder => l(:label_bid_reason), :style => "resize: none;", :class => 'noline'%> |
+ <%= submit_tag l(:button_add), :name => nil , :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'", :onmouseover => "this.style.backgroundPosition = 'left -30px'"%>
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "cancel();", :type => 'button', :class => "bid_btn", :onmouseout => "this.style.backgroundPosition = 'left top'",
diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb
index 8eb713696..3485f0c08 100644
--- a/app/views/files/index.html.erb
+++ b/app/views/files/index.html.erb
@@ -18,7 +18,7 @@
<%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc') %>
<%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc') %>
- | 鎻忚堪 |
+ <%= sort_header_tag('description', :caption => l(:field_description)) %> |
| |
涓昏鑰佸笀锛 | <%= @course.teacher.firstname+@course.teacher.lastname %> |
涓昏鑰佸笀锛 | <%= @course.teacher.name %> | -鏁欏笀鍗曚綅锛 | PDL(鏈畾) | +
<%= h @bid.name %> | +浣滀笟 |
<%= watcher_link(@bid, User.current) %> | +<%= h @bid.name %> |
<%= l(:label_teacher) %> : <%= link_to(@user, user_path(@user))%> | +<%= l(:label_teacher) %> : <%= link_to(@user.firstname+@user.lastname, user_path(@user))%> | ||||||||||
<%= l(:label_course_homework) %> : <%= link_to(@bid.courses.first.name, project_path(@bid.courses.first))%> | diff --git a/app/views/layouts/base_users.html.erb b/app/views/layouts/base_users.html.erb index 8641e3138..043baec3e 100644 --- a/app/views/layouts/base_users.html.erb +++ b/app/views/layouts/base_users.html.erb @@ -33,7 +33,14 @@
<%= f.text_field :lastname, :required => true %> + + + <% unless @user.user_extensions.nil? %> + <% if @user.user_extensions.gender == 0 %> ++ <%= l(:label_gender) %><%= select_tag 'gender', "".html_safe ,:class =>'gender' %> + + + <% else %> ++ <%= l(:label_gender) %><%= select_tag 'gender', "".html_safe %> + + + <% end %> + <% else %> +<%= l(:label_gender) %><%= select_tag 'gender', "".html_safe %> + + <% end %> + + +<%= f.text_field :mail, :required => true %> + + <%else%><%= l(:field_occupation)%><%= text_field_tag "occupation"%> - + + <%end%> + + + + + + +<%= l(:label_location) %> + + + <% if Setting.openid? %><%= f.text_field :identity_url %> diff --git a/app/views/projects/_course_form.html.erb b/app/views/projects/_course_form.html.erb index 91700c1ef..5a346f735 100644 --- a/app/views/projects/_course_form.html.erb +++ b/app/views/projects/_course_form.html.erb @@ -10,13 +10,14 @@ <% unless @project.identifier_frozen? %> <%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info).html_safe %> <% end %> -<% if @project.new_record? %> + + <%= f.fields_for @course do |m| %><%= m.text_field :state, :required => true, :size => 60, :style => "width:488px;margin-left: 10px;" %> <%= l(:text_command) %> -<% end %> + <% end %> diff --git a/app/views/projects/_homework_form.html.erb b/app/views/projects/_homework_form.html.erb index 46be3ba9c..e4a471367 100644 --- a/app/views/projects/_homework_form.html.erb +++ b/app/views/projects/_homework_form.html.erb @@ -22,19 +22,19 @@ <%= error_messages_for 'bid' %> -<%= l(:label_bids_form_new_description) %> -<%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;", :maxlength => Bid::NAME_LENGTH_LIMIT, :placeholder => "#{l(:label_requirement_name)}" %> +<%= l(:label_homeworks_form_new_description) %> +<%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;", :maxlength => Bid::NAME_LENGTH_LIMIT %> -<%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;", :maxlength => Bid::DESCRIPTION_LENGTH_LIMIT, :placeholder => "#{l(:label_requirement_description)}" %> +<%= f.text_area :description, :rows => 8, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;", :maxlength => Bid::DESCRIPTION_LENGTH_LIMIT %> -<%= f.text_field :deadline, :required => true, :size => 60, :style => "width:150px;", :placeholder => "#{l(:label_deadline)}" %><%= calendar_for('bid_deadline')%> + <%= f.text_field :deadline, :required => true, :size => 60, :style => "width:150px;" %><%= calendar_for('bid_deadline')%> -<%= f.select :homework_type, homework_type_option%> + <%= f.select :homework_type, homework_type_option %> -<%= hidden_field_tag 'course_id', @project.id%> + <%= hidden_field_tag 'course_id', @project.id %> |
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 86cf3b772..e4f9941f2 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1411,6 +1411,17 @@ en:
label_in_bids: in the call锛
label_in_users: in the user锛
label_user_create_project: has created
+
+#added by bai
+ label_identity: Identity
+ label_teacher: Teacher
+ label_student: Student
+ label_other: Other
+ label_gender: Gender
+ label_gender_male: male
+ label_gender_female: female
+ label_location: Location
+#end
label_course: Course
label_course_new: New course
label_public_info: If you don't choose public, only the project's members can see the project.
@@ -1420,3 +1431,4 @@ en:
label_course_homework_list: Homework List
label_course_homework_new: new homework
label_course_data: Data
+
diff --git a/config/locales/zh.yml b/config/locales/zh.yml
index 36f7e558b..161b0c5d9 100644
--- a/config/locales/zh.yml
+++ b/config/locales/zh.yml
@@ -586,7 +586,7 @@ zh:
label_news_added: 鏂伴椈宸叉坊鍔
label_settings: 閰嶇疆
label_overview: 璇剧▼鍔ㄦ
- label_question_student: 闂鍜ㄨ #huang
+ label_question_student: 瀛︾敓鎻愰棶 #huang
label_homework_commit: 鎻愪氦浣滀笟 #huang
label_course_file: 璧勬枡涓嬭浇
label_course_news: 璇剧▼閫氱煡
@@ -894,6 +894,7 @@ zh:
button_apply: 鏌ヨ
button_clear: 鍙栨秷鏌ヨ
+ button_clear_requirement: 鍙栨秷
button_lock: 閿佸畾
button_unlock: 瑙i攣
button_download: 涓嬭浇
@@ -1237,6 +1238,8 @@ zh:
#added by liuping
button_unfollow: 鍙栨秷鍏虫敞
button_follow: 鍏虫敞
+ label_followers: 鍏虫敞
+ label_responses: 鐣欒█
label_delete_confirm: 纭鍒犻櫎锛
label_more_tags: 鏇村
label_tags_bid: 闇姹傚悕绉
@@ -1253,8 +1256,11 @@ zh:
field_add: 娣诲姞浜 %{time} 涔嬪墠
button_more: 鏇村
label_user_response: 鐢ㄦ埛鍙嶉
+ label_student_response: 瀛︾敓鍙嶉
label_bidding_project: 鍙備笌椤圭洰
+ label_homework_project: 宸叉彁浜や綔涓 #huang
button_bidding: 鎴戣鍙傚姞
+ button_bidding_homework: 鎻愪氦浣滀笟 #huang
field_homework_type: 浣滀笟绫诲瀷
label_homework_respond: 浣滀笟鎯呭喌
@@ -1273,11 +1279,21 @@ zh:
one: 椤圭洰
other: 椤圭洰
#end
+ label_x_homework_project: #modify by huang
+ zero: 宸叉彁浜ょ殑浣滀笟
+ one: 宸叉彁浜ょ殑浣滀笟
+ other: 宸叉彁浜ょ殑uzoye
+ #end
label_x_responses: #modify by men
zero: 鐣欒█
one: 鐣欒█
other: 鐣欒█
#end
+ label_x_responses: #modify by huang
+ zero: 瀛︾敓鎻愰棶
+ one: 瀛︾敓鎻愰棶
+ other: 瀛︾敓鎻愰棶
+ #end
label_x_followers: #modify by men
zero: 鍏虫敞
one: 鍏虫敞
@@ -1288,7 +1304,9 @@ zh:
label_investment_budget: 鎶曡祫棰勭畻锛
label_investment_time_limit: 鎶曡祫鏃堕檺锛
label_my_respond: 鎴戣鍙嶉锛
+ label_my_question: 鏈夌枒闂鍦ㄦ澶勬彁鍑猴紒
label_respond_requirement: 瀵归渶姹傝繘琛屼簡鍙嶉
+ label_question_requirement: 瀵逛綔涓氭彁鍑轰簡闂锛
label_deadline: 鎶曡祫鏃堕檺yyyy-mm-dd
label_requirement_name: 涓轰綘鐨勯渶姹傝捣涓悕瀛梸~
label_requirement_description: 鍐呭锛氬浣犵殑闇姹傝繘琛屾弿杩
@@ -1302,6 +1320,7 @@ zh:
label_praise: 璧
label_cancel_praise: 鍙栨秷璧
label_bid_reason: 璇疯緭鍏ュ弬涓庣悊鐢
+ label_bid_reason_homework: 璇疯緭鍏ヤ綔涓氭彁浜よ鏄庯紒
label_create_new_projects: 鍒涘缓椤圭洰
label_call_for_bids: 鍙戝竷闇姹
label_create_course: 鍒涘缓璇剧▼
@@ -1321,8 +1340,11 @@ zh:
label_my: 鎴
label_i: 鎴
label_join_bidding: 鍙備笌浜嗗簲鏍
+ label_jion_bidding_homework: 宸叉彁浜わ紒
label_bidding_user: 搴旀爣浜猴細
+ label_bidding_user_homework: 浣滀笟鎻愪氦鑰
label_bidding_reason: 搴旀爣瀹h█锛
+ label_bidding_reason_homewrok: 浣滀笟鎻愪氦璇存槑
label_username: 鐢ㄦ埛鍚嶏細
label_password: 瀵嗙爜锛
label_about_requirement: 瀵归渶姹傦細
@@ -1382,7 +1404,8 @@ zh:
label_girl: 濂
field_gender: 鎬у埆
field_birthday: 鐢熸棩
- field_brief_introduction: 涓汉绠浠
+ field_brief_introduction: 涓汉绠浠
+ field_location: 鐜颁綇鍧
field_occupation: 宸ヤ綔鍗曚綅
field_work_experience: 宸ヤ綔缁忛獙(骞)
field_zip_code: 閭紪
@@ -1413,6 +1436,7 @@ zh:
label_bids_reward_what: 杈撳叆濂栧姳鍐呭
label_call_bonus: 濂栭噾
label_bids_form_new_description: 鍙戝竷涓涓渶姹傦紝涓娆$珵璧涙垨鑰呬竴涓绋嬬殑浣滀笟
+ label_homeworks_form_new_description: 鍙戝竷涓涓綔涓氾紝浣滀笟鎻愪氦鏂瑰紡鍙互鏄檮浠舵垨鑰呴」鐩舰寮忥紝鍦ㄤ綔涓氱被鍨嬮噷闈㈣缃
label_bids_new_money: 杈撳叆濂栧姳閲戦锛屽 500,2.5绛
label_bids_new_credit: 杈撳叆璇ヤ綔涓氬搴旇绋嬬殑瀛﹀垎锛屽 3,2.5绛
label_bids_new_content: 杈撳叆濂栧姳鍐呭锛屽 濂栭」锛岀墿鍝佺瓑
@@ -1450,15 +1474,19 @@ zh:
button_projects_feedback_respond: 鍥炲
label_projects_feedback_respond_content: 璇疯緭鍏ュ洖澶嶅唴瀹
label_user_create_project: 鍒涘缓浜
-
#added by bai
label_identity: 韬唤
- label_teacher: 鏁欏笀
+ label_teacher: 鏁 甯
label_student: 瀛︾敓
label_other: 鍏朵粬
-
-#end
-
+ label_gender: 鎬у埆
+ label_gender_male: 鐢
+ label_gender_female: 濂
+ label_location: 鍦板尯
+ label_brief_introduction: 淇敼鎴戠殑鐘舵
+ label_my_brief_introduction: 浠婂ぉ鐨勫績鎯呭浣曪紵鐣欎笅浣犵殑鑴氬嵃鍚
+ #end
+
label_course: 璇剧▼
label_course_new: 鏂板缓璇剧▼
label_public_info: 鑻ヤ笉鍏紑锛屼粎椤圭洰鎴愬憳鍙璇ラ」鐩
@@ -1468,4 +1496,4 @@ zh:
label_course_new_homework: 鏂板缓浣滀笟
label_course_homework_list: 浣滀笟鍒楄〃
label_course_homework_new: 鍙戝竷浣滀笟
- label_course_data: 璧勬枡
+ label_course_data: 璧勬枡
\ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index f29b98df0..8b3da6bc8 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -465,5 +465,5 @@ RedmineApp::Application.routes.draw do
match 'parise_tread/tread_plus',:to => 'parise_tread#tread_plus',:as=>"tread"
match 'tags/delete',:to=>'tags#delete'
-
+ match 'words/add_brief_introdution', :controller => 'words', :action => 'add_brief_introdution'
end
diff --git a/public/images/sidebar/male.png b/public/images/sidebar/male.png
index f432062afbc883dec36636f25c48b4c8847d3732..294e8d38d6165b372cd82c9157cfaab26fee2ae7 100644
GIT binary patch
literal 14370
zcmV+-INisIP)||||||||||