diff options
Diffstat (limited to 'web/static/app/templates/property.html')
-rw-r--r-- | web/static/app/templates/property.html | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/web/static/app/templates/property.html b/web/static/app/templates/property.html index 8cff1f0..969734b 100644 --- a/web/static/app/templates/property.html +++ b/web/static/app/templates/property.html @@ -1,24 +1,38 @@ <div class="container"> <h1> - <a href="#/device/{{ctrl.device.id}}"> - {{(ctrl.device.name || ctrl.device.key)}} + <a href="#/device/{{ctrl.device.id}}">{{(ctrl.device.name || ctrl.device.key)}}</a>: + {{(ctrl.property.name || ctrl.property.key)}} + + <a ng-click="ctrl.editPropertyAttribute('name')" class="pull-right" style="font-size: 1rem;"> + <i class="fa fa-edit"/> </a> </h1> - <h2> - {{(ctrl.property.name || ctrl.property.key)}} - </h2> - - <p ng-show="ctrl.property.description"> + <p> + <a ng-click="ctrl.editPropertyAttribute('description')" class="pull-right"> + <i class="fa fa-edit"/> + </a> {{ctrl.property.description}} + + <a href ng-if="!ctrl.property.description" ng-click="ctrl.editPropertyAttribute('description')"> + Edit description + </a> </p> - <ul> - <li>Created: {{ctrl.property.created_timestamp | date}}</li> - <li>Name: {{ctrl.property.name}}</li> - <li>Description: {{ctrl.property.description}}</li> - </ul> + <dl> + <dt class="col-sm-3">Key</dt> + <dd class="col-sm-9"> + {{ctrl.property.key}} + + </dd> + + <dt class="col-sm-3">Created</dt> + <dd class="col-sm-9"> + {{ctrl.property.created_timestamp | date:'medium'}} + + </dd> + </dl> <h3> Latest Values |