profileUpdate.vm
2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
$page.setTitle("个人信息")
$application.setCode("home")
$control.setTemplate("home:header")
$control.setTemplate("home:nav")
<div class="xn-breadcrumb width auto clearfix" >
<ul class="breadcrumb">
<li><a href="index.htm">首页</a> </li>
<li class="active">个人信息</li>
</ul>
</div>
<div class="xn-main auto width clearfix" ng-controller="UserInformationCtrl">
<form class="form-horizontal xn-form" role="form" enctype="multipart/form-data" xn-form-validate="vm.validateOptions" novalidate name="validateForm" >
<dl class="dl-horizontal col-sm-offset-3 xn-create" >
<dt class="col-md-2">
<dt>用户头像:</dt>
<dd>
<div class="up-img">
<input type="file" id="imgFile" name="imgFile" ng-click="showPicture()" width="100" height="100" contentEditable="false" accept="textml" style="display:none" />
<img class="view-img imgFile" id="spanImage" alt="请选择图片" onclick="imgFile.click()" width="100" height="120" ng-src="{{user.avatar}}"/>
</div>
</dd>
<dt>用户姓名:</dt>
<dd>
{{user.name}}
</dd>
<dt>用户账号:</dt>
<dd>
{{user.account}}
</dd>
<dt>邮箱:</dt>
<dd>
{{user.email}}
</dd>
<dt>手机号码:</dt>
<dd>
<input class="form-control xn-input-sm" type="text" name="mobilePhone" ng-model="user.mobilePhone" placeholder="电话号码" ng-pattern="/^[0-9\-()]*$/">
</dd>
<dt>昵称:</dt>
<dd>
<input class="form-control xn-input-sm " type="text" name="nickname" ng-model="user.nickName" placeholder="昵称" >
</dd>
<dt ng-if="user.sourceType == 'EMPLOYEE'">绑定员工:</dt>
<dd ng-if="user.sourceType == 'EMPLOYEE'"><div data-user-id={{user.id}} xn-user-card>{{user.name}}<br/><span class="xn-text-green">{{user.nickName}}</span></div></dd>
<div class="form-group col-sm-10 clearfix">
<div class="form-group" ng-show="validateForm.$errors.length > 0">
<div class="col-sm-12">
<div class="alert alert-danger"><i class="glyphicon glyphicon-remove-sign mr_5" ng-click="closeAlert(validateForm.$errors.length)"></i>{{validateForm.$errors[0]}}</div>
</div>
</div>
</div>
<button class="btn btn-success col-md-2 col-md-offset-2" xn-form-submit="doSave()" data-toggle="modal" data-target="#myModal">保存</button>
<a href="$homeLink.setTarget("profileView")" class="btn btn-default col-md-2 col-md-offset-1">返回</a>
</dl>
</form>
</div>
$control.setTemplate("home:footer")
<script src="$homeContent.getURI('scripts/controllers/user.js')" ></script>