aboutsummaryrefslogtreecommitdiff
path: root/templates/settings.html
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-06-25 19:09:54 +0200
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-06-25 19:51:55 +0200
commit249ee195ce52ee4a4defeb67a33ef353919d3a11 (patch)
tree24ffcfa3a852b0464fc0344cfc79bc5efb272a3e /templates/settings.html
parent91d413b3a15a15fd8b710d8f5a1532d2e3de6f05 (diff)
downloadlens-249ee195ce52ee4a4defeb67a33ef353919d3a11.tar.gz
lens-249ee195ce52ee4a4defeb67a33ef353919d3a11.tar.bz2
lens-249ee195ce52ee4a4defeb67a33ef353919d3a11.zip
feat: Add user list UI
Fill user settings UI with actual data.
Diffstat (limited to 'templates/settings.html')
-rw-r--r--templates/settings.html47
1 files changed, 14 insertions, 33 deletions
diff --git a/templates/settings.html b/templates/settings.html
index 2aa1a80..8c08773 100644
--- a/templates/settings.html
+++ b/templates/settings.html
@@ -7,7 +7,7 @@
<div class="field">
<div class="control">
<label class="checkbox">
- <input type="checkbox" id="showMode" name="showMode" {{if .Data.ShowMode}}checked{{end}}>
+ <input type="checkbox" id="showMode" name="showMode" {{if .Data.Settings.ShowMode}}checked{{end}}>
Show File Modes
</label>
</div>
@@ -15,7 +15,7 @@
<div class="field">
<div class="control">
<label class="checkbox">
- <input type="checkbox" id="showOwner" name="showOwner" {{if .Data.ShowOwner}}checked{{end}}>
+ <input type="checkbox" id="showOwner" name="showOwner" {{if .Data.Settings.ShowOwner}}checked{{end}}>
Show File Owner
</label>
</div>
@@ -26,38 +26,19 @@
</form>
</div>
<div class="column">
- <div class="table-container">
- <table class="table">
- <thead>
- <tr>
- <th>Username</th>
- <th>Path</th>
- <th>Is Admin?</th>
- <th>Action</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>gabrielgio</td>
- <td>/home/gabrielgio</td>
- <td>yes</td>
- <td>
- <a href="#" class="button is-small">Edit</button>
- <a href="#" class="button is-small is-danger">Delete</button>
- </td>
- </tr>
- <tr>
- <td>beatriz</td>
- <td>/home/beatriz</td>
- <td>no</td>
- <td>
- <a href="#" class="button is-small">Edit</button>
- <a href="#" class="button is-small is-danger">Delete</button>
- </td>
- </tr>
- </tbody>
- </table>
+ {{range .Data.Users}}
+ <div class="panel-block">
+ <div class="columns wide-column is-gapless is-mobile">
+ <div class="column">
+ {{.Username}}
+ </div>
+ <div class="column">
+ {{.Path}}
+ </div>
+ <div class="column has-text-right"><a href="#">Edit</a> / <a href="#" class="is-danger">Delete</a></div>
+ </div>
</div>
+ {{end}}
</div>
</div>
{{end}}