You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sensoredit.html 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <dialog-ok-cancel title="{{ sensor.Id == null ? 'Add' : 'Edit'}} sensor {{ 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="sensor.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="sensor.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[sensor.HostId].Name }}
  19. <span class="caret"></span>
  20. </button>
  21. <ul class="dropdown-menu">
  22. <li ng-repeat="host in hosts"><a ng-click="sensor.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. {{ sensorTypes[sensor.SensorTypeId].Name }}
  31. <span class="caret"></span>
  32. </button>
  33. <ul class="dropdown-menu">
  34. <li ng-repeat="type in sensorTypes"><a ng-click="setSensorType(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="sensor.Data" default-collapsed="false" type="object"></json>
  42. </div>
  43. </div>
  44. </dialog-ok-cancel>