edit.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. <tr>
  36. <th>
  37. 图片
  38. </th>
  39. <td colspan="3">
  40. <img-component ng-if="imgConfig!=null" data-filerefid="imgConfig.filerefid" data-filetypeid="imgConfig.filetypeid"
  41. data-ismulti="imgConfig.ismulti" data-height="imgConfig.height" data-readonly="imgConfig.readonly" data-img-list="imgConfig.imgList"></img-component>
  42. </td>
  43. </tr>
  44. </table>
  45. </div>
  46. <div class="dj-formtable">
  47. <div class="table-responsive list-table-panel">
  48. <div class="list-table-title">
  49. <div class="table-title">
  50. 关联房间
  51. </div>
  52. <div class="table-tool">
  53. <button type="button" class="btn btn-primary dropdown-toggle" title="选择房间" ng-click="selectRoom()">
  54. 选择房间
  55. </button>
  56. </div>
  57. </div>
  58. <table class="gt-table gt-table-bordered">
  59. <thead>
  60. <tr>
  61. <th class="th-rownum">序号</th>
  62. <th>大楼</th>
  63. <th>楼层</th>
  64. <th>房间</th>
  65. <th style="width:80px;">操作</th>
  66. </tr>
  67. </thead>
  68. <tbody>
  69. <tr ng-repeat="it in roomList">
  70. <td class="text-center">{{$index+1}}</td>
  71. <td>{{it.BuildingName}}</td>
  72. <td>{{it.FloorName}}</td>
  73. <td>{{it.Name}}</td>
  74. <td class="text-center">
  75. <i class="glyphicon glyphicon-trash" ng-click="deleteRoom($index)"></i>
  76. </td>
  77. </tr>
  78. </tbody>
  79. </table>
  80. </div>
  81. </div>
  82. <div class="form_foot">
  83. <button type="button" class="btn btn-default" ng-click="$hide()">取消</button>
  84. <button type="submit" class="btn btn-primary" form="editForm">保存</button>
  85. </div>
  86. </form>
  87. </div>
  88. </div>
  89. </div>
  90. </div>