- <% unless @user.user_extensions.identity == 2 %>
+
<%= l(:field_occupation) %>
*
- <% if User.current.user_extensions.identity == 3 %>
+ <% if User.current.user_extensions.identity == 3 || User.current.user_extensions.identity == 2 %>
@@ -171,7 +172,7 @@
<% end %>
- <% end %>
+
@@ -590,9 +591,11 @@
$('#name').show()
$('#enterprise').hide()
$('#gender').show()
+ $('#occupation_detail').show()
$('input#province').show()
$('input#occupation_name').show()
$('input#occupation').hide()
+
var technical_titleOptions = new Array(
"<%= l(:label_technicl_title_professor) %>", "<%= l(:label_technicl_title_associate_professor) %>", "<%= l(:label_technicl_title_lecturer) %>", "<%= l(:label_technicl_title_teaching_assistant) %>");
break;
@@ -603,9 +606,11 @@
$('#name').show()
$('#enterprise').hide()
$('#gender').show()
+ $('#occupation_detail').show()
$('input#province').show()
$('input#occupation_name').show()
$('input#occupation').hide()
+
var technical_titleOptions = new Array(
"<%= l(:label_technicl_title_professor) %>", "<%= l(:label_technicl_title_associate_professor) %>", "<%= l(:label_technicl_title_lecturer) %>", "<%= l(:label_technicl_title_teaching_assistant) %>");
@@ -628,6 +633,7 @@
$('#name').show()
$('#enterprise').hide()
$('#gender').show()
+ $('#occupation_detail').show()
$('input#province').hide()
$('input#occupation_name').hide()
$('input#occupation').show()
@@ -642,6 +648,7 @@
$('#name').show()
$('#enterprise').hide()
$('#gender').show()
+ $('#occupation_detail').show()
var technical_titleOptions = new Array(
"<%= l(:label_technicl_title_professor) %>", "<%= l(:label_technicl_title_associate_professor) %>", "<%= l(:label_technicl_title_lecturer) %>", "<%= l(:label_technicl_title_teaching_assistant) %>");
diff --git a/app/views/users/_mail_notifications.html.erb b/app/views/users/_mail_notifications.html.erb
index 47face839..a8d3edc55 100644
--- a/app/views/users/_mail_notifications.html.erb
+++ b/app/views/users/_mail_notifications.html.erb
@@ -8,7 +8,8 @@
) %>
<%= content_tag 'div', :id => 'notified-projects', :style => (@user.mail_notification == 'selected' ? '' : 'display:none;') do %>
- <%= render_project_nested_lists_new(@user.projects) do |project|
+
<%= l(:text_user_mail_option) %>
+ <%= render_project_nested_lists_new(@user.projects) do |project|
content_tag('label',
check_box_tag(
'notified_project_ids[]',
@@ -17,7 +18,7 @@
) + ' ' + h(project.name)
)
end %>
-
<%= l(:text_user_mail_option) %>
+
<% end %>
diff --git a/public/images/jingtanhao.JPG b/public/images/jingtanhao.JPG
new file mode 100644
index 000000000..d806214da
Binary files /dev/null and b/public/images/jingtanhao.JPG differ