12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <div class="modal" tabindex="-1" role="dialog">
- <div class="modal-dialog" style="width: 500px;">
- <div class="card">
- <div class="header" dragable-header>
- <button type="button" class="close" ng-click="$hide()">×</button>
- <h4 class="modal-title">{{params.title}}</h4>
- </div>
- <div activate-input activate-select class="body">
- <form class="form-horizontal" role="form" id="editForm"
- name="editForm" ng-submit="save(editForm.$valid)" novalidate>
- <div class="dj-formtable">
- <table class="dj-table dj-table3">
- <tr>
- <th>名称<span style="color: red;">*</span></th>
- <td colspan="3" ng-class="{ 'has-error' : this.editForm.Name.$invalid && this.editForm.$submitted}">
- <input type="text" name="Name" ng-model="dataModel.Name" class="form-control" ng-required="true" />
- <span ng-show="this.editForm.Name.$invalid && this.editForm.$submitted" class="error">必填.</span>
- </td>
- </tr>
- </table>
- </div>
- <div class="dj-formtable">
- <div class="table-responsive list-table-panel">
- <div class="list-table-title">
- <div class="table-title">
- 楼层信息
- </div>
- <div class="table-tool">
- <button type="button" class="btn btn-primary dropdown-toggle" title="添加" ng-click="add()">
- 添加
- </button>
- </div>
- </div>
- <table class="gt-table gt-table-bordered">
- <thead>
- <tr>
- <th class="th-rownum">序号</th>
- <th>名称</th>
- <th class="col-md-2">排序</th>
- <th style="width:80px;">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="it in floorList">
- <td class="text-center">{{$index+1}}</td>
- <td ng-class="{ 'has-error' : invalidFee($index,editForm,'Name') && this.editForm.$submitted}">
- <input type="text" class="form-control" name="Name_{{$index}}"
- ng-model="it.Name" ng-required="true" />
- </td>
- <td ng-class="{ 'has-error' : invalidFee($index,editForm,'Sort') && this.editForm.$submitted}">
- <input type="number" step="1" min="1" class="form-control" name="Sort_{{$index}}"
- ng-model="it.Sort" ng-required="true" />
- </td>
- <td class="text-center">
- <i class="glyphicon glyphicon-trash" ng-click="delete($index)"></i>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="form_foot">
- <button type="button" class="btn btn-default" ng-click="$hide()">取消</button>
- <button type="submit" class="btn btn-primary" form="editForm">保存</button>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
|