Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CanOpener committed Apr 21, 2016
1 parent 9db0382 commit 308794f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions paranoid-gui/html/filesystem.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ <h5>Nodes</h5>
<div id="fsMountSection">
<h3>Mount your FileSystem</h3>
<form id="fsMountForm">
<label>Location</label>
<label for="location">Location</label>
<input type="file" id="location" class='form-control' placeholder="Directory in which to mount your filesystem" required webkitdirectory directory multiple>
<label>Interface</label>
<label for="interface">Interface</label>
<input type="text" id="interface" class='form-control' placeholder="A network interface over which to make connections">
<label>Discovery Server</label>
<label for="discovery">Discovery Server</label>
<input type="text" id="discovery" class='form-control' placeholder="The address of the discovery server - ip:port">
<button type="submit" class="btn btn-success">Mount</button>
</form>
Expand All @@ -49,7 +49,7 @@ <h3>Attributes</h3>

<div id="fsDeleteSection">
<h3>Delete FileSystem</h3>
<label>Confirm Deletion</label>
<label for="nameCheck">Confirm Deletion</label>
<input type="text" name="nameCheck" class='form-control' placeholder="Enter the filesystem name" id="nameCheckText">
<button type="submit" class="btn btn-danger" id="deleteButton">Delete</button>
</div>
14 changes: 7 additions & 7 deletions paranoid-gui/html/newFs.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<h1>Create a new filesystem</h1>

<form id="newfsForm" action="#" type="submit" onsubmit="newfs(this);">
<label>Name</label>
<label for="name">Name</label>
<input type="text" name="name" class='form-control' placeholder="Name for your filesystem" required>
<label>Cert</label>
<label for="cert">Cert</label>
<input type="file" name="cert" class='form-control' placeholder="Path to existing cert file">
<label>Key</label>
<label for="key">Key</label>
<input type="file" name="key" class='form-control' placeholder="Path to existing key file">
<label>Pool</label>
<label for="pool">Pool</label>
<input type="text" name="pool" class='form-control' placeholder="Pool name (opt)"><br>
<label>Secure</label>
<label for="secure">Secure</label>
<input type="checkbox" name="secure" checked><br>
<label>Use Network</label>
<label for="network">Use Network</label>
<input type="checkbox" name="network" checked><br>
<label>Encrypted</label>
<label for="encrypted">Encrypted</label>
<input type="checkbox" name="encrypted" checked><br>
<button type="submit" class="btn btn-success">Submit</button>
</form>
2 changes: 1 addition & 1 deletion paranoid-gui/scripts/filesystems.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function getFilesystems() {
var fsPath = path.join(fileSystemsDir, fileNames[i]);
var filesystem = {
name: fileNames[i],
path: path.join(fileSystemsDir, fileNames[i]),
path: fsPath,
mounted: fileSystemIsMounted(fileNames[i]),
attributes: loadJsonFile(path.join(fsPath, "meta", "attributes")),
pool: readFile(path.join(fsPath, "meta", "pool")),
Expand Down

0 comments on commit 308794f

Please sign in to comment.