summaryrefslogtreecommitdiffstats
path: root/templates/page-syslog.html
blob: c16d8da1c7d0db0dbe66b2ca00c195920e2a0a66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<div class="container">
	<h1>Client Log</h1>
	<form method="post" action="?do=syslog">
		<div class="input-group">
			<span class="input-group-addon">Filter</span>
			<input id="filterstring" type="text" placeholder="event-id" value="{{filter}}" name="filter" data-role="tagsinput" />
			<span class="input-group-addon">
				<input type="checkbox" name="not" {{#not}}checked="checked"{{/not}}> not
			</span>
			<span class="input-group-btn">
				<button class="btn btn-default" type="submit">Los</button>
			</span>
		</div>
	</form>
	{{{pagenav}}}
	<table class="table table-striped table-condensed">
		<thead>
			<th></th>
			<th>Wann</th>
			<th>Client</th>
			<th>Ereignis</th>
			<th>Details</th>
		</thead>
		<tbody>
		{{#list}}
			<tr>
				<td><span class="glyphicon glyphicon-off" title="{{logtypeid}}" onclick="$('#filterstring').tagsinput('add', '{{logtypeid}}')"></span></td>
				<td class="text-right" nowrap="nowrap">{{date}}</td>
				<td>{{clientip}}</td>
				<td>{{description}}</td>
				<td>{{#extra}}<a class="btn btn-default btn-xs pull-left" data-toggle="collapse" data-target="#extra{{logid}}">&raquo;</a>{{/extra}}</td>
			</tr>
			<tr class="collapse" id="extra{{logid}}">
				<td colspan="5"><pre>{{extra}}</pre></td>
			</tr>
		{{/list}}
		</tbody>
	</table>
	{{{pagenav}}}
</div>