1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <dialog-ok-cancel title="{{ camera.Id == null ? 'Add' : 'Edit'}} camera {{ host.Name }}">
- <div class="form-group">
- <label for="name" class="col-sm-2 control-label">Name</label>
- <div class="col-sm-9">
- <input id="name" class="form-control" ng-model="camera.Name" required lu-enable-permission="{{ permission }}"/>
- </div>
- </div>
- <div class="form-group">
- <label for="url" class="col-sm-2 control-label">Description</label>
- <div class="col-sm-9">
- <input id="url" class="form-control" ng-model="camera.Description" lu-enable-permission="{{ permission }}"/>
- </div>
- </div>
- <div class="form-group">
- <label for="dropdownHost" class="col-sm-2 control-label">Host</label>
- <div class="btn-group">
- <button class="btn btn-default dropdown-toggle" type="button" id="dropdownHost" data-toggle="dropdown">
- {{ hosts[camera.HostId].Name }}
- <span class="caret"></span>
- </button>
- <ul class="dropdown-menu">
- <li ng-repeat="host in hosts"><a ng-click="camera.HostId = host.Id" href="">{{ host.Name }}</a></li>
- </ul>
- </div>
- </div>
- <div class="form-group">
- <label for="dropdownType" class="col-sm-2 control-label">Type</label>
- <div class="btn-group">
- <button class="btn btn-default dropdown-toggle" type="button" id="dropdownType" data-toggle="dropdown">
- {{ entityTypes[camera.EntityTypeId].Name }}
- <span class="caret"></span>
- </button>
- <ul class="dropdown-menu">
- <li ng-repeat="type in entityTypes"><a ng-click="setEntityType(type)" href="">{{ type.Name }}</a></li>
- </ul>
- </div>
- </div>
- <div class="form-group">
- <label for="data" class="col-sm-2 control-label">Data</label>
- <div class="col-sm-9 jsonView">
- <json id="data" child="camera.Data" default-collapsed="false" type="object"></json>
- </div>
- </div>
- </dialog-ok-cancel>
|