aboutsummaryrefslogtreecommitdiff
path: root/web/static
diff options
context:
space:
mode:
Diffstat (limited to 'web/static')
-rw-r--r--web/static/app/templates/device-edit-attribute.modal.html2
-rw-r--r--web/static/app/templates/device.html25
2 files changed, 9 insertions, 18 deletions
diff --git a/web/static/app/templates/device-edit-attribute.modal.html b/web/static/app/templates/device-edit-attribute.modal.html
index 10314e5..2e57f2d 100644
--- a/web/static/app/templates/device-edit-attribute.modal.html
+++ b/web/static/app/templates/device-edit-attribute.modal.html
@@ -7,7 +7,7 @@
</div>
<div class="modal-body">
<fieldset class="form-group">
- <label for="attribute" style="text-transform: capitalize">{{ctrl.label}}</label>
+ <label for="attribute" class="text-capitalize">{{ctrl.label}}</label>
<input type="text" class="form-control" id="attribute" autofocus
ng-model="ctrl.value"/>
</fieldset>
diff --git a/web/static/app/templates/device.html b/web/static/app/templates/device.html
index fbda67f..e3c988d 100644
--- a/web/static/app/templates/device.html
+++ b/web/static/app/templates/device.html
@@ -2,9 +2,17 @@
<h1>
{{(ctrl.device.name || ctrl.device.key)}}
+
+ <a ng-click="ctrl.editDeviceAttribute('name')" class="pull-right" style="font-size: 1rem;">
+ <i class="fa fa-edit"/>
+ </a>
</h1>
<p ng-if="ctrl.device.description">
+ <a ng-click="ctrl.editDeviceAttribute('description')" class="pull-right">
+ <i class="fa fa-edit"/>
+ </a>
+
{{ctrl.device.description}}
</p>
@@ -69,23 +77,6 @@
{{ctrl.device.created_timestamp | date}}
&nbsp;
</dd>
-
- <dt class="col-sm-3">Name</dt>
- <dd class="col-sm-9">
- {{ctrl.device.name}}
- <a ng-click="ctrl.editDeviceAttribute('name')" class="pull-right">
- <i class="fa fa-edit"/>
- </a>
- </dd>
-
- <dt class="col-sm-3">Description</dt>
- <dd class="col-sm-9">
- {{ctrl.device.description}}
-
- <a ng-click="ctrl.editDeviceAttribute('description')" class="pull-right">
- <i class="fa fa-edit"/>
- </a>
- </dd>
</dl>
<h3>Properties</h3>