Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Fengping Hu committed Jan 25, 2024
1 parent 0036222 commit b07c4b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion binderhub/static/js/src/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function getBuildFormValues() {
//console.log(ref);
const gpuModel = $("#gpu-product").val().trim();
const gpuCount = $("#gpuCount").val().trim();
const qos = $("#qos").val().trim();
const qos = $("#qos").checked;
const cpu = $("#cpu").val().trim();
const memory = $("#memory").val().trim();
return {
Expand Down
8 changes: 4 additions & 4 deletions binderhub/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h4 id="form-header" class='row'>Build and launch a repository</h4>
<option value="Tesla-V100-PCIE-16GB">NVIDIA Tesla V100</option>
</select>
<div class="input-group-btn" style="min-width:50px">
<input v-model="instances" type="number" class="form-control" id="gpuCount" min="0" max="4" value="0" required/>
<input v-model="instances" type="number" class="form-control" name="gpuCount" id="gpuCount" min="0" max="4" value="0" required/>
</div>
</div>
</div>
Expand All @@ -110,20 +110,20 @@ <h4 id="form-header" class='row'>Build and launch a repository</h4>
<!label for="qos">QoS</label>
<div class="input-group">
<div class="checkbox">
<label><input type="checkbox" id="qos" name="qos" value="yes">Guaranteed</label>
<label><input type="checkbox" id="qos" name="qos">Guaranteed</label>
</div>
</div>
</div>
<div class="form-group col-md-2" style="width: 12.499999995%">
<!label for="qos">CPUs</label>
<div class="input-group">
<input type="number" class="form-control" id="cpu" min=1 max=16 value=1 disabled>
<input type="number" class="form-control" name="cpu" id="cpu" min=1 max=16 value=1 disabled>
</div>
</div>
<div class="form-group col-md-2">
<!label for="qos">Memory</label>
<div class="input-group">
<input type="number" id="memory" class="form-control" step="0.01" value=1.0 disabled>
<input type="number" name="memory" id="memory" class="form-control" step="0.01" value=1.0 disabled>
<span class="input-group-addon">GB</span>
</div>
</div>
Expand Down

0 comments on commit b07c4b1

Please sign in to comment.