Reformatted loading placeholder and checked it off

master
Keith Irwin 2022-11-06 16:13:32 -07:00
parent 0fede1e4a9
commit a791b1bf3e
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
3 changed files with 7 additions and 7 deletions

View File

@ -10,7 +10,7 @@
[X] Admin user add/delete frontend
[X] admin user adding backend
[X] admin user deleting backend
[ ] Add Loading...
[X] Add Loading...
[ ] Replace ns_lookup_rdns with ns_lookup_rxfr where applicable
[ ] Prevent deleting user's only peer
[ ] Let users download ssl certs

View File

@ -6,7 +6,7 @@
<h2>Add user</h2>
<p>To add a new user, type in the user's first device name and a username and click 'add'. The hostname and username must each be 3-10 lowercase letters and numbers <code>/[a-z0-9]{3,10}/</code>. </p>
<p data-bind="hidden:isLoaded">Loading...</p>
<p data-bind="hidden:isLoaded"><code>Loading...</code></p>
<div data-bind="visible:isLoaded">
<input type="text" data-bind="textInput:newUserHostname,event:{keypress:addUserKeyPress}" placeholder="pc1"></input>
<input type="text" data-bind="textInput:newUsername,event:{keypress:addUserKeyPress}" placeholder="joe"></input>
@ -16,7 +16,7 @@
<h2>Delete User</h2>
<p>To delete a user, select the username from the list below and click 'Delete'. This will delete the user and all their peers. </p>
<p data-bind="hidden:isLoaded">Loading...</p>
<p data-bind="hidden:isLoaded"><code>Loading...</code></p>
<div data-bind="visible:isLoaded">
<select data-bind="options:users,optionsText:'name',value:userToDelete,optionsCaption:'(user)'"></select>
<button data-bind="click:delUser,disable:isDeletingUser,text:deleteUserText">Delete</button>
@ -25,7 +25,7 @@
<br><hr>
<h2>Peers</h2>
<p data-bind="hidden:isLoaded">Loading...</p>
<p data-bind="hidden:isLoaded"><code>Loading...</code></p>
<table data-bind="visible:isLoaded">
<thead><tr>
<th>Host</th><th>IPv4</th><th></th>
@ -39,7 +39,7 @@
<h2>Add peer</h2>
<p>To add a new peer, type in a hostname and select a user. The hostname must be 3-10 lowercase letters and numbers <code>/[a-z0-9]{3,10}/</code>. </p>
<p data-bind="hidden:isLoaded">Loading...</p>
<p data-bind="hidden:isLoaded"><code>Loading...</code></p>
<div data-bind="visible:isLoaded">
<input type="text" data-bind="textInput:newPeerHostname,event:{keypress:addPeerKeyPress}" placeholder="phone"></input>
<select data-bind="options:users,optionsText:'name',value:newPeerUser,optionsCaption:'(user)'"></select>

View File

@ -6,7 +6,7 @@
<p>Use this console to edit your network-connected devices. </p>
<h2>Your peers</h2>
<p data-bind="hidden:isLoaded">Loading...</p>
<p data-bind="hidden:isLoaded"><code>Loading...</code></p>
<table data-bind="visible:isLoaded">
<thead><tr>
<th>Host</th><th></th>
@ -19,7 +19,7 @@
<h2>Add a peer</h2>
<p>To add a new peer, type in a hostname and click add. The hostname must be 3-10 lowercase letters and numbers <code>/[a-z0-9]{3,10}/</code>. Keep it short for your own sake!</p>
<p data-bind="hidden:isLoaded">Loading...</p>
<p data-bind="hidden:isLoaded"><code>Loading...</code></p>
<div data-bind="visible:isLoaded">
<input type="text" data-bind="textInput:newPeerName,event:{keypress:addKeyPress}" placeholder="mypc1"></input>
<button data-bind="click:addPeer,disable:isAdding,text:addText">Add</button>