diff options
Diffstat (limited to 'web/static/app/templates')
-rw-r--r-- | web/static/app/templates/device-edit-attribute.modal.html | 13 | ||||
-rw-r--r-- | web/static/app/templates/device.html | 8 |
2 files changed, 20 insertions, 1 deletions
diff --git a/web/static/app/templates/device-edit-attribute.modal.html b/web/static/app/templates/device-edit-attribute.modal.html new file mode 100644 index 0000000..e471e5f --- /dev/null +++ b/web/static/app/templates/device-edit-attribute.modal.html @@ -0,0 +1,13 @@ +<div class="modal-header"> + <button type="button" class="close" ng-click="$dismiss()"> + <span>×</span> + </button> + <h4 class="modal-title">Edit device {{attributeName}}</h4> +</div> +<div class="modal-body"> + <p>One fine body…</p> +</div> +<div class="modal-footer"> + <button type="button" class="btn btn-secondary" ng-click="$dismiss()">Cancel</button> + <button type="button" class="btn btn-primary" ng-click="ctrl.update()">Update</button> +</div> diff --git a/web/static/app/templates/device.html b/web/static/app/templates/device.html index b8936f3..d126f1d 100644 --- a/web/static/app/templates/device.html +++ b/web/static/app/templates/device.html @@ -59,7 +59,13 @@ <dd class="col-sm-9">{{ctrl.device.created_timestamp | date}}</dd> <dt class="col-sm-3">Name</dt> - <dd class="col-sm-9"> {{ctrl.device.name}}</dd> + <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}}</dd> |