登录名能修改

This commit is contained in:
huang 2016-12-24 11:16:33 +08:00
parent 117de45d5c
commit 87c134c007
3 changed files with 3 additions and 3 deletions

View File

@ -169,7 +169,7 @@ class MyController < ApplicationController
@user.firstname = ""
@user.pref.attributes = params[:pref]
@user.pref[:no_self_notified] = (params[:no_self_notified] == '1')
#@user.login = params[:login]
@user.login = params[:login]
unless @user.user_extensions.nil?
# 如果用户是从业者将单位名称保存至学校id字段
if @user.user_extensions.identity == 3

View File

@ -1926,7 +1926,7 @@ module ApplicationHelper
objects = objects.map {|o| o.is_a?(String) ? instance_variable_get("@#{o}") : o}.compact
errors = objects.map {|o| o.errors.full_messages}.flatten
if errors.any?
html << "<div id='errorExplanation'><ul>\n"
html << "<div id='errorExplanation'><ul class='pt10'>\n"
errors.each do |error|
###by xianbo
if(error!=l(:label_repository_path_not_null))

View File

@ -40,7 +40,7 @@
<li>&nbsp;&nbsp;</li>
</ul>
<ul class="setting_right ">
<li><%= f.text_field :login,:no_label=>true, :required => true,:style => "color:grey", :nh_required => "1",:disabled => 'disabled', :name => "login",:class => "w210"%></li>
<li><%= f.text_field :login,:no_label=>true, :required => true, :style => "color:grey", :nh_required => "1", :name => "login", :class => "w210" %></li>
<% if @force %>
<li><%= f.text_field :mail,:no_label=>true, :required => true,:nh_required => "1",:class=>"w210",:disabled=>'disabled'%></li>
<% else %>