-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
108c011
commit 00789c7
Showing
18 changed files
with
408 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import {FormModal} from "../../form/modal.js"; | ||
import {Option} from "../../option.js"; | ||
import {Utils} from "../../../com/utils.js"; | ||
|
||
export class iSCSICreate extends FormModal { | ||
// | ||
constructor (props) { | ||
super(props); | ||
|
||
this.render(); | ||
this.loading(); | ||
} | ||
|
||
render() { | ||
super.render(); | ||
let name = { | ||
fresh: function() { | ||
this.selector.find('option').remove(); | ||
for (let i = 1; i <= 16; i++) { | ||
let alias = "datastore@"+Utils.iton(i, 2); | ||
this.selector.append(new Option(alias, alias)); | ||
} | ||
}, | ||
selector: this.view.find("select[name='name']"), | ||
}; | ||
|
||
name.fresh(); | ||
} | ||
|
||
template() { | ||
return (` | ||
<div class="modal-dialog modal-dialog-centered model-md" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title" id="">New DataStore by iSCSI</h5> | ||
</div> | ||
<form name="datastore-new"> | ||
<div id="" class="modal-body"> | ||
<div class="form-group row"> | ||
<label for="name" class="col-sm-4 col-form-label-sm ">Select datastore</label> | ||
<div class="col-sm-6"> | ||
<div class="input-group"> | ||
<select class="select-lg" name="name"> | ||
<option value="datastore@01" selected>datastore@01</option> | ||
</select> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="" class="modal-footer"> | ||
<div class="mr-0" rol="group"> | ||
<button name="finish-btn" class="btn btn-outline-success btn-sm">Finish</button> | ||
<button name="reset-btn" class="btn btn-outline-dark btn-sm" type="reset">Reset</button> | ||
<button name="cancel-btn" class="btn btn-outline-dark btn-sm">Cancel</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div>`); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import {FormModal} from "../../form/modal.js"; | ||
import {Option} from "../../option.js"; | ||
import {Utils} from "../../../com/utils.js"; | ||
|
||
export class NFSCreate extends FormModal { | ||
// | ||
constructor (props) { | ||
super(props); | ||
|
||
this.render(); | ||
this.loading(); | ||
} | ||
|
||
render() { | ||
super.render(); | ||
let name = { | ||
fresh: function() { | ||
this.selector.find('option').remove(); | ||
for (let i = 10; i <= 20; i++) { | ||
let alias = "datastore@"+Utils.iton(i, 2); | ||
this.selector.append(new Option(alias, alias)); | ||
} | ||
}, | ||
selector: this.view.find("select[name='name']"), | ||
}; | ||
|
||
name.fresh(); | ||
} | ||
|
||
template() { | ||
return (` | ||
<div class="modal-dialog modal-dialog-centered model-md" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title" id="">New DataStore by NFS</h5> | ||
</div> | ||
<form name="datastore-new"> | ||
<input type="text" class="d-none" name="type" value="netfs"/> | ||
<input type="text" class="d-none" name="format" value="nfs"/> | ||
<div id="" class="modal-body"> | ||
<div class="form-group row"> | ||
<label for="name" class="col-sm-4 col-form-label-sm ">DataStore</label> | ||
<div class="col-sm-6"> | ||
<div class="input-group"> | ||
<select class="select-lg" name="name"> | ||
<option value="datastore@01" selected>datastore@01</option> | ||
</select> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<label for="host" class="col-sm-4 col-form-label-sm">Host address</label> | ||
<div class="col-sm-6"> | ||
<div class="input-group"> | ||
<input type="text" class="form-control form-control-sm" name="host" value=""/> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="form-group row"> | ||
<label for="host" class="col-sm-4 col-form-label-sm">Directory path</label> | ||
<div class="col-sm-6"> | ||
<div class="input-group"> | ||
<input type="text" class="form-control form-control-sm" name="path" value="/"/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="" class="modal-footer"> | ||
<div class="mr-0" rol="group"> | ||
<button name="finish-btn" class="btn btn-outline-success btn-sm">Finish</button> | ||
<button name="reset-btn" class="btn btn-outline-dark btn-sm" type="reset">Reset</button> | ||
<button name="cancel-btn" class="btn btn-outline-dark btn-sm">Cancel</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div>`); | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.