diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-10-25 00:33:41 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-10-25 01:47:52 +0200 |
commit | e8ec4001ce1297d5a3db6d3fc8af8de47daa6a61 (patch) | |
tree | 839d9c1da0c2b1db539c104d9aacc8c8e62a3dcd /web/static/app/templates/device.html | |
parent | 0266bdd60cb9cccf20a5ded3eba72ea833bee72d (diff) | |
download | diller-server-e8ec4001ce1297d5a3db6d3fc8af8de47daa6a61.tar.gz diller-server-e8ec4001ce1297d5a3db6d3fc8af8de47daa6a61.tar.bz2 diller-server-e8ec4001ce1297d5a3db6d3fc8af8de47daa6a61.tar.xz diller-server-e8ec4001ce1297d5a3db6d3fc8af8de47daa6a61.zip |
wip
Diffstat (limited to 'web/static/app/templates/device.html')
-rw-r--r-- | web/static/app/templates/device.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/web/static/app/templates/device.html b/web/static/app/templates/device.html new file mode 100644 index 0000000..b466fdc --- /dev/null +++ b/web/static/app/templates/device.html @@ -0,0 +1,34 @@ +<div class="container"> + + <h1> + {{ctrl.device.key}} + <small class="text-muted">device</small> + </h1> + + <ul> + <li>Created: {{ctrl.device.created_timestamp | date}}</li> + <li>Name: {{ctrl.property.name}}</li> + <li>Description: {{ctrl.property.description}}</li> + </ul> + + <h3>Properties</h3> + + <table class="table"> + <thead> + <tr> + <td>Registered</td> + <td>Key</td> + </tr> + </thead> + <tbody> + <tr ng-repeat="p in ctrl.device.properties | orderBy:'key'"> + <td> + {{p.created_timestamp | date:'medium'}} + </td> + <td> + <a href="#/device/{{ctrl.device.id}}/property/{{p.id}}">{{p.key}}</a> + </td> + </tr> + </tbody> + </table> +</div> |