diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb
index 769214d65..cf39898fe 100644
--- a/app/controllers/account_controller.rb
+++ b/app/controllers/account_controller.rb
@@ -111,8 +111,7 @@ class AccountController < ApplicationController
user_params = params[:user] || {}
@user = User.new
@user.safe_attributes = user_params
- #这里判断
- if params[:identity] == "2"
+ if params[:identity] == "2" # 2 企业
@user.firstname = params[:enterprise_name]
@user.lastname = l(:field_enterprise)
end
@@ -132,16 +131,6 @@ class AccountController < ApplicationController
@user.login = params[:user][:login]
unless user_params[:identity_url].present? && user_params[:password].blank? && user_params[:password_confirmation].blank?
@user.password, @user.password_confirmation = user_params[:password], user_params[:password_confirmation]
- # system "htpasswd -mb "+@root_path+"user.passwd "+params[:user][:login]+" "+user_params[:password]
- # system "echo -e '\n"+params[:user][:login]+"-write:"+
- # " "+params[:user][:login]+"' >> "+@root_path+"group.passwd"
- # system "mkdir "+@root_path+"htdocs/"+params[:user][:login]
-#
- # system "echo -e 'Allow from all \n Order Deny,Allow \n "+
- # "
<%= f.text_field :login, :size => 25, :required => true %> - <%= l(:label_max_number) %>
+<%= f.text_field :login, :size => 25, :required => true %> + <%= l(:label_max_number) %>
<%= f.password_field :password, :size => 25, :required => true %> <%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>
@@ -294,7 +294,7 @@<%= f.text_field :mail, :required => true %>
+<%= f.text_field :mail, :required => true %>
<%="#{l(:label_mail_attention)} "%>
<%= f.select :language, lang_options_for_select , :required => true %>
@@ -368,3 +368,36 @@ + \ No newline at end of file diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb index 58f684009..7158037eb 100644 --- a/app/views/my/account.html.erb +++ b/app/views/my/account.html.erb @@ -1,604 +1,556 @@ - - - - - -- <%= custom_field_tag_with_label :user, value %> -
- <% end %> - <%= call_hook(:view_my_account, :user => @user, :form => f) %> - - -- -
diff --git a/app/views/school/index.html.erb b/app/views/school/index.html.erb index 06b294f89..755bd3151 100644 --- a/app/views/school/index.html.erb +++ b/app/views/school/index.html.erb @@ -4,12 +4,17 @@ $(document).ready(function() { $("#province").html(""); + + + $.ajax({ type :"POST", url :'/school/get_province', - data :'text', - success: function(data){ - $("#province").append(data); + data: "send", + success: function(data, textStatus){ + + $("#province").append(data.text); + $("#schoollist").html(data.text_s); } }) diff --git a/app/views/users/_mail_notifications.html.erb b/app/views/users/_mail_notifications.html.erb index ee6ccb00b..47face839 100644 --- a/app/views/users/_mail_notifications.html.erb +++ b/app/views/users/_mail_notifications.html.erb @@ -1,5 +1,5 @@
-<%= label_tag "user_mail_notification", l(:description_user_mail_notification), :class => "hidden-for-sighted" %> +<%= label_tag "user_mail_notification", l(:description_user_mail_notification), :class => "hidden-for-sighted_bak" %> <%= select_tag( 'user[mail_notification]', options_for_select( diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index dd912cfe6..8168060e5 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -244,7 +244,7 @@