添加运营定制功能

dev_partners
jingquan huang 6 years ago
parent ca8387e2e6
commit 5c6b6f4c95

@ -196,6 +196,7 @@ class ManagementsController < ApplicationController
if request.post?
@user.nickname = params[:nickname]
@user.lastname = params[:lastname]
@user.business = params[:business].to_i
@user.firstname = ""
@user.mail = params[:mail].strip == "" ? nil : params[:mail]
@user.phone = params[:phone].strip == "" ? nil : params[:phone]

@ -184,6 +184,13 @@
<% end %>
<div class="cl"></div>
</li>
<li class="clearfix mb10">
<label class="panel-form-label fl mr18">运营人员:</label>
<span class="fl">
<input type="checkbox" <%= @user.business ? "checked" : "" %> name="business" value="<%= @user.business? ? 1 : 0 %>" id="person_9" class="magic-checkbox" style="float:left; margin-top: 8px;">
<label for="person_9"></label>
</span>
</li>
<li class="clearfix mb10 hascontont">
<label class="panel-form-label fl mr18">职业:</label>
<select id="userIdentity" name="identity" nh_required="1" class="fl input-height mr15 select-width">

Loading…
Cancel
Save