diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-11-01 01:06:40 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-11-01 01:06:40 +0100 |
commit | f7ff8a837bed336a14aa0442ed8286f3ef78f577 (patch) | |
tree | b6fc65c5fed93383ef5c942a8f5855050fc062b5 /web/static/app/templates/property.html | |
parent | 2173df227821aefe1cf9aee5d8165fa0a24961e9 (diff) | |
download | diller-server-f7ff8a837bed336a14aa0442ed8286f3ef78f577.tar.gz diller-server-f7ff8a837bed336a14aa0442ed8286f3ef78f577.tar.bz2 diller-server-f7ff8a837bed336a14aa0442ed8286f3ef78f577.tar.xz diller-server-f7ff8a837bed336a14aa0442ed8286f3ef78f577.zip |
core:
o Adding updates of device property's name and description.
web:
o Ading editing of property name and description.
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 |