|
1 | | -<md-dialog> |
2 | | - <form> |
3 | | - <md-toolbar> |
4 | | - <div class="md-toolbar-tools"> |
5 | | - <h2>设置</h2> |
6 | | - <span flex></span> |
7 | | - <md-button class="md-icon-button" ng-click="vm.answer('not applicable')" aria-label="Close settings"> |
8 | | - <md-icon md-svg-src="navigation:ic_close_24px"></md-icon> |
9 | | - </md-button> |
| 1 | +<md-content layout="column" flex id="account-settings-content"> |
| 2 | + <form name="updateForm"> |
| 3 | + <h2 class="md-subheader">头像</h2> |
| 4 | + <div layout="row" layout-align="start center"> |
| 5 | + <div> |
| 6 | + <img class="avatar" ng-src="{{vm.user.avatar}}" /> |
10 | 7 | </div> |
11 | | - </md-toolbar> |
12 | | - <md-dialog-content> |
13 | 8 | <div> |
14 | | - <p> |
15 | | - The mango is a juicy stone fruit belonging to the genus Mangifera, consisting of numerous tropical fruiting trees, cultivated mostly for edible fruit. The majority of these species are found in nature as wild mangoes. They all belong to the flowering plant family Anacardiaceae. The mango is native to South and Southeast Asia, from where it has been distributed worldwide to become one of the most cultivated fruits in the tropics. |
16 | | - </p> |
| 9 | + <md-button ng-click="vm.uploadImage($event)" class="md-raised md-accent">上传图片</md-button> |
| 10 | + <input hide type="file" id="fileInput" /> |
17 | 11 | </div> |
18 | | - </md-dialog-content> |
19 | | - <div class="md-actions" layout="row"> |
20 | | - <md-button href="http://en.wikipedia.org/wiki/Mango" target="_blank"> |
21 | | - 查看帮助 |
22 | | - </md-button> |
23 | | - <span flex></span> |
24 | | - <md-button ng-click="vm.answer('not useful')" class="md-primary"> |
25 | | - 取消 |
26 | | - </md-button> |
27 | | - <md-button ng-click="vm.answer('useful')" class="md-primary"> |
28 | | - 保存 |
29 | | - </md-button> |
| 12 | + </div> |
| 13 | + <div layout="row"> |
| 14 | + <md-input-container flex> |
| 15 | + <label>手机号</label> |
| 16 | + <input ng-model="vm.user.mobile" disabled> |
| 17 | + </md-input-container> |
| 18 | + </div> |
| 19 | + <div layout="row"> |
| 20 | + <md-input-container flex> |
| 21 | + <label>用户名</label> |
| 22 | + <input ng-model="vm.user.name"> |
| 23 | + </md-input-container> |
| 24 | + </div> |
| 25 | + <div layout="row"> |
| 26 | + <md-input-container flex> |
| 27 | + <label>邮箱</label> |
| 28 | + <input name="email" type="email" ng-model="vm.user.email"> |
| 29 | + <div ng-messages="updateForm.email.$error" ng-if="updateForm.email.$dirty"> |
| 30 | + <div ng-message="email">输入的邮箱格式不正确</div> |
| 31 | + </div> |
| 32 | + </md-input-container> |
| 33 | + </div> |
| 34 | + <div layout="row"> |
| 35 | + <md-input-container flex> |
| 36 | + <label>公司</label> |
| 37 | + <input ng-model="vm.user.company"> |
| 38 | + </md-input-container> |
| 39 | + </div> |
| 40 | + <div flex layout="row" layout-align="space-between center"> |
| 41 | + <md-button ng-disabled="updateForm.$invalid" ng-click="vm.update()" class="md-raised md-primary">保存</md-button> |
30 | 42 | </div> |
31 | 43 | </form> |
32 | | -</md-dialog> |
| 44 | +</md-content> |
0 commit comments