Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

cameraedit.html 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <dialog-ok-cancel title="{{ camera.Id == null ? 'Add' : 'Edit'}} camera {{ host.Name }}">
  2. <div class="form-group">
  3. <label for="name" class="col-sm-2 control-label">Name</label>
  4. <div class="col-sm-9">
  5. <input id="name" class="form-control" ng-model="camera.Name" required lu-enable-permission="{{ permission }}"/>
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label for="url" class="col-sm-2 control-label">Description</label>
  10. <div class="col-sm-9">
  11. <input id="url" class="form-control" ng-model="camera.Description" lu-enable-permission="{{ permission }}"/>
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label for="dropdownHost" class="col-sm-2 control-label">Host</label>
  16. <div class="btn-group">
  17. <button class="btn btn-default dropdown-toggle" type="button" id="dropdownHost" data-toggle="dropdown">
  18. {{ hosts[camera.HostId].Name }}
  19. <span class="caret"></span>
  20. </button>
  21. <ul class="dropdown-menu">
  22. <li ng-repeat="host in hosts"><a ng-click="camera.HostId = host.Id" href="">{{ host.Name }}</a></li>
  23. </ul>
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label for="dropdownType" class="col-sm-2 control-label">Type</label>
  28. <div class="btn-group">
  29. <button class="btn btn-default dropdown-toggle" type="button" id="dropdownType" data-toggle="dropdown">
  30. {{ entityTypes[camera.EntityTypeId].Name }}
  31. <span class="caret"></span>
  32. </button>
  33. <ul class="dropdown-menu">
  34. <li ng-repeat="type in entityTypes"><a ng-click="setEntityType(type)" href="">{{ type.Name }}</a></li>
  35. </ul>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label for="data" class="col-sm-2 control-label">Data</label>
  40. <div class="col-sm-9 jsonView">
  41. <json id="data" child="camera.Data" default-collapsed="false" type="object"></json>
  42. </div>
  43. </div>
  44. </dialog-ok-cancel>