edit.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <div class="modal" tabindex="-1" role="dialog">
  2. <div class="modal-dialog" style="width: 800px;">
  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-table2">
  13. <tr>
  14. <th>名称<span style="color: red;">*</span></th>
  15. <td colspan="3" ng-class="{ 'has-error' : this.editForm.Name.$invalid && this.editForm.$submitted}">
  16. <input type="text" name="Name" ng-model="dataModel.Name" class="form-control" ng-required="true" />
  17. </td>
  18. </tr>
  19. <tr>
  20. <th>开放时间</th>
  21. <td>
  22. <input type="text" name="OpenTime" ng-model="dataModel.OpenTime" class="form-control" />
  23. </td>
  24. <th>联系方式</th>
  25. <td>
  26. <input type="text" name="ContactType" ng-model="dataModel.ContactType" class="form-control" />
  27. </td>
  28. </tr>
  29. <tr>
  30. <th>简介</th>
  31. <td colspan="3">
  32. <textarea name="Description" ng-model="dataModel.Description" class="form-control" />
  33. </td>
  34. </tr>
  35. </table>
  36. </div>
  37. <div class="dj-formtable">
  38. <div class="table-responsive list-table-panel">
  39. <div class="list-table-title">
  40. <div class="table-title">
  41. 关联房间
  42. </div>
  43. <div class="table-tool">
  44. <button type="button" class="btn btn-primary dropdown-toggle" title="选择房间" ng-click="selectRoom()">
  45. 选择房间
  46. </button>
  47. </div>
  48. </div>
  49. <table class="gt-table gt-table-bordered">
  50. <thead>
  51. <tr>
  52. <th class="th-rownum">序号</th>
  53. <th>大楼</th>
  54. <th>楼层</th>
  55. <th>房间</th>
  56. <th style="width:80px;">操作</th>
  57. </tr>
  58. </thead>
  59. <tbody>
  60. <tr ng-repeat="it in roomList">
  61. <td class="text-center">{{$index+1}}</td>
  62. <td>{{it.BuildingName}}</td>
  63. <td>{{it.FloorName}}</td>
  64. <td>{{it.Name}}</td>
  65. <td class="text-center">
  66. <i class="glyphicon glyphicon-trash" ng-click="deleteRoom($index)"></i>
  67. </td>
  68. </tr>
  69. </tbody>
  70. </table>
  71. </div>
  72. </div>
  73. <div class="form_foot">
  74. <button type="button" class="btn btn-default" ng-click="$hide()">取消</button>
  75. <button type="submit" class="btn btn-primary" form="editForm">保存</button>
  76. </div>
  77. </form>
  78. </div>
  79. </div>
  80. </div>
  81. </div>