Skip to content

Commit 6620913

Browse files
authored
Merge pull request #130 from johrstrom/finish-ood-tutorial
finish out ood tutorial
2 parents fa1fcc0 + 9b5bfe4 commit 6620913

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

ondemand/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,26 @@ sudo sacctmgr add user hpcadmin account=sfoster
10041004
sudo sacctmgr modify user where user=hpcadmin set defaultaccount=staff
10051005
```
10061006
1007+
### Hiding form options
1008+
1009+
Lastly, we can use this feature to hide and show other form fields. This can be useful when
1010+
some options are avaialbe for somethings. For example you may want to show CUDA versions as
1011+
a form option for GPU nodes, but not for other nodes.
1012+
1013+
Add the `data-hide-bc-account` line to our `debug` form option and we'll start hiding that
1014+
field when the debug option is chosen.
1015+
1016+
```yaml
1017+
- [
1018+
"Debug", "debug",
1019+
data-min-memory: 400,
1020+
data-max-memory: 600,
1021+
1022+
data-set-bc-account: 'staff',
1023+
data-hide-bc-account: true, # hide the bc_account field when this is chosen.
1024+
]
1025+
```
1026+
10071027
## Passenger app tutorial
10081028

10091029
Access OnDemand dashboard https://localhost:3443

0 commit comments

Comments
 (0)