edit.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <div class="modal" tabindex="-1" role="dialog">
  2. <div class="modal-dialog" role="document" style="width: 500px;">
  3. <div class="modal-content">
  4. <div class="panel-heading modal-header" dragable-header>
  5. <button type="button" class="close" ng-click="$hide()">&times;</button>
  6. <h3 class="modal-title">{{title}}</h3>
  7. </div>
  8. <form class="form-horizontal formtable1 panel-body modal-body"
  9. ng-submit="save(editForm.$valid)" role="form" id="editForm"
  10. name="editForm" style="padding: 10px; margin: 10px;" novalidate>
  11. <table class="gt-table gt-table-bordered">
  12. <tr>
  13. <th th-bind title="'关联用户'" required="false"></th>
  14. <td colspan="3">
  15. <div class="input-group input-group-search">
  16. <select boots-select class="form-control show-tick"
  17. ng-model="user.EmployeeId"
  18. data-live-search="true" option-datas="employeeList"
  19. ng-options="type.EmployeeId as type.Name for type in employeeList">
  20. <option value="" selected>--创建内部员工用户,请选择此项--</option>
  21. </select>
  22. </div>
  23. </td>
  24. </tr>
  25. <tr>
  26. <th th-bind title="'集团主账号'" required="true"></th>
  27. <td colspan="3" ng-class="{ 'has-error' : this.userform.CmWorkLinkAccountPsid.$invalid && this.userform.$submitted}">
  28. <input type="text"
  29. name="CmWorkLinkAccountPsid" ng-model="user.CmWorkLinkAccountPsid"
  30. class="form-control" ng-required="true" />
  31. <span ng-show="this.userform.CmWorkLinkAccountPsid.$invalid && this.userform.$submitted"
  32. class="error">必填.</span>
  33. </td>
  34. </tr>
  35. <tr>
  36. <th th-bind title="'用户名'" required="true"></th>
  37. <td colspan="3" ng-class="{ 'has-error' : this.userform.name.$invalid && this.userform.$submitted}">
  38. <input type="text"
  39. name="name" ng-model="user.Name"
  40. class="form-control" ng-required="true" />
  41. <span ng-show="this.userform.name.$invalid && this.userform.$submitted"
  42. class="error">必填.</span>
  43. </td>
  44. </tr>
  45. <tr>
  46. <th th-bind title="'登录账号'" required="true"></th>
  47. <td colspan="3" ng-class="{ 'has-error' : this.userform.loginID.$invalid && this.userform.$submitted}">
  48. <input type="text"
  49. name="loginID" ng-model="user.LoginID"
  50. class="form-control" ng-required="true" />
  51. <span ng-show="this.userform.loginID.$invalid && this.userform.$submitted"
  52. class="error">必填.</span>
  53. </td>
  54. </tr>
  55. <tr>
  56. <th th-bind title="'状态'" required="true"></th>
  57. <td colspan="4" ng-class="{ 'has-error' : this.editForm.recordStatus.$invalid && this.editForm.$submitted}">
  58. <select class="form-control show-tick" name="recordStatus"
  59. ng-model="user.RecordStatus"
  60. ng-options="type.dickey as type.dicvalue for type in recordStatusList"
  61. ng-required="true">
  62. </select>
  63. <span ng-show="this.editForm.recordStatus.$invalid && this.editForm.$submitted"
  64. class="error">必填.</span>
  65. </td>
  66. </tr>
  67. </table>
  68. <div class="form_foot" id="buttons" style="text-align:center">
  69. <button id="submit" class="btn btn-default1" style="padding:4px 20px 4px 20px" type="submit"
  70. form="editForm">
  71. 保存
  72. </button>
  73. <button id="cancel" type="button" class="btn btn-default" style="padding:4px 20px 4px 20px"
  74. ng-click="$hide()">
  75. 取消
  76. </button>
  77. </div>
  78. </form>
  79. </div>
  80. </div>
  81. </div>