123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <div class="modal" tabindex="-1" role="dialog">
- <div class="modal-dialog" style="width: 800px;">
- <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-table2">
- <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" />
- </td>
- </tr>
- <tr>
- <th>开放时间</th>
- <td>
- <input type="text" name="OpenTime" ng-model="dataModel.OpenTime" class="form-control" />
- </td>
- <th>联系方式</th>
- <td>
- <input type="text" name="ContactType" ng-model="dataModel.ContactType" class="form-control" />
- </td>
- </tr>
- <tr>
- <th>简介</th>
- <td colspan="3">
- <textarea name="Description" ng-model="dataModel.Description" class="form-control" />
- </td>
- </tr>
- <tr>
- <th>
- 图片
- </th>
- <td colspan="3">
- <img-component ng-if="imgConfig!=null" data-filerefid="imgConfig.filerefid" data-filetypeid="imgConfig.filetypeid"
- data-ismulti="imgConfig.ismulti" data-height="imgConfig.height" data-readonly="imgConfig.readonly" data-img-list="imgConfig.imgList"></img-component>
- </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="selectRoom()">
- 选择房间
- </button>
- </div>
- </div>
- <table class="gt-table gt-table-bordered">
- <thead>
- <tr>
- <th class="th-rownum">序号</th>
- <th>大楼</th>
- <th>楼层</th>
- <th>房间</th>
- <th style="width:80px;">操作</th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="it in roomList">
- <td class="text-center">{{$index+1}}</td>
- <td>{{it.BuildingName}}</td>
- <td>{{it.FloorName}}</td>
- <td>{{it.Name}}</td>
- <td class="text-center">
- <i class="glyphicon glyphicon-trash" ng-click="deleteRoom($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>
|