<ul class="tabMenu formTab smallTab">
	<li class="ckblue" ng-click="cancel()"><span class="doBackIcon doBackIconBlue"></span>返回</li>
    <li ng-if="accountFlag=='account'">
    	<span ng-if="id">修改子账号</span>
    	<span ng-if="!id">新建子账号</span>
    </li>
</ul>
<div class="clear"></div>

<div class="formDetailInfo" ng-class="{'notopr':!id}">
    <div class="formDetailItem">
        <div class="iptlabel must">邮箱&nbsp;<help-tip class="help" name="邮箱" style="margin-left: 0px;"></help-tip> :</div>
        <input type="text" class="iptform" ng-model="email" placeholder="请输入邮箱" ng-disabled="id">
        <em class="error" ng-if="tip.email.status">{{tip.email.txt}}</em>
    </div>
    <div class="formDetailItem">
        <div class="iptlabel must">姓名 :</div>
        <input type="text" class="iptform" ng-model="name" placeholder="请输入姓名" ng-disabled="accountFlag=='channel' && id && nameNofix">
        <em class="error" ng-if="tip.name.status">{{tip.name.txt}}</em>
    </div>
    <div class="formDetailItem">
        <div class="iptlabel">备注 :</div>
        <textarea class="iptform" ng-model="remark" style="height: 100px;line-height: 25px;"></textarea>
        <em class="error" ng-if="tip.remark.status">{{tip.remark.txt}}</em>
    </div>
    <div class="authPowerWrap">
    	<div class="powerHeader">
    		<span>角色设置</span>
    	</div>
    	<ul class="roleList">
    		<li ng-show="isSuper && (!parentRole || parentRole < 1)">
    			<div class="radiolabel" ng-click="changeRole(1)">
	                <span class="radio" ng-class="{'active':roleCategory==1}"></span>
	                <em>管理员</em>
	            </div>
	            请谨慎勾选，该种用户将拥有公司下所有应用管理、查看权限，以及产品、成员、渠道管理、推广参数管理权限，且最多可新建3个管理员。
    		</li>
    		<li ng-show="!isAppManage && (!parentRole || parentRole < 2 || roleCategory==2)">
    			<div class="radiolabel" ng-click="changeRole(2)">
	                <span class="radio" ng-class="{'active':roleCategory==2}"></span>
	                <em>子应用管理员</em>
	            </div>
	            您可以为子应用选择该权限，该种用户拥有公司下某些应用的管理、查看权限，以及成员管理权限。
    		</li>
    	</ul>
    	<div class="powerInfoWrap" ng-show="roleCategory>1">
    		<p>产品权限：</p>
    		<div class="powerSelectWrap" ng-show="steps==1">
    			<div class="leftSelectWrap">
    				<div class="powerHeader bR">
    					<div class="left ml10 hand" ng-click="doCheck('app')">
    						<span class="checkbox mr5" ng-class="{'active':isAllCheck}"></span>全选
    					</div>
    					应用
    				</div>
    				<div class="searchWrap">
		                <input type="text" class="searchIpt" ng-model="searchTxt" placeholder="搜索产品">
		            </div>
		            <div class="scrollItem">
		            	<ul class="selInfosWrap w3">
	    					<li ng-repeat="app in authapplist | filter:{'name':searchTxt} track by $index" ng-click="selectApp(app)" ng-class="{'checked checkedText':app.ischeck}" title="{{getTips(app)}}">
	    						<span class="checkbox"></span>
	    						<span class="nopower" ng-if="app.nopower"></span>
	    						{{app.name}}
	    					</li>
	    				</ul>
		            </div>
    			</div>
    			<div class="rightSelectWrap">
    				<div class="powerHeader">已选择应用</div>
    				<ul class="selInfosWrap scrollItem" style="max-height: 350px;">
    					<li ng-repeat="app in authapplist track by $index" ng-click="removeApp(app)" ng-if="app.ischeck" title="{{getTips(app)}}"  ng-class="{'checked checkedText':app.nopower}">
    						<span class="checkbox active"></span>
    						<span class="nopower" ng-if="app.nopower"></span>
    						{{app.name}}
    					</li>
    				</ul>
    			</div>
    		</div>
    	</div>
    </div>
		<div class="formsaveBtnWrap clearfix">
	        <div class="btn6" ng-click="cancel()">取消</div>
	        <div class="btn5" ng-click="save()">
	            <span ng-if="!id">添加</span>
	            <span ng-if="id">保存</span>
	        </div>
	    </div>
</div>
