edit.html 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.Name.$invalid && this.editForm.$submitted}">
  16. <input type="text" name="Name" ng-model="dataModel.Name" class="form-control" ng-required="true" />
  17. <span ng-show="this.editForm.Name.$invalid && this.editForm.$submitted" class="error">必填.</span>
  18. </td>
  19. </tr>
  20. </table>
  21. </div>
  22. <div class="dj-formtable">
  23. <div class="table-responsive list-table-panel">
  24. <div class="list-table-title">
  25. <div class="table-title">
  26. 楼层信息
  27. </div>
  28. <div class="table-tool">
  29. <button type="button" class="btn btn-primary dropdown-toggle" title="添加" ng-click="add()">
  30. 添加
  31. </button>
  32. </div>
  33. </div>
  34. <table class="gt-table gt-table-bordered">
  35. <thead>
  36. <tr>
  37. <th class="th-rownum">序号</th>
  38. <th>名称</th>
  39. <th class="col-md-2">排序</th>
  40. <th style="width:80px;">操作</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. <tr ng-repeat="it in floorList">
  45. <td class="text-center">{{$index+1}}</td>
  46. <td ng-class="{ 'has-error' : invalidFee($index,editForm,'Name') && this.editForm.$submitted}">
  47. <input type="text" class="form-control" name="Name_{{$index}}"
  48. ng-model="it.Name" ng-required="true" />
  49. </td>
  50. <td ng-class="{ 'has-error' : invalidFee($index,editForm,'Sort') && this.editForm.$submitted}">
  51. <input type="number" step="1" min="1" class="form-control" name="Sort_{{$index}}"
  52. ng-model="it.Sort" ng-required="true" />
  53. </td>
  54. <td class="text-center">
  55. <i class="glyphicon glyphicon-trash" ng-click="delete($index)"></i>
  56. </td>
  57. </tr>
  58. </tbody>
  59. </table>
  60. </div>
  61. </div>
  62. <div class="form_foot">
  63. <button type="button" class="btn btn-default" ng-click="$hide()">取消</button>
  64. <button type="submit" class="btn btn-primary" form="editForm">保存</button>
  65. </div>
  66. </form>
  67. </div>
  68. </div>
  69. </div>
  70. </div>