diff options
author | Simon Rettberg | 2014-01-09 20:23:58 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-01-09 20:23:58 +0100 |
commit | a12c5db601ad2c3cee2507099b692d491782d614 (patch) | |
tree | 6c648f861e09ca6dc9bab68dc5e398d6f7309ce4 /templates | |
parent | Categories for config vars (diff) | |
download | slx-admin-a12c5db601ad2c3cee2507099b692d491782d614.tar.gz slx-admin-a12c5db601ad2c3cee2507099b692d491782d614.tar.xz slx-admin-a12c5db601ad2c3cee2507099b692d491782d614.zip |
Add pagination to syslog, change filter inputbox to use tagsinput
Diffstat (limited to 'templates')
-rw-r--r-- | templates/page-syslog.html | 6 | ||||
-rw-r--r-- | templates/page-tgz-list.html | 5 | ||||
-rw-r--r-- | templates/pagenav.html | 15 |
3 files changed, 22 insertions, 4 deletions
diff --git a/templates/page-syslog.html b/templates/page-syslog.html index c741ab6b..c16d8da1 100644 --- a/templates/page-syslog.html +++ b/templates/page-syslog.html @@ -3,7 +3,7 @@ <form method="post" action="?do=syslog"> <div class="input-group"> <span class="input-group-addon">Filter</span> - <input id="filterstring" type="text" class="form-control" placeholder="event-id" value="{{filter}}" name="filter"> + <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> @@ -12,6 +12,7 @@ </span> </div> </form> + {{{pagenav}}} <table class="table table-striped table-condensed"> <thead> <th></th> @@ -23,7 +24,7 @@ <tbody> {{#list}} <tr> - <td><span class="glyphicon glyphicon-off" title="{{logtypeid}}" onclick="$('#filterstring').val($('#filterstring').val() + ' {{logtypeid}}')"></span></td> + <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> @@ -35,5 +36,6 @@ {{/list}} </tbody> </table> + {{{pagenav}}} </div> diff --git a/templates/page-tgz-list.html b/templates/page-tgz-list.html index bcf5ffc0..fdc11933 100644 --- a/templates/page-tgz-list.html +++ b/templates/page-tgz-list.html @@ -17,8 +17,9 @@ {{^files}} <div class="row well well-sm">Keine Konfigurationspakete gefunden!</div> {{/files}} - <a class="btn btn-lg btn-primary" href="?do=sysconfig&action=remotelist">Konfigurationen herunterladen</a> - <a class="btn btn-lg btn-primary" href="#" data-toggle="collapse" data-target="#uploadform">Eigene Konfiguration hochladen</a> + <a class="btn btn-md btn-primary" href="?do=sysconfig&action=remotelist">Konfigurationsvolagen</a> + <a class="btn btn-md btn-primary" href="#" data-toggle="collapse" data-target="#uploadform">Eigene Konfiguration hochladen</a> + <a class="btn btn-md btn-primary" href="/boot/default/config.tgz">Aktive Konfiguration herunterladen</a> <div class="collapse" id="uploadform"> <div class="well well-sm" style="margin: 5px 0px"> <form method="post" action="?do=sysconfig" enctype="multipart/form-data"> diff --git a/templates/pagenav.html b/templates/pagenav.html new file mode 100644 index 00000000..5cab6a46 --- /dev/null +++ b/templates/pagenav.html @@ -0,0 +1,15 @@ +<ul class="pagination pagination-sm pull-right"> + {{#pages}} + {{#current}} + <li class="active"><a href="{{url}}page={{page}}">{{text}} <span class="sr-only">(current)</span></a></li> + {{/current}} + {{^current}} + {{#text}} + <li><a href="{{url}}page={{page}}">{{text}}</a></li> + {{/text}} + {{^text}} + <li class="disabled"><a href="#">…</a></li> + {{/text}} + {{/current}} + {{/pages}} +</ul> |