edit.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <div class="modal" tabindex="-1" role="dialog">
  2. <div class="modal-dialog" style="width: 500px;">
  3. <div class="card">
  4. <div class="header" dragable-header>
  5. <button type="button" class="close" ng-click="$hide()">&times;</button>
  6. <h4 class="modal-title">{{params.title}}</h4>
  7. </div>
  8. <div activate-input activate-select class="body">
  9. <form class="form-horizontal" role="form" id="editForm"
  10. name="editForm" ng-submit="save(editForm.$valid)" novalidate>
  11. <div class="dj-formtable">
  12. <table class="dj-table dj-table3">
  13. <tr>
  14. <th>大楼<span style="color: red;">*</span></th>
  15. <td colspan="3" ng-class="{ 'has-error' : this.editForm.buildingId.$invalid && this.editForm.$submitted}">
  16. <select boots-select class="form-control show-tick" name="buildingId"
  17. ng-model="dataModel.BuildingId"
  18. data-live-search="true" option-datas="buildingList"
  19. ng-options="type.BuildingId as type.Name for type in buildingList"
  20. ng-change="getFloorList()" ng-required="true">
  21. <option value="" selected>--请选择--</option>
  22. </select>
  23. </td>
  24. <th>楼层<span style="color: red;">*</span></th>
  25. <td colspan="3" ng-class="{ 'has-error' : this.editForm.floorId.$invalid && this.editForm.$submitted}">
  26. <select boots-select class="form-control show-tick" name="floorId"
  27. ng-model="dataModel.BuildingFloorId"
  28. data-live-search="true" option-datas="floorList"
  29. ng-options="type.BuildingFloorId as type.Name for type in floorList"
  30. ng-required="true">
  31. <option value="" selected>--请选择--</option>
  32. </select>
  33. </td>
  34. </tr>
  35. <tr>
  36. <th>名称<span style="color: red;">*</span></th>
  37. <td colspan="3" ng-class="{ 'has-error' : this.editForm.Name.$invalid && this.editForm.$submitted}">
  38. <input type="text" name="Name" ng-model="dataModel.Name" class="form-control" ng-required="true" />
  39. </td>
  40. <th>排序<span style="color: red;">*</span></th>
  41. <td colspan="3" ng-class="{ 'has-error' : this.editForm.Sort.$invalid && this.editForm.$submitted}">
  42. <input type="number" min="1" step="1" name="Sort" ng-model="dataModel.Sort" class="form-control" ng-required="true" />
  43. </td>
  44. </tr>
  45. </table>
  46. </div>
  47. <div class="form_foot">
  48. <button type="button" class="btn btn-default" ng-click="$hide()">取消</button>
  49. <button type="submit" class="btn btn-primary" form="editForm">保存</button>
  50. </div>
  51. </form>
  52. </div>
  53. </div>
  54. </div>
  55. </div>