editUserRoleModal.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <div class="modal" tabindex="-1" role="dialog" style="min-height:500px">
  2. <div class="modal-dialog" role="document">
  3. <div class="modal-content">
  4. <div class="panel-heading modal-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="saveUserRole(editUserRoleForm.$valid)" role="form" id="editUserRoleForm"
  10. name="editUserRoleForm" style="padding: 10px; margin: 10px;" novalidate>
  11. <table class="table table-bordered tform">
  12. <tr>
  13. <th class="col-md-2"><span style="color:red;">*</span>角色名称:</th>
  14. <td>
  15. <input name="RoleName" type="text" ng-model="userRole.RoleName" class="form-control"
  16. disabled value={{userRole.RoleName}}/>
  17. </td>
  18. </tr>
  19. <tr>
  20. <th class="col-md-2"><span style="color:red;">*</span>人员名称:</th>
  21. <td ng-class="{ 'has-error' : editUserRoleForm.selectedName.$invalid && (editUserRoleForm.$submitted) }">
  22. <label class="input-group">
  23. <input name="selectedName" type="text" ng-model="selectedName" class="form-control"
  24. required value={{selectedName}}/>
  25. <!--<input name="userRole.selectedGuids" ng-model="userRole.selectedGuids" style="display:none" />-->
  26. <span class="input-group-addon" userselect data-textids="userRole.selectedID"
  27. data-textnames="selectedName" data-datausers="selectedDataUsers"
  28. data-textguids="userRole.selectedGuids"><i
  29. class="glyphicon glyphicon-zoom-in"></i></span>
  30. </label>
  31. <span ng-show="editUserRoleForm.selectedName.$invalid && (editUserRoleForm.$submitted)"
  32. class="help-block">请选择人员</span>
  33. </td>
  34. </tr>
  35. </table>
  36. <div class="form_foot" id="buttons" style="text-align:center">
  37. <button id="submit" class="btn btn-danger" style="padding:4px 20px 4px 20px" type="submit"
  38. form="editUserRoleForm">提交
  39. </button>
  40. <button id="cancel" type="button" class="btn btn-default" style="padding:4px 20px 4px 20px"
  41. ng-click="$hide()">取消
  42. </button>
  43. </div>
  44. </form>
  45. </div>
  46. </div>
  47. </div>