Implemented basic functions
This commit is contained in:
parent
89f483171a
commit
965e2daeb3
22 changed files with 711 additions and 58 deletions
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
{{ block "page_label" . }}{{end}}
|
||||
|
||||
<form action="/trigger/update/{{ .Data.Trigger.ID }}" method="post">
|
||||
<form id="form-trigger" action="/trigger/update/{{ .Data.Trigger.ID }}" method="post">
|
||||
<div id="widgets" class="widgets">
|
||||
<div class="label">Name</div>
|
||||
<div><input type="text" name="name" value="{{ .Data.Trigger.Name }}"></div>
|
||||
|
|
@ -21,7 +21,7 @@
|
|||
<div class="label">Datapoints</div>
|
||||
<div class="datapoints" style="margin-top: 4px">
|
||||
{{ range .Data.Datapoints }}
|
||||
<div class="datapoint name">{{ .Name }}</div>
|
||||
<div class="datapoint name"><b>{{ .Name }}</b></div>
|
||||
<div class="datapoint value">{{ .LastDatapointValue.Value }}</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
<div></div>
|
||||
<div class="action">
|
||||
<button>Update</button>
|
||||
<button id="button-update">Update</button>
|
||||
<button id="button-run" onclick="window._ui.run(); return false">Test</button>
|
||||
<div id="run-result"></div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue