Add download button

This commit is contained in:
Khanh Ngo 2020-04-25 16:58:14 +07:00
parent 6f0d7bf69f
commit 91f06914d4
No known key found for this signature in database
GPG key ID: D5FAA6A16150E49E
4 changed files with 50 additions and 3 deletions

View file

@ -36,8 +36,9 @@ Wireguard Clients
src="{{ .QRCode }}" />
<div class="info-box-content">
<div class="btn-group">
<button type="button" class="btn btn-outline-success btn-sm">Download</button>
<button type="button" class="btn btn-outline-primary btn-sm">Edit</button>
<button onclick="location.href='/download?clientid={{ .Client.ID }}'" type="button"
class="btn btn-outline-success btn-sm">Download</button>
<!-- <button type="button" class="btn btn-outline-primary btn-sm">Edit</button> -->
<button type="button" class="btn btn-outline-warning btn-sm" data-toggle="modal"
data-target="#modal_pause_client" data-clientid="{{ .Client.ID }}"
data-clientname="{{ .Client.Name }}">Disable</button>