editPwd.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <div id="usermodal" class="modal" tabindex="-1" role="dialog">
  2. <div class="modal-dialog">
  3. <div class="modal-content">
  4. <div class="modal-header" dragable-header>
  5. <button type="button" class="close" ng-click="$hide()">&times;</button>
  6. <h4 class="modal-title">修改密码</h4>
  7. </div>
  8. <div activate-input activate-select class="body">
  9. <form class="form-horizontal" role="form" id="userfrom" name="userfrom" autocomplete="off"
  10. ng-submit="submitUser(userfrom.$valid)" novalidate>
  11. <div class="dj-formtable">
  12. <table class="dj-table">
  13. <tr>
  14. <th>用户名称:</th>
  15. <td>
  16. {{userinfovm.UserName}}
  17. </td>
  18. <th>登录帐号:</th>
  19. <td>
  20. {{userinfovm.LoginID}}
  21. </td>
  22. </tr>
  23. <tr>
  24. <th><span style="color:red;">*</span>新密码:</th>
  25. <td colspan="3"
  26. ng-class="{ 'has-error' : userfrom.pwd_default.$invalid && userfrom.$submitted}">
  27. <input type="password" name="pwd_default" ng-model="pwd.pwd_default" maxlength="100"
  28. class="form-control" ng-required="true" />
  29. </td>
  30. </tr>
  31. <tr>
  32. <th><span style="color:red;">*</span>确认新密码:</th>
  33. <td colspan="3"
  34. ng-class="{ 'has-error' : userfrom.pwd_confirm.$invalid && userfrom.$submitted}">
  35. <input type="password" name="pwd_confirm" ng-model="pwd.pwd_confirm" maxlength="100"
  36. class="form-control" ng-required="true" />
  37. <span ng-show="!pwd.pwd_default.$error.required && !pwd.pwd_confirm.$error.required && pwd.pwd_default != pwd.pwd_confirm && userfrom.$submitted"
  38. class="help-block">两次密码输入不一致</span>
  39. </td>
  40. </tr>
  41. </table>
  42. </div>
  43. </form>
  44. </div>
  45. <div class="modal-footer">
  46. <button type="button" class="btn btn-default" ng-click="$hide()">取消</button>
  47. <button type="submit" class="btn btn-primary" form="userfrom">保存</button>
  48. </div>
  49. </div>
  50. </div>
  51. </div>