Some gui bug fixes

Former-commit-id: 8e934b26bb9b4cb353cda9381a5a3be5544e86c5
This commit is contained in:
Ziver Koc 2016-01-22 20:07:49 +01:00
parent 86e041945c
commit 3343ad83db
4 changed files with 8 additions and 2 deletions

View file

@ -56,11 +56,13 @@
<table class="table table-hover table-condensed">
<thead>
<th>Type</th>
<th>Date</th>
<th>Configuration</th>
</thead>
{{#detectedEvents}}
<tr>
<td>{{.getClass().getName()}}</td>
<td>{{.getTimestamp()}}</td>
<td>{{.}}</td>
<td>
<div class="btn-toolbar pull-right">
@ -116,6 +118,7 @@
else{ // create
modal.find("input[name=action]").val("create_local_event");
modal.find("input[name=id]").val(-1);
modal.find("select[name=type]").change(); // Update dynamic inputs
}
});
});

View file

@ -18,7 +18,7 @@
<td><a href="?id={{.getId()}}">{{.getName()}}</a></td>
<td>{{.getDeviceData().getClass().getSimpleName()}}</td>
<td>{{.getDeviceData().getData()}}</td>
<td>1 min ago</td>
<td>{{.getDeviceData().getTimestamp()}}</td>
<td>
<form method="POST">
<input type="hidden" name="action" value="-">

View file

@ -59,11 +59,13 @@
<table class="table table-hover table-condensed">
<thead>
<th>Type</th>
<th>Date</th>
<th>Configuration</th>
</thead>
{{#detectedSensors}}
<tr>
<td>{{.getClass().getName()}}</td>
<td>{{.getTimestamp()}}</td>
<td>{{.}}</td>
<td>
<div class="btn-toolbar pull-right">
@ -218,6 +220,7 @@
modal.find("input[name=action]").val("create_local_sensor");
modal.find("input[name=id]").val(-1);
modal.find("input[name=sync]").prop("checked", "false");
modal.find("select[name=type]").change(); // Update dynamic inputs
}
});

View file

@ -17,7 +17,7 @@
<td><a href="?id={{.getId()}}">{{.getName()}}</a></td>
<td>{{.getDeviceData().getClass().getSimpleName()}}</td>
<td>{{.getDeviceData().getData()}}</td>
<td>1 min ago</td>
<td>{{.getDeviceData().getTimestamp()}}</td>
</tr>
{{/sensors}}
</table>