member update modified and h2 tag in orbit bar

This commit is contained in:
Harry Bomrah 2014-10-22 14:51:14 +08:00
parent 384cc4d6f4
commit 0cff91594c
2 changed files with 8 additions and 5 deletions

View File

@ -496,11 +496,14 @@ class Admin::MembersController < OrbitMemberController
@user = @member.user
@user.update(user_params)
else
@user = User.new(user_params)
if user_params["user_name"] != ""
@user = User.new(user_params) rescue nil
@user.member_profile = @member
@user.save
end
end
if @member.update_attributes(member_profile_params) and @user.save
if @member.update_attributes(member_profile_params)
if params[:edit_type]!="edit_privilege" and (params[:member_profile].nil? or params[:member_profile][:role_status_ids].nil?)
@member.update_attributes(role_status_ids: [])
end

View File

@ -36,9 +36,9 @@
<label for="open-orbit-nav">
<i class="icons-list-2"></i>
</label>
<h1 class="orbit-bar-title">
<h2 class="orbit-bar-title">
<a href="/">Orbit</a>
</h1>
</h2>
<ul class="orbit-bar-menu">
<li>
<span class="orbit-bar-logo">